Compressed/Aggregate trades list
Get compressed, aggregate trades. Trades that fill at the time, from the same taker order, with the same price 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
symbolfromIdID to get aggregate trades from INCLUSIVE.
startTimeTimestamp in ms to get aggregate trades from INCLUSIVE.
endTimeTimestamp in ms to get aggregate trades until INCLUSIVE.
limitCompressed/Aggregate trades list › Responses
Compressed/Aggregate trades list
aAggregate tradeId
pPrice
qQuantity
fFirst tradeId
lLast tradeId
TTimestamp
mWas the buyer the maker?
MWas the trade the best price match?
Current average price
Current average price for a symbol.
Current average 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.
Current average price › Responses
Current average price
minsAverage price interval (in minutes)
priceAverage price
closeTimeLast trade time
Order book
Order book
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 | Request Weight |
|---|---|
| 1-100 | 5 |
| 101-500 | 25 |
| 501-1000 | 50 |
| 1001-5000 | 250 |
Query Parameters
symbollimitIf limit > 5000, only 5000 entries will be returned.
symbolStatusFilters for symbols that have this tradingStatus.
A status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS.
Order book › Responses
Order book
lastUpdateIdRecent trades list
Get recent 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
symbollimitRecent trades list › Responses
Recent trades list
idpriceqtyquoteQtytimeisBuyerMakerisBestMatchOld trade lookup
Get older trades.
Old trade lookup › 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
symbollimitfromIdTradeId to fetch from. Default gets most recent trades.
Old trade lookup › Responses
Old trade lookup
idpriceqtyquoteQtytimeisBuyerMakerisBestMatchHistorical Block Trades
Get block trades.
Historical Block Trades › 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
symbolfromIdBlock trade ID to fetch from
limitDefault: 500; Maximum: 1000
Historical Block Trades › Responses
Historical Block Trades
idpriceqtyquoteQtytimeisBuyerMakerKline/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.
Query Parameters
symbolintervalstartTimeendTimetimeZoneDefault: 0 (UTC)
limitKline/Candlestick data › Responses
Kline/Candlestick data
[0]Open time
[1]Open
[2]High
[3]Low
[4]Close
[5]Volume
[6]Close time
[7]Quote asset volume
[8]Number of trades
[9]Taker buy base asset volume
[10]Taker buy quote asset volume
[11]Ignore
Rolling window price change statistics
Note: This endpoint differs from GET /api/v3/ticker/24hr.
The statistical time range of this endpoint can be up to 59999ms longer
than the requested windowSize.
openTime starts at the beginning of a minute, while the end time is
the current time. Therefore, the actual interval can be up to 59999ms
longer than the requested window.
For example, if closeTime is 1641287867099 (January 04, 2022
09:17:47:099 UTC) and windowSize is 1d, then openTime is
1641201420000 (January 3, 2022, 09:17:00 UTC).
Rolling window 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.
4 for each requested symbol regardless of windowSize.
The weight for this request will cap at 200 once the number of symbols in the request is more than 50.
Query Parameters
symbolEither symbol or symbols must be provided
symbolsEither symbol or symbols must be provided
Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D
The maximum number of symbols allowed in a request is 100.
windowSizeUnits cannot be combined (e.g. 1d2h is not allowed).
typesymbolStatusFilters for symbols that have this tradingStatus.
For a single symbol, a status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS.
For multiple symbols, non-matching ones are simply excluded from the response.
Rolling window price change statistics › Responses
Rolling window price change statistics
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = array |
symbolpriceChangeAbsolute price change
priceChangePercentRelative price change in percent
weightedAvgPriceQuoteVolume / Volume
openPricehighPricelowPricelastPricevolumequoteVolumeSum of (price * volume) for all trades
openTimeOpen time for ticker window
closeTimeClose time for ticker window
firstIdTrade IDs
lastIdcountNumber of trades in the interval
24hr ticker price change statistics
24 hour rolling window price change statistics. Careful when accessing this with no symbol.
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.
| Parameter | Symbols Provided | Weight |
|---|---|---|
| symbol | 1 | 2 |
| symbol parameter is omitted | 80 | |
| symbols | 1-20 | 2 |
| 21-100 | 40 | |
| 101 or more | 80 | |
| symbols parameter is omitted | 80 |
Query Parameters
symbolEither symbol or symbols must be provided
symbolsEither symbol or symbols must be provided
Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D
The maximum number of symbols allowed in a request is 100.
typesymbolStatusFilters for symbols that have this tradingStatus.
For a single symbol, a status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS.
For multiple symbols, non-matching ones are simply excluded from the response.
24hr ticker price change statistics › Responses
24hr ticker price change statistics
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = array |
symbolSymbol Name
priceChangepriceChangePercentweightedAvgPriceprevClosePricelastPriceClosing price of the interval
lastQtybidPricebidQtyaskPriceaskQtyopenPriceOpening price of the Interval
highPriceHighest price in the interval
lowPriceLowest price in the interval
volumeTotal trade volume (in base asset)
quoteVolumeTotal trade volume (in quote asset)
openTimeStart of the ticker interval
closeTimeEnd of the ticker interval
firstIdFirst tradeId
lastIdLast tradeId
countTrade count
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.
| Parameter | Symbols Provided | Weight |
|---|---|---|
| symbol | 1 | 2 |
| omitted | 4 | |
| symbols | Any | 4 |
Query Parameters
symbolParameter symbol and symbols cannot be used in combination.
If neither parameter is sent, bookTickers for all symbols will be returned in an array.
symbolsParameter symbol and symbols cannot be used in combination.
If neither parameter is sent, bookTickers for all symbols will be returned in an array.
Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D
symbolStatusFilters for symbols that have this tradingStatus.
For a single symbol, a status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS.
For multiple or all symbols, non-matching ones are simply excluded from the response.
Symbol order book ticker › Responses
Symbol order book ticker
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = array |
symbolbidPricebest bid price.
bidQtybid/ask qty.
askPricebest ask price.
askQtybid/ask qty.
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.
| Parameter | Symbols Provided | Weight |
|---|---|---|
| symbol | 1 | 2 |
| omitted | 4 | |
| symbols | Any | 4 |
Query Parameters
symbolParameter symbol and symbols cannot be used in combination. If neither parameter is sent, prices for all symbols will be returned in an array.
symbolsParameter symbol and symbols cannot be used in combination. If neither parameter is sent, prices for all symbols will be returned in an array. Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D
symbolStatusFilters for symbols that have this tradingStatus.
For a single symbol, a status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS.
For multiple or all symbols, non-matching ones are simply excluded from the response.
Symbol price ticker › Responses
Symbol price ticker
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = array |
symbolpriceTrading Day Ticker
Price change statistics for a trading day.
Trading Day 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.
4 for each requested symbol. The weight for this request will cap at 200 once the number of symbols in the request is more than 50.
Query Parameters
symbolEither symbol or symbols must be provided.
symbolsEither symbol or symbols must be provided.
Examples of accepted format for the symbols parameter: ["BTCUSDT","BNBUSDT"] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D.
The maximum number of symbols allowed in a request is 100.
timeZoneDefault: 0 (UTC)
typesymbolStatusFilters for symbols that have this tradingStatus.
For a single symbol, a status mismatch returns error -1220 SYMBOL_DOES_NOT_MATCH_STATUS.
For multiple symbols, non-matching ones are simply excluded from the response.
Trading Day Ticker › Responses
Trading Day Ticker
Decision Table
| Variant | Matching Criteria |
|---|---|
| type = object | |
| type = array |
symbolpriceChangeAbsolute price change
priceChangePercentRelative price change in percent
weightedAvgPricequoteVolume / volume
openPricehighPricelowPricelastPricevolumeVolume in base asset
quoteVolumeVolume in quote asset
openTimecloseTimefirstIdTrade ID of the first trade in the interval
lastIdTrade ID of the last trade in the interval
countNumber of trades in the interval
UIKlines
The request is similar to klines having the same parameters and response.
uiKlines return modified kline data, optimized for presentation of
candlestick charts.
UIKlines › 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
symbolintervalstartTimeendTimetimeZoneDefault: 0 (UTC)
limitUIKlines › Responses
UIKlines
[0]Open time
[1]Open
[2]High
[3]Low
[4]Close
[5]Volume
[6]Close time
[7]Quote asset volume
[8]Number of trades
[9]Taker buy base asset volume
[10]Taker buy quote asset volume
[11]Ignore
Query Reference Price
Query the reference price for a symbol.
Query Reference 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.
Query Reference Price › Responses
Reference price
symbolreferencePriceReference price. Can be null if no reference price is set.
timestampTimestamp when reference price was valid.
Query Reference Price Calculation
Describes how reference price is calculated for a given symbol.
Query Reference Price Calculation › 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
symbolsymbolStatusSupported values: TRADING, HALT, BREAK
Query Reference Price Calculation › Responses
Reference price calculation
symbolcalculationTypeEither ARITHMETIC_MEAN or EXTERNAL.
bucketCountPresent when calculationType is ARITHMETIC_MEAN.
bucketWidthMsPresent when calculationType is ARITHMETIC_MEAN.
externalCalculationIdPresent when calculationType is EXTERNAL.