HTTP · Public

Get Order Book

Returns order-book depth for a single trading pair.

Public · no authentication
GEThttps://api.koinsayang.com/api/v2/spot/market/orderbook

Request parameters

NameTypeRequiredDescription
symbol
query
stringYesTrading pair, e.g. “BTCUSDT”
type
query
stringOptionalDefault: step0. Values: step0, step1, step2, step3, step4, step5
limit
query
stringOptionalNumber of levels, default 150, max 150

Response fields

FieldTypeDescription
codestring—
msgstring—
requestTimestring | integer—
dataobject—
asksarrayAsk-side depth, e.g. ["38084.5", "0.5"], where “38084.5” is the price level and “0.5” is the base-coin quantity.
bidsarrayBid-side depth
tsstringMatching-engine timestamp, as a Unix timestamp in milliseconds, e.g. 15970263830

Response example

200 · application/json
{
"code": "00000",
"msg": "success",
"requestTime": 1768876462312,
"data": {
"asks": [
[
"900000",
"0.1987"
]
],
"bids": [
[
"6667",
"0.0816"
]
],
"ts": "2138817"
}
}