(url: string)
| 32 | // ── Phase 1: Price feed domain handlers ── |
| 33 | |
| 34 | function parseBinanceSymbol(url: string): string | null { |
| 35 | // https://www.binance.com/en/trade/BTC_USDT → BTCUSDT |
| 36 | const match = url.match(/\/trade\/([\w]+)_([\w]+)/i); |
| 37 | return match ? `${match[1]}${match[2]}`.toUpperCase() : null; |
| 38 | } |
| 39 | |
| 40 | function parseChainlinkPair(url: string): string | null { |
| 41 | // https://data.chain.link/streams/btc-usd → BTCUSDT (normalized to Binance format) |
no outgoing calls
no test coverage detected