Crypto Market Quotes — 加密货币实时行情
Real-time cryptocurrency prices and market data from public APIs. No API key required for basic queries. Supports multiple exchanges and data sources.
Supported Data Sources
| Source | Type | API Key? | Endpoint |
|:-------|:-----|:---------|:---------|
| Binance | Spot Ticker | No | api.binance.com |
| CoinGecko | Market Data | No | api.coingecko.com |
| Kraken | Ticker | No | api.kraken.com |
Quick Start
Single coin price (Binance)
curl -s "https://api.binance.com/api/v3/ticker/24hr?symbol=BTCUSDT"
Key response fields:
lastPrice— current pricepriceChangePercent— 24h change %volume— 24h volume (base asset)quoteVolume— 24h volume (quote asset)highPrice— 24h highlowPrice— 24h lowcount— number of trades
Multiple coins
curl -s "https://api.binance.com/api/v3/ticker/24hr?symbols=[\"BTCUSDT\",\"ETHUSDT\",\"SOLUSDT\"]"
Top coins by market cap (CoinGecko, no key needed)
curl -s "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=20&page=1&sparkline=false"
Features: includes market_cap, total_volume, circulating_supply, ath (all-time high), ath_change_percentage, atl, image (icon URL)
Kraken ticker
curl -s "https://api.kraken.com/0/public/Ticker?pair=XBTUSD"
Supported Coins (Binance)
| Coin | Symbol | Common Pair | |:-----|:-------|:------------| | Bitcoin | BTC | BTCUSDT | | Ethereum | ETH | ETHUSDT | | Solana | SOL | SOLUSDT | | XRP | XRP | XRPUSDT | | Cardano | ADA | ADAUSDT | | Dogecoin | DOGE | DOGEUSDT | | Avalanche | AVAX | AVAXUSDT | | Chainlink | LINK | LINKUSDT | | Polkadot | DOT | DOTUSDT | | Sui | SUI | SUIUSDT |
Error Handling
Binance rate limiting
# Binance allows 1200 requests per minute. On 429:
# Wait 60 seconds before retrying
sleep 60 && curl -s "https://api.binance.com/api/v3/ticker/24hr?symbol=BTCUSDT"
CoinGecko rate limiting
# Without API key: 30 calls/min, 50 calls/min with demo key
# On 429: wait and retry
Format Output
Single coin
₿ BTC/USDT 实时行情
价格: $XX,XXX.XX
24h涨跌: +X.XX% 🟢
24h高: $XX,XXX.XX
24h低: $XX,XXX.XX
24h成交量: XXX BTC ($XXX.XXM)
交易次数: XXX
Top coins table
📊 Top 10 加密货币
币种 价格 24h 市值 7日
BTC $XX,XXX +X.XX% 🟢 $X.XXT +X.XX%
ETH $X,XXX -X.XX% 🔴 $X.XXB -X.XX%
SOL $XXX +X.XX% 🟢 $XX.XB +X.XX%
...
Market overview
📈 加密货币市场概况 (2026-05-22)
总市值: $X.XXT 24h成交量: $XXB
BTC支配率: XX.X% 恐惧贪婪指数: XX (贪婪)
🏆 涨幅榜
1. SOL +8.5% 🟢 $XXX.XX
2. SUI +5.2% 🟢 $X.XX
3. DOGE +3.1% 🟢 $0.XXX
📉 跌幅榜
1. XRP -2.3% 🔴 $X.XX
2. ADA -1.8% 🔴 $X.XX
Use Cases
- Pre-trade price check across exchanges
- Portfolio tracking (fetch multiple tickers)
- Market sentiment analysis (gainers/losers)
- Alert threshold monitoring
Notes
- Binance public API does NOT require authentication for ticker endpoints — fastest and most reliable
- CoinGecko API has rate limits (~30 calls/min without key)
- Prices are in USD (USDT pairs) unless specified
- For production monitoring, consider Binance WebSocket streams for real-time updates
微信扫一扫