Contract Market Data Endpoints
Check Server Time
Rate Limit:20 requests per 2 seconds
HTTP Request Time to return to server
GET /api/swap/v3/market/time
Response:
Response Field
Field | Description |
---|---|
epoch | Unix timestamp in seconds |
iso | ISO8601 standard time format |
timestamp | Unix timestamp in milliseconds |
Contract Information
Rate Limit:20 requests per 2 seconds
HTTP Requests Get market data.
GET /api/swap/v3/market/contracts
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
coin | Margin currency |
contract_val | Contract value |
delivery | Settlement time |
forwardContractFlag | (true or false) , forward contract or not |
priceEndStep | Prices' Last Digit in Cents |
quote_currency | Denominated currency |
size_increment | Quantity Precision |
tick_size | Price Precision |
underlying_index | Contract currency |
minLeverage | minimum leverage |
maxLeverage | maximum leverage |
Order Book
Rate Limit:20 requests per 2 seconds
HTTP Requests get order book data
GET /api/swap/v3/market/depth
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
limit | Integer | Yes | depth size Range between (1- 200) |
Response:
Response Field
Field | Description |
---|---|
asks | Sell side depth |
bids | Buy side depth |
timestamp | Timestamp |
Get All Symbol Ticker Data
Rate Limit:20 requests per 2 seconds
HTTP Requests Get all symbol ticker data
GET /api/swap/v3/market/tickers
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
best_ask | Best ask price |
best_bid | Best bid price |
high_24h | Highest price in the past 24 hours |
last | Last traded price |
low_24h | Lowest price in the past 24 hours |
timestamp | System timestamp |
volume_24h | Trading volume of past 24 hours |
priceChangePercent | 24-hour price change percentage |
base_volume | 24-hour volume, by currency |
Get Ticker Data By Symbol
Rate Limit:20 requests per 2 seconds
HTTP Requests Get Ticker Data By Symbol
GET /api/swap/v3/market/ticker
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
best_ask | Best ask price |
best_bid | Best bid price |
high_24h | Highest price in the past 24 hours |
last | Last traded price |
low_24h | Lowest price in the past 24 hours |
timestamp | System timestamp |
volume_24h | Trading volume of past 24 hours |
priceChangePercent | 24-hour price change percentage |
base_volume | 24-hour volume, by currency |
Get Trades List
Rate Limit:20 requests per 2 seconds
HTTP Requests Get Trades List By Symbol
GET /api/swap/v3/market/trades
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
limit | String | Yes | Number of results per request |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
price | Deal price |
side | Transaction direction: sell, buy |
size | The number of transactions |
timestamp | Transaction timestamp |
trade_id | Transaction id |
Kline/Candlestick Data
Rate Limit:20 requests per 2 seconds
HTTP Requests Retrieve the candlestick charts of the trading pairs.
GET /api/swap/v3/market/candles
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
startTime | Long | Yes | Start time (time stamp) |
endTime | Long | Yes | End time (time stamp) |
granularity | String | Yes | Bar size in seconds, default 60, must be one of [60/180/300/900/1800/3600/7200/14400/21600/43200/86400/604800] or returns error |
Description | granularity |
---|---|
1min | 60 |
5min | 300 |
15min | 900 |
30min | 1800 |
1h | 3600 |
4h | 14400 |
12h | 43200 |
1d | 86400 |
7d | 604800 |
Response:
Response Field
Field | Description |
---|---|
timestamp | System timestamp |
open | Open price |
high | Higest price |
low | Lowest price |
close | Closing price |
volume | Transaction volume |
currency_volume | Transaction volume (converted by currency) |
Index Price
Rate Limit:20 requests per 2 seconds
HTTP Requests Get index price by symbol.
GET /api/swap/v3/market/index
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
index | Index price |
timestamp | System timestamp |
Open Interest
Rate Limit:20 requests per 2 seconds
HTTP Requests Get present open interest of a specific symbol.
GET /api/swap/v3/market/open_interest
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
amount | Total holdings |
forwardContractFlag | Is it a forward contract |
timestamp | System timestamp |
base_volume | Total holdings,left coin vol |
target_volume | Total holdings,right coin vol |
Current Price Limits
Rate Limit:20 requests per 2 seconds
HTTP Requests Retrieve the ceiling of the buy price and floor of sell price of the contract.
GET /api/swap/v3/market/price_limit
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
forwardContractFlag | Is it a forward contract |
highest | Maximum Buy Price |
lowest | Lowest selling price |
timestamp | System timestamp |
Get Next Settlement Time
Rate Limit:20 requests per 2 seconds
HTTP Requests Get the time of next settlement.
GET /api/swap/v3/market/funding_time
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
forwardContractFlag | Is it a forward contract |
funding_time | time of current funding |
Funding Rate History
Rate Limit:20 requests per 2 seconds
HTTP Requests Get funding rate history
GET /api/swap/v3/market/historyFundRate
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
pageIndex | String | Yes | Page number, empty default first page, starting from 1 |
pageSize | String | Yes | Number of data per page |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
funding_rate | Funding rate |
funding_time | Settlement time |
Mark Price
Rate Limit:20 requests per 2 seconds
HTTP Requests Get the mark price.
GET /api/swap/v3/market/mark_price
Request Parameter
Parameters | Type | Required | Description |
---|---|---|---|
symbol | String | Yes | Contract name |
Response:
Response Field
Field | Description |
---|---|
symbol | Contract name |
mark_price | Specify the margin price |
timestamp | System timestamp |
Last updated