The Smarkets API is currently in private alpha, subscribe and you'll be updated when we start to open it up a bit more.

Tracking Changes in v0.4.0

written by mokele on 27 Oct 2011

How can I track when the API gets updated? On GitHub of course. With the awesome compare view we can diff 0.3.0 with 0.4.0 without batting an eyelid. Subscribing to these articles and hanging out on IRC are also a good idea.

You can also track the public Smarkets API docs project and keep up to date when new specs are released and any and all explanation changes.

Along with this API spec update the erlang application and python library have been updated with some extra payload sending functions for the new types. Added to that, skarab (Hunter) has started work on a C# library named IronSmarkets which is now in heavy development. He’ll be talking about that in more details soon right here. So stay tuned for that.

The sandbox is for customers in a position to be placing bets at this time, but we’ll be providing more tools on top of the API for mass quote fetching in the coming months. See you on the other side!

/me goes back to organising live erlang release upgrades

API Sandbox v0.3.0

written by mokele on 19 Oct 2011

We’ve updated the sandbox and the relevant code on GitHub and smarkets.github.com to the API version 0.3.0. What we’ve added is are:

Added to this, we’ll soon be eating our own dog food by having our own website Smarkets.com place bets on your behalf over our WebSockets server connecting directly with our streaming API. We’re pretty excited about this part!

Tastes Like Chicken

See you on freenode IRC channel #smarkets

Doing maths in JavaScript

written by rednum on 30 Sep 2011

One of the things that we must get right at Smarkets is floating point arithmetic. While adding some new features to our frontend, it turned out we needed a better JavaScript library to handle floating point numbers for correctly displaying profit and loss. The best way to get one was to get an intern—i.e. me—to write it!

Hence I present decnum, the JavaScript decimal numbers library. It is a standalone project that provides arbitrary-precision numbers with arithmetic and comparison. The library comes with some tests, which you can run using nodeunit.

Since decnums are implemented as arrays of “digits” in base 10000, most of the operations can get a bit slow for really big numbers—especially division and multiplication, which run in quadratic time (the rest of the operations run in linear time). This shouldn’t be a problem unless you are using some really huge numbers in your calculations (or want some crazy precision), but if you do, you probably shouldn’t be writing in JavaScript in the first place!

Introducing the Smarkets API

written by mokele on 06 Sep 2011

So, it’s time to talk about the Smarkets API, get even more feedback, and get you people using it! We’re still in private alpha, so the sandbox is only open to a few (hopefully you) people. Apologies if you don’t have access quite yet, it’s a busy time and we need to make sure everything is running smoothly before jumping too far ahead of ourselves.

Now let’s get down to business.

The Smarkets API was designed with two main objectives in mind - keeping developers happy, and letting them trade in the most sensible way possible. Hopefully it evolves to be far more than these things, but so far this has led us to the following design decisions:

We’re planning some developer meet-ups and tutorial sessions, so subscribe and we’ll keep you updated and help you in every way possible to take advantage of the Smarkets API for trading sports, current affairs, politics, entertainment, and much more.

If you have any questions in the form “Are you planning to X?”, the answer is most probably yes.