Reference
3 min read
Exchange Symbol Formats
When using data source functions like ohlcv() or source(), you need to specify the symbol in the correct format for each exchange. Below is a comprehensive list of all supported exchanges and their respective symbol formats.
Example Usage
Multi-Exchange Comparison
//@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
| Exchange | Category | Symbol Format | Example |
|---|---|---|---|
BINANCE | SPOT | BTCUSDT | Bitcoin to Tether (Spot) |
BINANCE_FUTURES | PERPETUAL | BTCUSDT | BTC/USDT Perpetual |
BITFINEX | SPOT | BTCUST or BTC:USD | Bitcoin to USD (Spot) |
BITFINEX_DERIVATIVES | PERPETUAL | BTCF0:USTF0 | BTC Perpetual |
BITMEX | PERPETUAL | XBTUSD | Bitcoin to USD |
BITSTAMP | SPOT | BTCUSD | Bitcoin to USD (Spot) |
BYBIT | PERPETUAL | BTCUSDT | BTC/USDT Perpetual |
BYBIT_SPOT | SPOT | BTCUSDT | Bitcoin to USDT (Spot) |
COINBASE | SPOT | BTC-USD | Bitcoin to USD (Spot) |
DERIBIT | SPOT | BTC_USDT | Bitcoin to USDT (Spot) |
DERIBIT | PERPETUAL | BTC-PERPETUAL | BTC/USD Perpetual |
DERIBIT | PERPETUAL | BTC_USDC-PERPETUAL | BTC/USDC Perpetual |
GATE_IO | SPOT | BTC_USDC | Bitcoin to USDC (Spot) |
GATE_IO_FUTURES | PERPETUAL | BTC_USDT | BTC/USDT Perpetual |
HYPERLIQUID | SPOT | HYPE-USDC | HYPE to USDC (Spot) |
HYPERLIQUID_FUTURES | PERPETUAL | BTC | BTC Perpetual |
OKEX | SPOT | BTC-USDT | Bitcoin to USDT (Spot) |
OKEX_FUTURES | FUTURE | BTC-USDT-251226 | BTC Future (Dec 26, 2025) |
OKEX_SWAP | PERPETUAL | BTC-USDT-SWAP | BTC/USDT Perpetual Swap |
OKEX_OPTIONS | OPTION | BTC-USD-YYMMDD-STRIKE-C/P | BTC Option (Call/Put) |
UPBIT | SPOT | KRW-USDT | Korean Won to USDT |