Skip to content

Commit 4d0782a

Browse files
committed
refactor(dataflows): expand crypto whitelist to CMC20 constituents
1 parent a7dfebb commit 4d0782a

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

tradingagents/dataflows/symbol_utils.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,20 @@
4141
}
4242
)
4343

44-
# Crypto bases that brokers quote against USD without a separator.
44+
# Crypto bases recognized across vendors (yfinance, binance). Sourced from
45+
# CoinMarketCap's CMC20 index constituents (top 20 by market cap, excluding
46+
# stablecoins and wrapped/pegged tokens), cross-checked against Binance's
47+
# exchangeInfo endpoint for actual USDT pair availability as of 2026-08-19.
48+
# 2 of the 20 CMC20 constituents (HYPE, CC) have no corresponding Binance
49+
# USDT pair and are excluded. DOT (previously supported) has fallen out of
50+
# the CMC20 top 20 and is removed.
51+
# https://coinmarketcap.com/charts/cmc20/
4552
_CRYPTO_BASES = frozenset(
46-
{"BTC", "ETH", "SOL", "XRP", "ADA", "DOGE", "LTC", "BCH", "DOT", "AVAX", "LINK"}
53+
{
54+
"BTC", "ETH", "BNB", "XRP", "SOL", "TRX", "DOGE", "ZEC",
55+
"LINK", "ADA", "XLM", "BCH", "TON", "LTC", "HBAR", "AVAX",
56+
"SUI", "SHIB",
57+
}
4758
)
4859

4960
# Explicit aliases for instruments whose broker symbol does not map to a

0 commit comments

Comments
 (0)