Public Market Data
Request orderbook
- Smart Contract Addresses
- Authentication/Key Management
- Deposit
- Withdrawal
- General Data Access
- User Data
- On-Chain Order/Swap
- Storage Staking
- Perpetual Futures
- Introduction
- Authentication
- Error Codes
- Key Management
- Order Management
- User Data
- Liquidations
- Market Data
- System Info
- TradingView
Smart Contract API
REST API
Public Market Data
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
],
...
]
}
}