Request orderbook
{
"id": "clientID1",
"event": "request",
"params": {
"type": "orderbook",
"symbol": "SPOT_NEAR_USDC.e"
}
}
{
"id":"123r",
"event":"request",
"success":true,
"ts":1618880432419,
"data":{
"symbol":"SPOT_NEAR_USDC.e",
"ts":1618880432380,
"asks":[
[
15,
0.443951
],
[
15.02,
0.002566
],
...
],
"bids":[
[
14.99,
2.887466
],
[
14.76,
2.034711
],
...
]
}
}
Request orderbook
{
"id": "clientID2",
"topic": "orderbook",
"event": "subscribe"
}
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | string | Y | id generated by client |
event | string | Y | request |
params.type | string | Y | orderbook |
params.symbol | string | Y | {symbol} |
{
"id": "clientID1",
"event": "request",
"params": {
"type": "orderbook",
"symbol": "SPOT_NEAR_USDC.e"
}
}
{
"id":"123r",
"event":"request",
"success":true,
"ts":1618880432419,
"data":{
"symbol":"SPOT_NEAR_USDC.e",
"ts":1618880432380,
"asks":[
[
15,
0.443951
],
[
15.02,
0.002566
],
...
],
"bids":[
[
14.99,
2.887466
],
[
14.76,
2.034711
],
...
]
}
}
{
"id": "clientID1",
"event": "request",
"params": {
"type": "orderbook",
"symbol": "SPOT_NEAR_USDC.e"
}
}
{
"id":"123r",
"event":"request",
"success":true,
"ts":1618880432419,
"data":{
"symbol":"SPOT_NEAR_USDC.e",
"ts":1618880432380,
"asks":[
[
15,
0.443951
],
[
15.02,
0.002566
],
...
],
"bids":[
[
14.99,
2.887466
],
[
14.76,
2.034711
],
...
]
}
}