Request orderbook
| 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": "PERP_NEAR_USDC"
}
}
{
"id":"123r",
"event":"request",
"success":true,
"ts":1618880432419,
"data":{
"symbol":"PERP_NEAR_USDC",
"ts":1618880432380,
"asks":[
[
15,
0.443951
],
[
15.02,
0.002566
],
...
],
"bids":[
[
14.99,
2.887466
],
[
14.76,
2.034711
],
...
]
}
}
{
"id": "clientID2",
"topic": "PERP_NEAR_USDC@orderbookupdate",
"event": "subscribe"
}
| 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": "PERP_NEAR_USDC"
}
}
{
"id":"123r",
"event":"request",
"success":true,
"ts":1618880432419,
"data":{
"symbol":"PERP_NEAR_USDC",
"ts":1618880432380,
"asks":[
[
15,
0.443951
],
[
15.02,
0.002566
],
...
],
"bids":[
[
14.99,
2.887466
],
[
14.76,
2.034711
],
...
]
}
}