Skip to main content

Get OrderBook

Get the current order book (bids/asks) for a pair. This is a public endpoint (no authentication required).

Returns a snapshot of the order book. For continuous updates, use the orderbook and obdiff WebSocket channels instead of polling. If the order book is temporarily unavailable, the endpoint returns 503; retry after a short delay.

  • pairSymbol is required.
  • limit defaults to 100. A value above 100 is silently reduced to 100 rather than rejected, so an over-large limit still returns 200. Values <= 0 are rejected.

OrderBook​

GET /api/v2/orderbook

Query Parameters​

NameTypeDescription
pairSymbol*stringBTCUSDT, ETHUSDT etc.
limitintegerNumber of price levels per side (default 100). Values above 100 are clamped to 100.
{
"success": true,
"message": null,
"code": 0,
"data": {
"timestamp": 1790169095704,
"bids": [
["85391", "0.00292756"],
["85367", "0.09831930"],
["85366", "0.01019407"]
],
"asks": [
["85412", "0.09831930"],
["85413", "0.02341563"],
["85421", "0.02341344"]
]
}
}

Each entry in bids/asks is [price, amount], both as strings.

Code Example​

curl -X GET "https://api.global.btcturk.com/api/v2/orderbook?pairSymbol=BTCUSDT&limit=25"