Skip to Content

Order Book

Request URL

GET /fmapi/v1/depth

Request Parameters

NameTypeRequiredDescription
symbolIdSTRINGYESTrading pair
scaleINTYESPrecision, obtained from exchange info

Response Parameters

NameTypeDescription
codeSTRINGResponse Code
msgSTRINGResponse Message
successBOOLEANSuccess Flag
dataOBJECTData Payload
data.asksARRAY
data.bidsARRAY
data.eSTRING
data.iSTRING
data.lastUpdateIdINTEGER
data.sSTRING

Request Example

https://openapi.bittap.com/fmapi/v1/depth?symbolId=BTC-USDT-M&scale=0.01

Response Example

{ "code": "0", "data": { "asks": [// Sell orders [ "110222.23",// Price "0.76881"// Quantity ] ], "bids": [// Buy orders [ "110221.11",// Price "1.215168"// Quantity ] ], "e": "f_depth30",// Topic "i": "0.01",// Precision "lastUpdateId": 730765138,// Last update ID "s": "BTC-USDT-M"// Trading pair }, "msg": "Request successful", "success": true }

Error Codes

Error CodeDescription
500Server Error

Code Example

Last updated on: