Live General Election Prices – A sneak peek at our API
April 16, 2010
We’ve rolled out a little extra functionality on our political markets for any hackers out there. You can now get live prices for any of our political markets in either JSON or XML. For example:
The “overall majority” market as JSON is: http://api.smarkets.com/v1/markets/2gvp44k
Or the “Will the BNP win a seat” market in XML is: http://api.smarkets.com/v1/markets/2gvqip0.xml
Simply browse to any political market and view the source to see the link for that market. It’ll look something like this:
<link rel="alternate quotes" href="http://api.smarkets.com/v1/markets/2nktxr8" title="Clegg TV wins" type="application/json"><link rel="alternate quotes" href="http://api.smarkets.com/v1/markets/2nktxr8.xml" title="Clegg TV wins" type="text/xml">
We have a much richer API in development so this is just a peek at the functionality to come. Have fun with our data, we’d love to see what you come up with. Let us know any feedback.
Smarkets Commit Visualisation
February 11, 2010
Not to be outdone by the Twitter engineering department, we ran Codeswarm through our own Git repository.
The video shows Git commits to the Smarkets website over time. Each blob is a piece of code committed to the codebase. Backend (blue) is an Erlang application, Frontend (pink) is a Django application, and Middleware (white) is a collection of Python scripts.




