Query basis
Weight(IP): 1
Notes:
Request parameters.
Test connectivity to the Rest API and get the current server time.
Weight(IP): 1
Get compressed, aggregate trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.
Weight(IP): 20
Notes:
startTime and endTime are sent, time between startTime and endTime must be less than 1 hour.fromId, startTime, and endTime are not sent, the most recent aggregate trades will be returned.startTime/endTime and fromId might cause response timeout, please send either fromId or startTime/endTimeRequest parameters.
Kline/candlestick bars for a specific contract type. Klines are uniquely identified by their open time.
Weight: based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Notes:
startTime and endTime can only be up to 200 daysstartTime and endTime, the most recent limit data from endTime will be returned:startTime and endTime are not sent, current timestamp will be set as endTime, and the most recent data will be returned.startTime is sent only, the timestamp of 200 days after startTime will be set as endTime(up to the current time)endTime is sent only, the timestamp of 200 days before endTime will be set as startTimeRequest parameters.
Current exchange trading rules and symbol information
Weight(IP): 1
Get Funding Rate History of Perpetual Futures
Weight(IP): 1
Notes:
Request parameters.
Query funding rate info for symbols that had FundingRateCap/FundingRateFloor/fundingIntervalHours adjustment
Query index price and mark price
Weight(IP): 10
OptionalrequestParameters: IndexPriceAndMarkPriceRequestRequest parameters.
Kline/candlestick bars for the index price of a pair. Klines are uniquely identified by their open time.
Weight: Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Notes:
startTime and endTime can only be up to 200 daysstartTime and endTime, the most recent limit data from endTime will be returned:startTime and endTime are not sent, current timestamp will be set as endTime, and the most recent data will be returned.startTime is sent only, the timestamp of 200 days after startTime will be set as endTime(up to the current time)endTime is sent only, the timestamp of 200 days before endTime will be set as startTimeRequest parameters.
Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.
Weight: Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Notes:
startTime and endTime can only be up to 200 daysstartTime and endTime, the most recent limit data from endTime will be returned:startTime and endTime are not sent, current timestamp will be set as endTime, and the most recent data will be returned.startTime is sent only, the timestamp of 200 days after startTime will be set as endTime(up to the current time)endTime is sent only, the timestamp of 200 days before endTime will be set as startTimeRequest parameters.
Query symbol Long/Short Ratio
Weight(IP): 1
Notes:
Request parameters.
Kline/candlestick bars for the mark price of a symbol. Klines are uniquely identified by their open time.
Weight: Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Notes:
startTime and endTime can only be up to 200 daysstartTime and endTime, the most recent limit data from endTime will be returned:startTime and endTime are not sent, current timestamp will be set as endTime, and the most recent data will be returned.startTime is sent only, the timestamp of 200 days after startTime will be set as endTime(up to the current time)endTime is sent only, the timestamp of 200 days before endTime will be set as startTimeRequest parameters.
Get older market historical trades.
Weight(IP): 20
Security Type: MARKET_DATA
Notes:
Request parameters.
Get present open interest of a specific symbol.
Weight(IP): 1
Request parameters.
Query open interest stats
Weight(IP): 1
Notes:
Request parameters.
Query orderbook on specific symbol
Weight: Adjusted based on the limit:
| Limit | Weight |
|---|---|
| 5, 10, 20, 50 | 2 |
| 100 | 5 |
| 500 | 10 |
| 1000 | 20 |
Request parameters.
Premium index kline bars of a symbol. Klines are uniquely identified by their open time.
Weight: Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Notes:
Request parameters.
Query index price constituents
Weight(IP): 1
Request parameters.
Get recent market trades
Weight(IP): 5
Notes:
Request parameters.
Best price/qty on the order book for a symbol or symbols.
Weight: 2 for a single symbol, 5 when the symbol parameter is omitted
Notes:
OptionalrequestParameters: DerivativesTradingCoinFuturesRestAPI.SymbolOrderBookTickerRequestRequest parameters.
Latest price for a symbol or symbols.
Weight: 1 for a single symbol, 2 when the symbol parameter is omitted
Notes:
OptionalrequestParameters: DerivativesTradingCoinFuturesRestAPI.SymbolPriceTickerRequestRequest parameters.
Taker Buy Volume: the total volume of buy orders filled by takers within the period.
Taker Sell Volume: the total volume of sell orders filled by takers within the period.
Weight(IP): 1
Notes:
Request parameters.
24 hour rolling window price change statistics.
Weight: 1 for a single symbol, 40 when the symbol parameter is omitted Careful* when accessing this with no symbol.
Notes:
OptionalrequestParameters: DerivativesTradingCoinFuturesRestAPI.Ticker24hrPriceChangeStatisticsRequestRequest parameters.
The proportion of net long and net short accounts to total accounts of the top 20% users with the highest margin balance. Each account is counted once only.
Long Account % = Accounts of top traders with net long positions / Total accounts of top traders with open positions
Short Account % = Accounts of top traders with net short positions / Total accounts of top traders with open positions
Long/Short Ratio (Accounts) = Long Account % / Short Account %
Weight(IP): 1
Security Type: Accounts
Notes:
Request parameters.
The proportion of net long and net short positions to total open positions of the top 20% users with the highest margin balance.
Long Position % = Long positions of top traders / Total open positions of top traders
Short Position % = Short positions of top traders / Total open positions of top traders
Long/Short Ratio (Positions) = Long Position % / Short Position %
Weight(IP): 1
Security Type: Positions
Notes:
Request parameters.
MarketDataApi - interface MarketDataApi