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
| Exchange | Symbol Format | Example |
|---|
BINANCE | BTCUSDT | Bitcoin to Tether (Spot) |
BITFINEX | BTCUST or BTC:USD | Bitcoin to USD (Spot) |
BITSTAMP | BTCUSD | Bitcoin to USD (Spot) |
BYBIT_SPOT | BTCUSDT | Bitcoin to USDT (Spot) |
COINBASE | BTC-USD | Bitcoin to USD (Spot) |
DERIBIT | BTC_USDT | Bitcoin to USDT (Spot) |
GATE_IO | BTC_USDC | Bitcoin to USDC (Spot) |
HYPERLIQUID | HYPE-USDC | HYPE to USDC (Spot) |
OKEX | BTC-USDT | Bitcoin to USDT (Spot) |
UPBIT | KRW-USDT | Korean Won to USDT |
Perpetual Futures
| Exchange | Symbol Format | Example |
|---|
BINANCE_FUTURES | BTCUSDT | BTC/USDT Perpetual |
BITFINEX_DERIVATIVES | BTCF0:USTF0 | BTC Perpetual |
BITMEX | XBTUSD | Bitcoin to USD |
BYBIT | BTCUSDT | BTC/USDT Perpetual |
DERIBIT | BTC-PERPETUAL | BTC/USD Perpetual |
DERIBIT | BTC_USDC-PERPETUAL | BTC/USDC Perpetual |
GATE_IO_FUTURES | BTC_USDT | BTC/USDT Perpetual |
HYPERLIQUID_FUTURES | BTC | BTC Perpetual |
OKEX_SWAP | BTC-USDT-SWAP | BTC/USDT Perpetual Swap |
Futures (Dated)
| Exchange | Symbol Format | Example |
|---|
OKEX_FUTURES | BTC-USDT-251226 | BTC Future (Dec 26, 2025) |
Options
| Exchange | Symbol Format | Example |
|---|
OKEX_OPTIONS | BTC-USD-YYMMDD-STRIKE-C/P | BTC 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.
| Pattern | Exchanges | Example |
|---|
| No separator | Binance, Bybit, Bitstamp | BTCUSDT |
Hyphen (-) | Coinbase, OKX, Hyperliquid | BTC-USD |
Underscore (_) | Gate.io, Deribit | BTC_USDT |
Colon (:) | Bitfinex | BTC:USD |