Skip to content

Market data API

Justin edited this page Jul 11, 2018 · 10 revisions

Market data API is accessible through https and parameters are passed using GET-requests. All responses are encoded in JSON.

Currently the market APIs are cached for 1 second (Except trades which is cached for 2 seconds).

Tick:

path: /market/BTC/AUD/tick

sample response:

{"bestBid":844.0,"bestAsk":844.98,"lastPrice":845.0,"currency":"AUD","instrument":"BTC","timestamp":1476242958,"volume24h":172.60804}

Orderbook:

path: /market/BTC/AUD/orderbook

sample response:

{"currency":"AUD","instrument":"BTC","timestamp":1476243360,"asks":[[844.98,0.45077821],[845.0,2.7069457],[848.68,2.58512],[848.76,0.29745]],"bids":[[844.0,0.00489636],[840.21,0.060724],[840.16,0.1180803],[840.1,0.32130103]]}

Trades:

path: /market/BTC/AUD/trades

sample response:

[{"tid":4432702312,"amount":0.01959674,"price":845.0,"date":1378878093},{"tid":59861212129,"amount":1.21434000,"price":845.15,"date":1377840783}]

since is an optional parameter for trades (get trades since the trade id). For instance:

/market/BTC/AUD/trades?since=59868345231

Introduction updated 9/28/18

Authentication

Pagination

WebSocket v2

WebSocket v1 deprecated

Market Data API updated 7/24/19

Trading API updated 08/19/19

Transaction API

Account API updated 3/14/19

Fund Transfer API updated 08/06/19

FAQ

Clone this wiki locally