> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Binance

> Binance spot exchange public market data: prices, 24h tickers, order books, trades, candles and symbol rules, keyless.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/binance.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=2a1da9087bbb0c165dd75434f7516d39)

[Web Catalog · Finance](https://docs.webrouter.net/data-apis.md?category=finance)

No key needed

Endpoints

8

Auth

None

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api)

## Setup

| Variable | | What it is |
| - | - | - |
| `BINANCE_HOST` | optional | REST base host; data-api.binance.vision serves public market data only. api1-api4 are faster but less stable. Default `api.binance.com`. One of `api.binance.com`, `api-gcp.binance.com`, `api1.binance.com`, `api2.binance.com`, `api3.binance.com`, `api4.binance.com`, `data-api.binance.vision`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Market data endpoints are public: no API key needed. Trading and account endpoints are signed and not in this entry.
* Rate limits are per IP and counted in request weight (each endpoint lists its weight); usage comes back in X-MBX-USED-WEIGHT-\* headers. A 429 means back off for Retry-After seconds; ignoring 429s gets the IP banned (418), from 2 minutes up to 3 days.
* Symbols are concatenated pairs with no separator, upper case: BTCUSDT, ETHBTC.
* A 'symbols' parameter is a JSON array string, e.g. \["BTCUSDT","BNBBTC"]; at most 100 symbols. Do not combine symbol and symbols.
* Times are milliseconds since the epoch, UTC. Prices and quantities come back as strings.

## Endpoints

GET

Get latest symbol prices

Latest price for one symbol, several, or every symbol.

[Open](#binance-ticker-price)

GET

Get 24-hour ticker statistics

Rolling 24-hour price change, high, low, volume and last price.

[Open](#binance-ticker-24hr)

GET

Get best bid and ask

Best bid and ask price and quantity for one, several or all symbols.

[Open](#binance-ticker-book)

GET

Get candlesticks

OHLCV candles for a symbol at a given interval.

[Open](#binance-klines)

GET

Get order book

Bids and asks for a symbol.

[Open](#binance-depth)

GET

Get recent trades

The most recent trades on a symbol.

[Open](#binance-trades)

GET

Get current average price

Current average price of a symbol.

[Open](#binance-avg-price)

GET

Get exchange and symbol info

Trading rules, filters, status and permissions for symbols.

[Open](#binance-exchange-info)

### Get latest symbol prices

GET

`/ticker/price`

`binance.ticker.price`

Latest price for one symbol, several, or every symbol.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>One symbol. Example `BTCUSDT`</td></tr>
    <tr><td>`symbols`</td><td>string</td><td>query</td><td>JSON array of symbols. Example `["BTCUSDT","ETHUSDT"]`</td></tr>
    <tr><td>`symbolStatus`</td><td>string</td><td>query</td><td>Only symbols with this status. One of `TRADING`, `HALT`, `BREAK`, `CANCEL_ONLY`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-ticker-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-price-simple), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-prices-current)

```python Python theme={null}
router.call_data_api("binance.ticker.price", {'symbol': 'BTCUSDT', 'symbols': '["BTCUSDT","ETHUSDT"]'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.ticker.price", params={"symbol": "BTCUSDT", "symbols": "[\"BTCUSDT\",\"ETHUSDT\"]"})
```

> [!NOTE]
>
> * Weight 2 with symbol, 4 with symbols or none (all symbols).

### Get 24-hour ticker statistics

GET

`/ticker/24hr`

`binance.ticker.24hr`

Rolling 24-hour price change, high, low, volume and last price.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>One symbol. Example `BTCUSDT`</td></tr>

    <tr>
      <td>
        `symbols`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        JSON array of symbols, max 100.
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>FULL (default) or MINI. One of `FULL`, `MINI`</td></tr>
    <tr><td>`symbolStatus`</td><td>string</td><td>query</td><td>Only symbols with this status. One of `TRADING`, `HALT`, `BREAK`, `CANCEL_ONLY`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-quote), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-stats-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-global-metrics-latest), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-rates-latest), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-live-quote), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-prices-snapshot)

```python Python theme={null}
router.call_data_api("binance.ticker.24hr", {'symbol': 'BTCUSDT'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.ticker.24hr", params={"symbol": "BTCUSDT"})
```

> [!NOTE]
>
> * Weight 2 for 1-20 symbols, 40 for 21-100, 80 for more or for no symbol parameter (all symbols).

### Get best bid and ask

GET

`/ticker/bookTicker`

`binance.ticker.book`

Best bid and ask price and quantity for one, several or all symbols.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>One symbol. Example `BTCUSDT`</td></tr>

    <tr>
      <td>
        `symbols`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        JSON array of symbols.
      </td>
    </tr>

    <tr><td>`symbolStatus`</td><td>string</td><td>query</td><td>Only symbols with this status. One of `TRADING`, `HALT`, `BREAK`, `CANCEL_ONLY`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-quote), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-stats-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-global-metrics-latest), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-rates-latest), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-live-quote), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-prices-snapshot)

```python Python theme={null}
router.call_data_api("binance.ticker.book", {'symbol': 'BTCUSDT'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.ticker.book", params={"symbol": "BTCUSDT"})
```

> [!NOTE]
>
> * Weight 2 with symbol, 4 otherwise.

### Get candlesticks

GET

`/klines`

`binance.klines`

OHLCV candles for a symbol at a given interval.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol` required</td><td>string</td><td>query</td><td>Symbol. Example `BTCUSDT`</td></tr>
    <tr><td>`interval` required</td><td>string</td><td>query</td><td>Candle interval (case-sensitive: 1m minute, 1M month). One of `1s`, `1m`, `3m`, `5m`, `15m`, `30m`, `1h`, `2h`, `4h`, `6h`, `8h`, `12h`, `1d`, `3d`, `1w`, `1M` Example `1d`</td></tr>

    <tr>
      <td>
        `startTime`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Start, ms since epoch.
      </td>
    </tr>

    <tr>
      <td>
        `endTime`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        End, ms since epoch.
      </td>
    </tr>

    <tr>
      <td>
        `timeZone`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Interval time zone, e.g. 8 or 05:45, within -12:00 to +14:00; default 0 (UTC).
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Default 500, max 1000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("binance.klines", {'symbol': 'BTCUSDT', 'interval': '1d'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.klines", params={"symbol": "BTCUSDT", "interval": "1d"})
```

> [!NOTE]
>
> * Weight 2. Each candle is an array of values, not an object.

### Get order book

GET

`/depth`

`binance.depth`

Bids and asks for a symbol.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol` required</td><td>string</td><td>query</td><td>Symbol. Example `BTCUSDT`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Levels; default 100, max 5000.
      </td>
    </tr>

    <tr><td>`symbolStatus`</td><td>string</td><td>query</td><td>Fail unless the symbol has this status. One of `TRADING`, `HALT`, `BREAK`, `CANCEL_ONLY`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-quote), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-stats-get), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-global-metrics-latest), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-rates-latest), [EODHD](https://docs.webrouter.net/data-apis/eodhd.md#eodhd-live-quote), [Financial Datasets](https://docs.webrouter.net/data-apis/financialdatasets.md#financialdatasets-prices-snapshot)

```python Python theme={null}
router.call_data_api("binance.depth", {'symbol': 'BTCUSDT'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.depth", params={"symbol": "BTCUSDT"})
```

> [!NOTE]
>
> * Weight grows with limit: 5 (1-100), 25 (101-500), 50 (501-1000), 250 (1001-5000).

### Get recent trades

GET

`/trades`

`binance.trades`

The most recent trades on a symbol.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol` required</td><td>string</td><td>query</td><td>Symbol. Example `BTCUSDT`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Default 500, max 1000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-daily), [Bank of Canada](https://docs.webrouter.net/data-apis/bankofcanada.md#bankofcanada-observations-series), [Bank of England](https://docs.webrouter.net/data-apis/bankofengland.md#bankofengland-series-csv), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-candles-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-coins-market-chart), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-quotes-historical)

```python Python theme={null}
router.call_data_api("binance.trades", {'symbol': 'BTCUSDT'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.trades", params={"symbol": "BTCUSDT"})
```

> [!NOTE]
>
> * Weight 25.

### Get current average price

GET

`/avgPrice`

`binance.avg_price`

Current average price of a symbol.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol` required</td><td>string</td><td>query</td><td>Symbol. Example `BTCUSDT`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/market-data-endpoints) · Same job: [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-crypto-daily), [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-ticker-get), [CoinGecko](https://docs.webrouter.net/data-apis/coingecko.md#coingecko-price-simple), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-listings-latest), [CryptoCompare](https://docs.webrouter.net/data-apis/cryptocompare.md#cryptocompare-index-latest-tick), [DefiLlama](https://docs.webrouter.net/data-apis/defillama.md#defillama-prices-current)

```python Python theme={null}
router.call_data_api("binance.avg_price", {'symbol': 'BTCUSDT'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.avg_price", params={"symbol": "BTCUSDT"})
```

> [!NOTE]
>
> * Weight 2.

### Get exchange and symbol info

GET

`/exchangeInfo`

`binance.exchange_info`

Trading rules, filters, status and permissions for symbols.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`symbol`</td><td>string</td><td>query</td><td>One symbol. Example `ETHBTC`</td></tr>

    <tr>
      <td>
        `symbols`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        JSON array of symbols.
      </td>
    </tr>

    <tr>
      <td>
        `permissions`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        JSON array of permissions, e.g. \["SPOT"]; not with symbol/symbols.
      </td>
    </tr>

    <tr>
      <td>
        `showPermissionSets`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Populate permissionSets; default true.
      </td>
    </tr>

    <tr><td>`symbolStatus`</td><td>string</td><td>query</td><td>Only symbols with this status; not with symbol/symbols. One of `TRADING`, `HALT`, `BREAK`, `CANCEL_ONLY`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-endpoints) · Same job: [Coinbase Exchange](https://docs.webrouter.net/data-apis/coinbase-exchange.md#coinbase-exchange-products-list), [CoinMarketCap](https://docs.webrouter.net/data-apis/coinmarketcap.md#coinmarketcap-cryptocurrency-map), [Commodity Price API](https://docs.webrouter.net/data-apis/commoditypriceapi.md#commoditypriceapi-symbols), [Fixer](https://docs.webrouter.net/data-apis/fixer.md#fixer-symbols), [OANDA](https://docs.webrouter.net/data-apis/oanda.md#oanda-instruments-list), [Open Exchange Rates](https://docs.webrouter.net/data-apis/open-exchange-rates.md#open-exchange-rates-currencies)

```python Python theme={null}
router.call_data_api("binance.exchange_info", {'symbol': 'ETHBTC'})
```

```text MCP theme={null}
call_data_api(endpoint="binance.exchange_info", params={"symbol": "ETHBTC"})
```

> [!NOTE]
>
> * Weight 20. With no parameters the response covers every symbol and is large.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.