-
Notifications
You must be signed in to change notification settings - Fork 30
Market data API
Market data API is accessible through HTTPS and parameters are passed using GET-requests. All responses are encoded in JSON.
Currently the APIs are cached for 30 seconds and all service calls are monitored for excessive load so please don’t query more often than once every 1 minute.
Tick:
https://api.btcmarkets.net/market/BTC/AUD/tick
sample response:
{"bestBid":13700000000,"bestAsk":14000000000,"lastPrice":14000000000,"currency":"AUD","instrument":"BTC","timestamp":1378878117}
Orderbook:
https://api.btcmarkets.net/market/BTC/AUD/orderbook
sample response:
{"currency":"AUD","instrument":"BTC","timestamp":1378941290,"asks":[[14000000000,20000000],[14100000000,10000000],[14200000000,20000000],[14600000000,10000000],[15900000000,50000000],[16000000000,10000000],"bids":[[13700000000,20000000],[12500000000,20000000],[12000010000,100000000],[12000000000,1000000]]}
Trades:
https://api.btcmarkets.net/market/BTC/AUD/trades
sample response:
[{"tid":4432702312,"amount":10000000,"price":14000000000,"date":1378878093},{"tid":59861212129,"amount":1000000,"price":12500000000,"date":1377840783}]
since
is an optional parameter for trades (get trades since the trade id). For instance:
https://api.btcmarkets.net/market/BTC/AUD/trades?since=59868345231
Introduction updated 9/28/18
WebSocket v1 deprecated
Market Data API updated 7/24/19
Trading API updated 08/19/19
Account API updated 3/14/19
Fund Transfer API updated 08/06/19