Orderbook
Orderbook data stream.
Connect
- websocat
- wscat
websocat wss://api.datamaxiplus.com/ws/v1/orderbook -H 'X-DTMX-APIKEY: $YOUR_API_KEY'
wscat -c wss://api.datamaxiplus.com/ws/v1/orderbook -H 'X-DTMX-APIKEY: $YOUR_API_KEY'
Subscribe
method
specifies the type of request.params
list represents of symbols on exchanges that user wants to subscribe. The format of parameter issymbol@exchange
(e.g."BTC-KRW@upbit"
). You can request the list of supported exchanges with /api/v1/orderbook/exchanges symbols with /api/v1/orderbook/symbols endpoint.- The
id
uniquely identifies the subscription request.
- schema
- example
{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}
{
"method": "SUBSCRIBE",
"params": [
"BTC-KRW@upbit"
],
"id": 1
}
Response
e
represents the exchange name.d
represents the date and the time in UTC milliseconds.s
represents the symbol (base-quote
).b
represents the base token.q
represents the quote token.as
represents the list of ask orders.- Each ask order contains:
P
represents the price at which the order is placed.v
represents the volume or quantity of the order.
- Each ask order contains:
bs
represents the list of bid orders.- Each bid order contains:
P
represents the price at which the order is placed.v
represents the volume or quantity of the order.
- Each bid order contains:
- schema
- example
{
"e": string,
"d": int,
"s": string,
"b": string,
"q": string,
"as": [
{
"P": float,
"v": float
}
],
"bs": [
{
"P": float,
"v": float
}
]
}
{
"e": "binance",
"d": 1728361661420,
"s": "BTC-USDC",
"b": "BTC",
"q": "USDC",
"as": [
{
"P": 62745.41,
"v": 0.67278
},
{
"P": 62745.57,
"v": 0.01
},
{
"P": 62746.7,
"v": 0.05593
},
{
"P": 62746.71,
"v": 0.0589
},
{
"P": 62746.76,
"v": 0.12749
}
],
"bs": [
{
"P": 62745.4,
"v": 0.64643
},
{
"P": 62745.32,
"v": 0.11132
},
{
"P": 62745.31,
"v": 0.16577
},
{
"P": 62744.3,
"v": 0.1275
},
{
"P": 62744,
"v": 0.0775
}
]
}