Skip to main content
Reference3 min read
Complete list of supported exchanges and their symbol format syntax for use in kScript data source functions.

Example Usage

//@version=2
define(title="Multi-Exchange Comparison", position="offchart", axis=true);

// Binance Spot (no separator)
timeseries binanceSpot = ohlcv(symbol="BTCUSDT", exchange="BINANCE");

// Binance Futures (no separator)
timeseries binanceFutures = ohlcv(symbol="BTCUSDT", exchange="BINANCE_FUTURES");

// Coinbase (uses hyphen)
timeseries coinbase = ohlcv(symbol="BTC-USD", exchange="COINBASE");

// Plot comparison
plotLine(value=binanceSpot.close, width=2, colors=["#F3BA2F"], label=["Binance Spot"], desc=["BTCUSDT on Binance Spot"]);
plotLine(value=binanceFutures.close, width=2, colors=["#FF6B35"], label=["Binance Futures"], desc=["BTCUSDT on Binance Futures"]);
plotLine(value=coinbase.close, width=2, colors=["#0052FF"], label=["Coinbase"], desc=["BTC-USD on Coinbase"]);

Exchange Reference Table

Spot Markets

ExchangeSymbol FormatExample
BINANCEBTCUSDTBitcoin to Tether (Spot)
BITFINEXBTCUST or BTC:USDBitcoin to USD (Spot)
BITSTAMPBTCUSDBitcoin to USD (Spot)
BYBIT_SPOTBTCUSDTBitcoin to USDT (Spot)
COINBASEBTC-USDBitcoin to USD (Spot)
DERIBITBTC_USDTBitcoin to USDT (Spot)
GATE_IOBTC_USDCBitcoin to USDC (Spot)
HYPERLIQUIDHYPE-USDCHYPE to USDC (Spot)
OKEXBTC-USDTBitcoin to USDT (Spot)
UPBITKRW-USDTKorean Won to USDT

Perpetual Futures

ExchangeSymbol FormatExample
BINANCE_FUTURESBTCUSDTBTC/USDT Perpetual
BITFINEX_DERIVATIVESBTCF0:USTF0BTC Perpetual
BITMEXXBTUSDBitcoin to USD
BYBITBTCUSDTBTC/USDT Perpetual
DERIBITBTC-PERPETUALBTC/USD Perpetual
DERIBITBTC_USDC-PERPETUALBTC/USDC Perpetual
GATE_IO_FUTURESBTC_USDTBTC/USDT Perpetual
HYPERLIQUID_FUTURESBTCBTC Perpetual
OKEX_SWAPBTC-USDT-SWAPBTC/USDT Perpetual Swap

Futures (Dated)

ExchangeSymbol FormatExample
OKEX_FUTURESBTC-USDT-251226BTC Future (Dec 26, 2025)

Options

ExchangeSymbol FormatExample
OKEX_OPTIONSBTC-USD-YYMMDD-STRIKE-C/PBTC Option (Call/Put)

Important Notes

Case Sensitivity: Exchange names are case-sensitive. Always use uppercase for exchange names (e.g., BINANCE, not binance).
Symbol Format Variations: Different exchanges use different separators: hyphens (-), underscores (_), colons (:), or no separator at all. Always check the format for your specific exchange.
Data Availability: Not all data types are available for every exchange and symbol combination. If there’s an exchange, symbol or data source you’d like us to support, feel free to request it on our Discord community!
Futures and Options Format: For dated futures and options, use the format specified by the exchange. For example, YYMMDD represents the year, month, and day of expiry.

Common Exchange Formats

PatternExchangesExample
No separatorBinance, Bybit, BitstampBTCUSDT
Hyphen (-)Coinbase, OKX, HyperliquidBTC-USD
Underscore (_)Gate.io, DeribitBTC_USDT
Colon (:)BitfinexBTC:USD