Basis
Query basis
Basis › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
pairPair.
contractTypeContract type.
periodPeriod interval.
limitMaximum number of records to return.
startTimeendTimeBasis › Responses
Basis
indexPriceindex price
contractTypeContract type.
basisRateBasis rate.
futuresPriceFutures price.
annualizedBasisRateAnnualized basis rate.
basisBasis value.
pairPair
timestampTimestamp in milliseconds.
Check Server time
Test connectivity to the Rest API and get the current server time.
Check Server time › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Check Server time › Responses
Check Server time
serverTimeIgnore please. If you want to check current server time, please check via "GET /dapi/v1/time"
Compressed/Aggregate Trades List
Get compressed, aggregate trades. Market trades that fill in 100ms with the same price and the same taking side will have the quantity aggregated.
Compressed/Aggregate Trades List › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
symbolSymbol
fromIdID to get aggregate trades from INCLUSIVE.
startTimeTimestamp in ms to get aggregate trades from INCLUSIVE.
endTimeTimestamp in ms to get aggregate trades until INCLUSIVE.
limitMaximum number of records to return.
Compressed/Aggregate Trades List › Responses
Compressed/Aggregate Trades List
aAggregate tradeId
pPrice
qQuantity
fFirst tradeId
lLast tradeId
TTimestamp
mWas the buyer the maker?
Continuous Contract Kline/Candlestick Data
Kline/candlestick bars for a specific contract type. Klines are uniquely identified by their open time.
Continuous Contract Kline/Candlestick Data › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Query Parameters
pairAfter CM migration, accepts both CM and UM pair values.
contractTypeintervalInterval
startTimeStart time
endTimeEnd time
limitMaximum number of records to return.
Continuous Contract Kline/Candlestick Data › Responses
Continuous Contract Kline/Candlestick Data
[0]Open time
[1]Open
[2]High
[3]Low
[4]Close
[5]Volume
[6]Close time
[7]Base asset volume
[8]Number of trades
[9]Taker buy volume
[10]Taker buy base asset volume
[11]Ignore
Exchange Information
Current exchange trading rules and symbol information
Exchange Information › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Exchange Information › Responses
Exchange Information
exchangeFiltersExchange filters.
Rate limit definitions.
intervalRate limit interval.
intervalNumRate limit interval multiplier.
limitMaximum allowed orders for this rule.
rateLimitTypeRate limit type.
serverTimeIgnore please. If you want to check current server time, please check via "GET /dapi/v1/time"
Supported trading symbols.
Trading filters and constraints.
filterTypeFilter type.
maxPriceMaximum price.
minPriceMinimum price.
tickSizeTick size.
maxQtymaximum quantity of base asset
minQtyMinimum quantity.
stepSizeStep size.
limitMaximum allowed orders for this rule.
multiplierUpUpper multiplier bound.
multiplierDownLower multiplier bound.
multiplierDecimalMultiplier decimal precision.
orderTypesSupported order types.
timeInForceTime in force
liquidationFeeliquidation fee rate
marketTakeBoundthe max price difference rate( from mark price) a market order can make
symbolTrading symbol
pairPair
contractTypeContract type.
deliveryDateDelivery timestamp.
onboardDateOnboard timestamp.
contractStatusContract status.
contractSizeContract size.
quoteAssetQuote asset symbol.
baseAssetBase asset symbol.
marginAssetMargin asset.
pricePrecisionplease do not use it as tickSize
quantityPrecisionplease do not use it as stepSize
baseAssetPrecisionBase asset precision.
quotePrecisionQuote asset precision.
equalQtyPrecisionignore
triggerProtectthreshold for algo order with "priceProtect"
maintMarginPercentignore
requiredMarginPercentignore
underlyingTypeUnderlying asset type.
underlyingSubTypeUnderlying asset sub-type.
timezoneTimezone of market data.
Get Funding Rate History of Perpetual Futures
Get Funding Rate History of Perpetual Futures
Get Funding Rate History of Perpetual Futures › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
symbolSymbol
startTimeTimestamp in ms to get funding rate from INCLUSIVE.
endTimeTimestamp in ms to get funding rate until INCLUSIVE.
limitMaximum number of records to return.
Get Funding Rate History of Perpetual Futures › Responses
Get Funding Rate History of Perpetual Futures
symbolTrading symbol
fundingTimeFunding time.
fundingRateFunding rate.
Get Funding Rate Info
Query funding rate info for symbols that had FundingRateCap/FundingRateFloor/fundingIntervalHours adjustment
Get Funding Rate Info › Responses
Get Funding Rate Info
symbolTrading symbol
adjustedFundingRateCapAdjusted funding rate cap.
adjustedFundingRateFloorAdjusted funding rate floor.
fundingIntervalHoursFunding interval in hours.
disclaimerDisclaimer text.
Index Price and Mark Price
Query index price and mark price
Index Price and Mark Price › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Index Price and Mark Price › Responses
Index Price and Mark Price
symbolTrading symbol
pairPair
markPricemark price
indexPriceindex price
estimatedSettlePriceEstimated Settle Price, only useful in the last hour before the settlement starts.
lastFundingRatethe lasted funding rate, for perpetual contract symbols only. For delivery symbols, "" will be shown.
interestRatethe base asset interest rate, for perpetual contract symbols only. For delivery symbols, "" will be shown.
nextFundingTimeFor perpetual contract symbols only. For delivery symbols, 0 will be shown
timeTime
Index Price Kline/Candlestick Data
Kline/candlestick bars for the index price of a pair. Klines are uniquely identified by their open time.
Index Price Kline/Candlestick Data › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Query Parameters
pairAfter CM migration, accepts both CM and UM pair values.
intervalInterval
startTimeStart time
endTimeEnd time
limitMaximum number of records to return.
Index Price Kline/Candlestick Data › Responses
Index Price Kline/Candlestick Data
[0]Open time
[1]Open
[2]High
[3]Low
[4]Close
[5]Ignore
[6]Close time
[7]Ignore
[8]Number of bisic data
[9]Ignore
[10]Ignore
[11]Ignore
Kline/Candlestick Data
Kline/candlestick bars for a symbol. Klines are uniquely identified by their open time.
Kline/Candlestick Data › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Query Parameters
symbolAfter CM migration, accepts both CM and UM symbols.
intervalInterval
startTimeStart time
endTimeEnd time
limitMaximum number of records to return.
Kline/Candlestick Data › Responses
Kline/Candlestick Data
[0]Open time
[1]Open
[2]High
[3]Low
[4]Close
[5]Volume
[6]Close time
[7]Base asset volume
[8]Number of trades
[9]Taker buy volume
[10]Taker buy base asset volume
[11]Ignore
Long/Short Ratio
Query symbol Long/Short Ratio
Long/Short Ratio › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
pairBTCUSD
periodlimitMaximum number of records to return.
startTimeendTimeLong/Short Ratio › Responses
Long/Short Ratio
pairPair
longShortRatioLong/short ratio.
longAccount64.42%
shortAccount35.58%
timestampTimestamp in milliseconds.
Mark Price Kline/Candlestick Data
Kline/candlestick bars for the mark price of a symbol. Klines are uniquely identified by their open time.
Mark Price Kline/Candlestick Data › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Query Parameters
symbolAfter CM migration, accepts both CM and UM symbols.
intervalInterval
startTimeStart time
endTimeEnd time
limitMaximum number of records to return.
Mark Price Kline/Candlestick Data › Responses
Mark Price Kline/Candlestick Data
[0]Open time
[1]Open
[2]High
[3]Low
[4]Close
[5]Ignore
[6]Close time
[7]Ignore
[8]Number of bisic data
[9]Ignore
[10]Ignore
[11]Ignore
Old Trades Lookup (MARKET_DATA)
Get older market historical trades.
Old Trades Lookup (MARKET_DATA) › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Headers
X-MBX-APIKEYAn API Key is required to access this endpoint and must be included in the request headers. To create an API Key, refer to: https://www.binance.com/en/support/faq/detail/360002502072.
Query Parameters
symbolSymbol
limitMaximum number of records to return.
fromIdTradeId to fetch from. Default gets most recent trades.
Old Trades Lookup (MARKET_DATA) › Responses
Old Trades Lookup
idpositionId
priceLatest token price.
qtyQuantity.
baseQtyBase asset quantity.
timeTime
isBuyerMakerWhether buyer is market maker.
Open Interest
Get present open interest of a specific symbol.
Open Interest › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Open Interest › Responses
Open Interest
symbolTrading symbol
pairPair
openInterestOpen interest.
contractTypeContract type.
timeTime
Open Interest Statistics
Query open interest stats
Open Interest Statistics › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
paircontractTypeperiodlimitMaximum number of records to return.
startTimeendTimeOpen Interest Statistics › Responses
Open Interest Statistics
pairPair
contractTypeContract type.
sumOpenInterestunit: cont
sumOpenInterestValueunit: base asset
timestampTimestamp in milliseconds.
Order Book
Query orderbook on specific symbol
Order Book › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Adjusted based on the limit:
| Limit | Weight |
|---|---|
| 5, 10, 20, 50 | 2 |
| 100 | 5 |
| 500 | 10 |
| 1000 | 20 |
Query Parameters
symbolSymbol
limitValid limits:[5, 10, 20, 50, 100, 500, 1000].
Order Book › Responses
Order Book
lastUpdateIdLast update ID.
symbolTrading symbol
pairPair
EMessage output time
TTransaction time
Bid orders. Each entry is [price, quantity].
[0]Price
[1]Quantity
Ask orders. Each entry is [price, quantity].
[0]Price
[1]Quantity
Premium index Kline Data
Premium index kline bars of a symbol. Klines are uniquely identified by their open time.
Premium index Kline Data › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Based on parameter LIMIT
| LIMIT | weight |
|---|---|
| [1,100) | 1 |
| [100, 500) | 2 |
| [500, 1000] | 5 |
| > 1000 | 10 |
Premium index Kline Data › Responses
Premium index Kline Data
Query Index Price Constituents
Query index price constituents
Query Index Price Constituents › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Index Price Constituents › Responses
Index Price Constituents
symbolTrading symbol
timeTime
Constituent list.
exchangeExchange identifier.
symbolTrading symbol
pricePrice
weightWeight
Recent Trades List
Get recent market trades
Recent Trades List › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
symbolSymbol
limitMaximum number of records to return.
Recent Trades List › Responses
Recent Trades List
idpositionId
priceLatest token price.
qtyQuantity.
baseQtyBase asset quantity.
timeTime
isBuyerMakerWhether buyer is market maker.
Symbol Order Book Ticker
Best price/qty on the order book for a symbol or symbols.
Symbol Order Book Ticker › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
2 for a single symbol, 5 when the symbol parameter is omitted
Symbol Order Book Ticker › Responses
Symbol Order Book Ticker
lastUpdateIdLast update ID.
symbolTrading symbol
pairPair
bidPriceBest bid price.
bidQtyBest bid quantity.
askPriceBest ask price.
askQtyBest ask quantity.
timeTime
Symbol Price Ticker
Latest price for a symbol or symbols.
Symbol Price Ticker › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
1 for a single symbol, 2 when the symbol parameter is omitted
Symbol Price Ticker › Responses
Symbol Price Ticker
symbolTrading symbol
psPair
priceLatest token price.
timeTime
Taker Buy/Sell Volume
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.
Taker Buy/Sell Volume › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
paircontractTypeperiodlimitMaximum number of records to return.
startTimeendTimeTaker Buy/Sell Volume › Responses
Taker Buy/Sell Volume
pairPair
contractTypeContract type.
takerBuyVolunit: cont
takerSellVolunit: cont
takerBuyVolValueunit: base asset
takerSellVolValueunit: base asset
timestampTimestamp in milliseconds.
Test Connectivity
Test connectivity to the Rest API.
Test Connectivity › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Test Connectivity › Responses
OK
24hr Ticker Price Change Statistics
24 hour rolling window price change statistics.
24hr Ticker Price Change Statistics › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
1 for a single symbol, 40 when the symbol parameter is omitted Careful when accessing this with no symbol.
24hr Ticker Price Change Statistics › Responses
24hr Ticker Price Change Statistics
symbolTrading symbol
pairPair
priceChangeAbsolute price change in the 24h window.
priceChangePercentPercentage price change in the 24h window.
weightedAvgPriceWeighted average price in the 24h window.
lastPriceLatest traded price.
lastQtyQuantity of the latest trade.
openPriceOpening price of the 24h window.
highPriceHighest price in the 24h window.
lowPriceLowest price in the 24h window.
volumeBase asset volume in the 24h window.
baseVolumeBase asset volume.
openTimeStart time of the 24h window (milliseconds).
closeTimeEnd time of the 24h window (milliseconds).
firstIdFirst tradeId
lastIdLast tradeId
countTotal number of trades in the 24h window.
Top Trader Long/Short Account Ratio
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 %
Top Trader Long/Short Account Ratio › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
symbolSymbol
periodlimitMaximum number of records to return.
startTimeendTimeTop Trader Long/Short Account Ratio › Responses
Top Trader Long/Short Ratio
pairPair
longShortRatioLong/short ratio.
longAccount64.42%
shortAccount35.58%
timestampTimestamp in milliseconds.
Top Trader Long/Short Position Ratio
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 %
Top Trader Long/Short Position Ratio › Request Weight
This endpoint consumes IP-based request weight. Heavier endpoints consume more of your IP rate limit capacity.
Learn more in the Rate limits section.
Query Parameters
pairperiodlimitMaximum number of records to return.
startTimeendTimeTop Trader Long/Short Position Ratio › Responses
Top Trader Long/Short Ratio
pairPair
longShortRatioLong/short ratio.
longPosition64.42%
shortPosition44.04%
timestampTimestamp in milliseconds.