CoinAPI
所有货币交易所统一集成于单一 API 之下
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- No
- 分类
- 加密货币
- 文档 / URL
- https://docs.coinapi.io/
简介
CoinAPI 聚合数百家交易所的市场数据——实时和历史价格、订单簿、成交和汇率——通过一个 REST API 提供。认证是免费 API 密钥(无效密钥返回 401,已实测)。
快速开始
汇率(替换 YOUR_KEY):
curl "https://rest.coinapi.io/v1/exchangerate/BTC/USD" \
-H "X-CoinAPI-Key: YOUR_KEY"
{
"asset_id_base": "BTC",
"asset_id_quote": "USD",
"rate": 67234.5,
"time": "2026-08-22T06:00:00.0000000Z"
}
跨交易所的当前汇率:
curl "https://rest.coinapi.io/v1/exchangerate/BTC/USD?invert=true" \
-H "X-CoinAPI-Key: YOUR_KEY"
历史日汇率:
curl "https://rest.coinapi.io/v1/exchangerate/BTC/USD/history?period_id=1DAY&time_start=2026-08-01" \
-H "X-CoinAPI-Key: YOUR_KEY"
认证方式
- 在 coinapi.io 注册 → 免费 API 密钥(邮件发送)。
- 通过
X-CoinAPI-Key请求头携带(无效密钥返回 401——已实测)。
速率限制与注意事项
- 免费层:100 次请求/天(最多 250 个交易对)——额度较小;付费档可扩展。
- 覆盖 600+ 资产和 300+ 交易所——很大的聚合宇宙。
- 交易对用
资产/报价格式;元数据端点列出可用交易对。 - 历史数据深度取决于套餐。
常见问题
CoinAPI 免费吗? 免费层:100 次/天;更多需要付费。
如何获取密钥? 在 coinapi.io 注册——密钥会邮件发送。
有什么数据? 来自 300+ 交易所的汇率、订单簿、成交和历史数据。
加密货币 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 0x API for querying token and pool stats across various liquidity pools | No auth | Yes | Yes | ↗ |
| 1inch API for querying decentralize exchange | No auth | Yes | Unknown | ↗ |
| Alchemy Ethereum Ethereum Node-as-a-Service Provider | API Key | Yes | Yes | ↗ |
| Alpha (Mossland) Korean crypto channel stance + RAG Q&A + canonical entity/topic/event store | No auth | Yes | Yes | ↗ |
| Binance Exchange for Trading Cryptocurrencies based in China | API Key | Yes | Unknown | ↗ |