{ "opencollection": "1.0.0", "info": { "name": "Binance Algo Trading Account Market Data API", "version": "1" }, "request": { "auth": { "type": "apikey", "key": "X-MBX-APIKEY", "value": "{{X-MBX-APIKEY}}", "placement": "header" } }, "items": [ { "info": { "name": "Market Data", "type": "folder" }, "items": [ { "info": { "name": "Test connectivity", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/ping" }, "docs": "Test connectivity to the COIN-M futures REST API." }, { "info": { "name": "Check server time", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/time" }, "docs": "Get the current server time." }, { "info": { "name": "Exchange information", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/exchangeInfo" }, "docs": "Get current COIN-M futures exchange trading rules and symbol information." }, { "info": { "name": "Order book", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/depth", "params": [ { "name": "symbol", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query", "description": "Number of levels. Default 500." } ] }, "docs": "Get the current order book for a COIN-M futures symbol." }, { "info": { "name": "Recent trades list", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/trades", "params": [ { "name": "symbol", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query", "description": "Number of trades. Default 500, max 1000." } ] }, "docs": "Get recent COIN-M futures trades." }, { "info": { "name": "Kline/Candlestick data", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/klines", "params": [ { "name": "symbol", "value": "", "type": "query" }, { "name": "interval", "value": "", "type": "query", "description": "Kline interval." }, { "name": "startTime", "value": "", "type": "query" }, { "name": "endTime", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" } ] }, "docs": "Get kline/candlestick data for a COIN-M futures symbol." }, { "info": { "name": "Mark price", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/premiumIndex", "params": [ { "name": "symbol", "value": "", "type": "query" } ] }, "docs": "Get mark price and funding rate for COIN-M futures." }, { "info": { "name": "Get funding rate history", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/fundingRate", "params": [ { "name": "symbol", "value": "", "type": "query" }, { "name": "startTime", "value": "", "type": "query" }, { "name": "endTime", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" } ] }, "docs": "Get historical funding rate data for COIN-M futures." }, { "info": { "name": "Open interest", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/dapi/v1/openInterest", "params": [ { "name": "symbol", "value": "", "type": "query" } ] }, "docs": "Get open interest for a COIN-M futures symbol." }, { "info": { "name": "Test connectivity", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/ping" }, "docs": "Test connectivity to the options REST API." }, { "info": { "name": "Check server time", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/time" }, "docs": "Get the current server time." }, { "info": { "name": "Exchange information", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/exchangeInfo" }, "docs": "Get current options exchange information including available options symbols, strike prices, and expiration dates." }, { "info": { "name": "Order book", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/depth", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Option symbol, e.g. BTC-250328-80000-C." }, { "name": "limit", "value": "", "type": "query", "description": "Number of levels. Default 100." } ] }, "docs": "Get the current order book for an options symbol." }, { "info": { "name": "Recent trades list", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/trades", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Option symbol." }, { "name": "limit", "value": "", "type": "query", "description": "Number of trades. Default 100, max 500." } ] }, "docs": "Get recent options trades." }, { "info": { "name": "Kline/Candlestick data", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/klines", "params": [ { "name": "symbol", "value": "", "type": "query" }, { "name": "interval", "value": "", "type": "query" }, { "name": "startTime", "value": "", "type": "query" }, { "name": "endTime", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" } ] }, "docs": "Get kline/candlestick data for an options symbol." }, { "info": { "name": "Option mark price", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/mark", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Option symbol. If not specified, returns all symbols." } ] }, "docs": "Get mark price for options symbols." }, { "info": { "name": "24hr ticker price change statistics", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/ticker", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Option symbol." } ] }, "docs": "Get 24-hour ticker statistics for options." }, { "info": { "name": "Open interest", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/eapi/v1/openInterest", "params": [ { "name": "underlyingAsset", "value": "", "type": "query", "description": "Underlying asset, e.g. BTC." }, { "name": "expiration", "value": "", "type": "query", "description": "Expiration date, e.g. 250328." } ] }, "docs": "Get open interest for an options underlying asset." }, { "info": { "name": "Order book", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/depth", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "limit", "value": "", "type": "query", "description": "Number of price levels to return. Default 100. Valid limits are 5, 10, 20, 50, 100, 500, 1000, 5000." } ] }, "docs": "Get the current order book depth for a given trading pair. Returns bids and asks with price and quantity at each level." }, { "info": { "name": "Recent trades list", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/trades", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "limit", "value": "", "type": "query", "description": "Number of trades to return. Default 500, max 1000." } ] }, "docs": "Get recent trades for a given symbol. Returns the most recent trades up to the specified limit." }, { "info": { "name": "Old trade lookup", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/historicalTrades", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "limit", "value": "", "type": "query", "description": "Number of trades to return. Default 500, max 1000." }, { "name": "fromId", "value": "", "type": "query", "description": "Trade ID to fetch from. Default gets most recent trades." } ] }, "docs": "Get older trades for a given symbol. Requires API key authentication but does not require a signature." }, { "info": { "name": "Compressed/Aggregate trades list", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/aggTrades", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "fromId", "value": "", "type": "query", "description": "ID to get aggregate trades from (inclusive)." }, { "name": "startTime", "value": "", "type": "query", "description": "Start time in milliseconds (inclusive)." }, { "name": "endTime", "value": "", "type": "query", "description": "End time in milliseconds (inclusive)." }, { "name": "limit", "value": "", "type": "query", "description": "Number of results to return. Default 500, max 1000." } ] }, "docs": "Get compressed, aggregate trades. Trades that fill at the same time, from the same order, with the same price will have the quantity aggregated." }, { "info": { "name": "Kline/Candlestick data", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/klines", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "interval", "value": "", "type": "query", "description": "Kline/candlestick interval." }, { "name": "startTime", "value": "", "type": "query", "description": "Start time in milliseconds." }, { "name": "endTime", "value": "", "type": "query", "description": "End time in milliseconds." }, { "name": "timeZone", "value": "", "type": "query", "description": "Timezone for kline open/close times. Default is UTC." }, { "name": "limit", "value": "", "type": "query", "description": "Number of results to return. Default 500, max 1000." } ] }, "docs": "Get kline/candlestick bars for a symbol. Klines are uniquely identified by their open time." }, { "info": { "name": "UIKlines", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/uiKlines", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "interval", "value": "", "type": "query", "description": "Kline/candlestick interval." }, { "name": "startTime", "value": "", "type": "query", "description": "Start time in milliseconds." }, { "name": "endTime", "value": "", "type": "query", "description": "End time in milliseconds." }, { "name": "timeZone", "value": "", "type": "query", "description": "Timezone for kline open/close times. Default is UTC." }, { "name": "limit", "value": "", "type": "query", "description": "Number of results to return. Default 500, max 1000." } ] }, "docs": "Get kline/candlestick bars optimized for presentation of candlestick charts. Returns modified kline data." }, { "info": { "name": "Current average price", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/avgPrice", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." } ] }, "docs": "Get the current average price for a symbol over the last 5 minutes." }, { "info": { "name": "24hr ticker price change statistics", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/ticker/24hr", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "symbols", "value": "", "type": "query", "description": "JSON array of symbols to query." }, { "name": "type", "value": "", "type": "query", "description": "Supported values are FULL or MINI. MINI omits some fields." } ] }, "docs": "Get 24-hour rolling window price change statistics for a symbol or all symbols. Careful when accessing this with no symbol as the weight is very high." }, { "info": { "name": "Symbol price ticker", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/ticker/price", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "symbols", "value": "", "type": "query", "description": "JSON array of symbols to query." } ] }, "docs": "Get the latest price for a symbol or symbols." }, { "info": { "name": "Symbol order book ticker", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/ticker/bookTicker", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "symbols", "value": "", "type": "query", "description": "JSON array of symbols to query." } ] }, "docs": "Get the best price and quantity on the order book for a symbol or symbols." }, { "info": { "name": "Rolling window price change statistics", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/api/v3/ticker", "params": [ { "name": "symbol", "value": "BTCUSDT", "type": "query", "description": "Trading pair symbol, e.g. BTCUSDT." }, { "name": "symbols", "value": "", "type": "query", "description": "JSON array of symbols to query." }, { "name": "windowSize", "value": "", "type": "query", "description": "Window size for the rolling statistics. Defaults to 1d. Supported values include 1m, 2m, ... 59m, 1h, 2h, ... 23h, 1d, 2d, ... 7d." }, { "name": "type", "value": "", "type": "query", "description": "Response type. FULL or MINI." } ] }, "docs": "Get rolling window price change statistics with a configurable window size. Unlike the 24hr ticker, this allows specifying the statistics window." }, { "info": { "name": "Test connectivity", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/ping" }, "docs": "Test connectivity to the futures REST API." }, { "info": { "name": "Check server time", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/time" }, "docs": "Test connectivity and get the current server time." }, { "info": { "name": "Exchange information", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/exchangeInfo" }, "docs": "Get current futures exchange trading rules and symbol information including contract types, margin assets, and filters." }, { "info": { "name": "Order book", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/depth", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." }, { "name": "limit", "value": "", "type": "query", "description": "Number of levels. Default 500. Valid values are 5, 10, 20, 50, 100, 500, 1000." } ] }, "docs": "Get the current order book depth for a futures symbol." }, { "info": { "name": "Recent trades list", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/trades", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." }, { "name": "limit", "value": "", "type": "query", "description": "Number of trades. Default 500, max 1000." } ] }, "docs": "Get recent futures trades for a symbol." }, { "info": { "name": "Kline/Candlestick data", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/klines", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." }, { "name": "interval", "value": "", "type": "query", "description": "Kline interval." }, { "name": "startTime", "value": "", "type": "query", "description": "Start time in milliseconds." }, { "name": "endTime", "value": "", "type": "query", "description": "End time in milliseconds." }, { "name": "limit", "value": "", "type": "query", "description": "Number of results. Default 500, max 1500." } ] }, "docs": "Get kline/candlestick bars for a futures symbol." }, { "info": { "name": "Mark price", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/premiumIndex", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." } ] }, "docs": "Get mark price and funding rate for a futures symbol or all symbols." }, { "info": { "name": "Get funding rate history", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/fundingRate", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." }, { "name": "startTime", "value": "", "type": "query", "description": "Start time in milliseconds." }, { "name": "endTime", "value": "", "type": "query", "description": "End time in milliseconds." }, { "name": "limit", "value": "", "type": "query", "description": "Number of results. Default 100, max 1000." } ] }, "docs": "Get historical funding rate data for a futures symbol." }, { "info": { "name": "Get funding rate info", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/fundingInfo" }, "docs": "Get funding rate configuration for all symbols including funding interval and cap/floor rates." }, { "info": { "name": "24hr ticker price change statistics", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/ticker/24hr", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." } ] }, "docs": "Get 24-hour rolling window price change statistics for futures." }, { "info": { "name": "Symbol price ticker", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/ticker/price", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." } ] }, "docs": "Get the latest price for a futures symbol or all symbols." }, { "info": { "name": "Open interest", "type": "http" }, "http": { "method": "GET", "url": "https://api.binance.com/fapi/v1/openInterest", "params": [ { "name": "symbol", "value": "", "type": "query", "description": "Futures trading pair symbol, e.g. BTCUSDT." } ] }, "docs": "Get present open interest of a specific symbol." } ] } ], "bundled": true }