Compare Crypto Price Across Exchanges (Kimchi Premium)
compare_crypto_exchangesCompare the price of one crypto asset on two exchanges, converting both legs to USD, and report the premium of leg B over leg A. Classic use: the Korean "kimchi premium" — e.g. base:'BTC', exchange_a:'binance', quote_a:'USDT', exchange_b:'upbit', quote_b:'KRW' -> premium_pct is how much more expensive BTC is on upbit (in USD terms) than on binance.
Args:
base: asset symbol, e.g. 'BTC', 'ETH', 'XRP' (default BTC)
exchange_a / quote_a: first leg (defaults binance / USDT)
exchange_b / quote_b: second leg (defaults upbit / KRW)
Supported quotes: USD, USDT, USDC (treated as 1 USD, noted in output) and KRW (converted with the latest FRED DEXKOUS KRW-per-USD rate).
Returns: {base, legs:[{exchange, symbol, last, last_usd}], premium_pct, fx:{pair:'USD/KRW', rate, date, source:'FRED DEXKOUS'}, notes}. premium_pct = (leg_b_usd / leg_a_usd - 1) * 100.
Examples:
"what's the kimchi premium right now" -> defaults
"ETH premium bithumb vs kraken" -> {base:'ETH', exchange_a:'kraken', quote_a:'USD', exchange_b:'bithumb', quote_b:'KRW'}
Don't use for a single price (get_crypto_ticker) or history (get_crypto_ohlcv).
Errors: unknown symbol on either exchange -> check the exchange's market list (upbit/bithumb list KRW pairs only); unsupported quote currency lists the supported ones; FRED key missing blocks KRW conversion with a hint.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Base asset symbol, e.g. 'BTC', 'ETH' | BTC |
| quote_a | No | First-leg quote currency (USD | USDT | USDC | KRW) | USDT |
| quote_b | No | Second-leg quote currency (USD | USDT | USDC | KRW) | KRW |
| exchange_a | No | First-leg exchange: binance | upbit | bithumb | coinbase | kraken | okx | bybit | gateio (default binance). Note: binance may be geo-blocked in some regions. | binance |
| exchange_b | No | Second-leg exchange: binance | upbit | bithumb | coinbase | kraken | okx | bybit | gateio (default upbit). Note: binance may be geo-blocked in some regions. | upbit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fx | No | ||
| base | No | ||
| legs | Yes | ||
| notes | No | ||
| premium_pct | No |