Public Market Data
Request orderbook
Partner Support
User Flows
General API
- Builder Info
- System Info
- USDC Faucet
User API
- Registration
- Key Management
- Account/User Info
- Account Notifications
- Account Config
- Delegate Signer
Trading API
- Order Management
- Liquidations
- Assets/Withdraw/Settle PnL
- Positions
- Funding
Rewards API
- Trading Rewards
- Market Making Rewards
Staking & Valor API
- Staking
- Valor
Builder API
- User Data
- Trading Campaigns
- Fee Setting
- Referral Program
Market Data API
- TradingView
- Funding Rates
- Market Info
Websocket API
- Introduction
- PING/PONG
- Authentication
- Error Response
- Public Market Data
- Request orderbook
- Orderbook
- Order book update
- Trade
- 24h ticker
- 24h tickers
- 24h ticker by builder
- 24h tickers by builder
- bbo
- bbos
- k-line
- Market Price Changes Info
- Traders Open Interest
- Price for Small Charts
- Index price
- Index prices
- Mark price
- Mark prices
- Open interest
- Estimated funding rate
- Liquidation push
- System maintenance status
- Announcement
- Private User Data
Public Market Data
Request orderbook
{
"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
],
...
]
}
}
Request orderbook
{
"id": "clientID2",
"topic": "PERP_NEAR_USDC@orderbookupdate",
"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": "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": "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
],
...
]
}
}