get https://open-api-v4.coinglass.com/api/spot/orderbook/ask-bids-history
This endpoint provides historical data of the order book for spot trading, including total bid/ask volumes within a specific price range.
Cache / Update Frequency: every 5 seconds for all the API plans.
This endpoint is available on the following API plans:
Plans | Hobbyist | Startup | Standard | Professional | Enterprise |
---|---|---|---|---|---|
Available | ✅ | ✅ | ✅ | ✅ | ✅ |
interval Limit | >=4h | >=30m | No Limit | No Limit | No Limit |
Response Data
{
"code": "0",
"msg": "success",
"data": [
{
"bids_usd": 81639959.9338, // Total long position amount (USD)
"bids_quantity": 1276.645, // Total long quantity
"asks_usd": 78533053.6862, // Total short position amount (USD)
"asks_quantity": 1217.125, // Total short quantity
"time": 1714003200000 // Timestamp (in milliseconds)
},
{
"bids_usd": 62345879.8821,
"bids_quantity": 980.473,
"asks_usd": 65918423.4715,
"asks_quantity": 1021.644,
"time": 1714089600000
}
]
}