A colorful, interactive command-line tool written in Go for fetching real-time cryptocurrency prices from 10 major exchanges.
- Query live prices for any cryptocurrency symbol (uppercase letters only, e.g.
BTC,ETH) - 10 exchange integrations using public REST APIs — no API keys required
- Colorful terminal UI with startup banner, exchange loading grid, and fetch spinner
- Styled live price result table with pair, price, and exchange details
- Continuous querying in an interactive loop
- Graceful error handling with HTTP timeouts and clean Ctrl+C exit
| Exchange | Quote Currency |
|---|---|
| Binance | USDT |
| Bitget | USDT |
| Bybit | USDT |
| OKX | USDT |
| KuCoin | USDT |
| Gate.io | USDT |
| MEXC | USDT |
| Crypto.com | USDT |
| Kraken | USD |
| Coinbase | USD |
- Go 1.24 or later
-
Clone this repository:
git clone https://github.com/yourusername/crypto-cli.git cd crypto-cli -
Install dependencies:
go mod download
-
Run the CLI:
go run .Or build a binary:
go build -o crypto . ./crypto
- Enter a coin symbol (e.g.
BTC) - Select an exchange from the list
- View the live price in the results table
- Repeat for another query, or press Ctrl+C to exit
COIN SYMBOL: BTC
SELECT EXCHANGE: Binance
✓ Price received — BTC-USDT via Binance
╔══════════════════════════════════════════╗
║ 📈 LIVE MARKET PRICE ║
║ ║
╠══════════════════════════════════════════╣
║ Pair BTC-USDT ║
║ Price $60966.780000 ║
║ Exchange Binance ║
║ ║
╚══════════════════════════════════════════╝
| File | Description |
|---|---|
main.go |
Exchange API fetchers, HTTP client, main loop |
ui.go |
Terminal UI — colors, startup, spinner, tables |
Open source. See repository for license details.
