API DocumentationWe'll be posting the API docs on the site soon but for now here is a quick summary.
We currently have 2 API's and we'll be adding to them.
Our first API is proprietary and we'll post docs later.
Our second API is "Mt Gox style" and the docs are below:
Endpoints
=========
The root URL is
https://thbeta.com/mtgapi . Please see below for the
endpoint for each call.
Where you see "BTC", you may supply any asset name that is traded on our
system (e.g. "XRP").
All arguments are supplied in JSON, and the Content-Type and Accept
headers should be set to application/json.
public (no auth required):
-----
* get "/BTCUSD/depth/fetch"
* get "/BTCUSD/ticker"
private:
-----
To authenticate, please obtain an API key and secret by clicking Profile
from the top-right dropdown menu, then use the MtGox API auth - see
https://en.bitcoin.it/wiki/MtGox/API/HTTP#Authentication .
* post "/generic/private/orders"
Arguments: nonce
* post "/generic/private/order/cancel"
Arguments: nonce, order
* post "/generic/private/order/result"
Arguments: nonce, order
Unlike MtGox, this will return trades to date even if the order is
still active.
* post "/BTCUSD/private/order/add"
Arguments: nonce, amount_int, price_int, type, reference (optional)
You *should* provide a unique reference, to prevent double placement
of orders.
Jered