API market endpoints
- Source
Methods
aggTrades(symbol, optionsopt)
Compressed/Aggregate Trades List
GET /api/v3/aggTrades
https://binance-docs.github.io/apidocs/spot/en/#compressed-aggregate-trades-list
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
symbol | string | ||||||||||||||||||||||
options | object | <optional> | Properties
|
- Source
avgPrice(symbol)
Current Average Price
GET /api/v3/avgPrice
Current average price for a symbol.
https://binance-docs.github.io/apidocs/spot/en/#current-average-price
Name | Type | Description |
---|---|---|
symbol | string |
- Source
bookTicker(symbolopt, symbolsopt)
Symbol Order Book Ticker
GET /api/v3/ticker/bookTicker
Best price/qty on the order book for a symbol or symbols.
https://binance-docs.github.io/apidocs/spot/en/#symbol-order-book-ticker
Name | Type | Attributes | Description |
---|---|---|---|
symbol | string | <optional> | |
symbols | Array | <optional> | an array of symbols |
- Source
depth(symbol, optionsopt)
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
symbol | string | ||||||||||
options | object | <optional> | Properties
|
- Source
exchangeInfo(optionsopt)
Exchange Information
GET /api/v3/exchangeInfo
Current exchange trading rules and symbol information
https://binance-docs.github.io/apidocs/spot/en/#exchange-information
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
historicalTrades(symbol, optionsopt)
Old Trade Lookup
GET /api/v3/historicalTrades
Get older market trades.
https://binance-docs.github.io/apidocs/spot/en/#old-trade-lookup
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
symbol | string | ||||||||||||||
options | object | <optional> | Properties
|
- Source
klines(symbol, interval, optionsopt)
Kline/Candlestick Data
GET /api/v3/klines
https://binance-docs.github.io/apidocs/spot/en/#kline-candlestick-data
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
symbol | string | ||||||||||||||||||
interval | string | ||||||||||||||||||
options | object | <optional> | Properties
|
- Source
ping()
Test Connectivity
GET /api/v3/ping
Test connectivity to the Rest API.
https://binance-docs.github.io/apidocs/spot/en/#test-connectivity
- Source
rollingWindowTicker(symbolopt, symbolsopt, optionsopt)
Rolling window price change statistics
GET /api/v3/ticker
The window used to compute statistics is typically slightly wider than requested windowSize.
openTime for /api/v3/ticker always starts on a minute, while the closeTime is the current time of the request. As such, the effective window might be up to 1 minute wider than requested.
E.g. If the closeTime is 1641287867099 (January 04, 2022 09:17:47:099 UTC) , and the windowSize is 1d. the openTime will be: 1641201420000 (January 3, 2022, 09:17:00 UTC)
Weight(IP): 2 for each requested symbol regardless of windowSize.
The weight for this request will cap at 100 once the number of symbols in the request is more than 50.
https://binance-docs.github.io/apidocs/spot/en/#rolling-window-price-change-statistics
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
symbol | string | <optional> | |||||||||||||
symbols | Array | <optional> | an array of symbols | ||||||||||||
options | object | <optional> | Properties
|
- Source
ticker24hr(symbolopt, symbolsopt, typeopt)
24hr Ticker Price Change Statistics
GET /api/v3/ticker/24hr
https://binance-docs.github.io/apidocs/spot/en/#24hr-ticker-price-change-statistics
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
symbol | string | <optional> | ||
symbols | Array | <optional> | an array of symbols | |
type | string | <optional> | FULL | "MINI" or "FULL" |
- Source
tickerPrice(symbolopt, symbolsopt)
Symbol Price Ticker
GET /api/v3/ticker/price
https://binance-docs.github.io/apidocs/spot/en/#symbol-price-ticker
Name | Type | Attributes | Description |
---|---|---|---|
symbol | string | <optional> | |
symbols | Array | <optional> | an array of symbols |
- Source
time()
Check Server Time
GET /api/v3/time
Test connectivity to the Rest API and get the current server time.
https://binance-docs.github.io/apidocs/spot/en/#check-server-time
- Source
trades(symbol, optionsopt)
Recent Trades List
GET /api/v3/trades
Get recent trades.
https://binance-docs.github.io/apidocs/spot/en/#recent-trades-list
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
symbol | string | ||||||||||
options | object | <optional> | Properties
|
- Source
uiklines(symbol, interval, optionsopt)
Name | Type | Attributes | Description | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
symbol | string | ||||||||||||||||||
interval | string | ||||||||||||||||||
options | object | <optional> | Properties
|
- Source