匯率行情
查詢幣種對 USD 的最新價格、指定時點價格與歷史價格序列。
最新 / 指定時點查價
# 最新價(多幣)
curl "https://api.blockchainsecurity.asia/v1/rates?symbols=BTC,ETH" \
-H "X-API-Key: ak_live_YOUR_KEY"
# 某時點(unix 秒)
curl "https://api.blockchainsecurity.asia/v1/rates?symbols=BTC,ETH&at=1700000000" \
-H "X-API-Key: ak_live_YOUR_KEY"參數
必填
說明
{
"data": {
"at": 1700000000,
"rates": [
{ "symbol": "BTC", "price_usd": 37500.5, "ts": 1699999200 },
{ "symbol": "ETH", "price_usd": 2050.5, "ts": 1699999200 }
]
},
"meta": { "request_id": "..." }
}歷史序列
支援幣種列表
端點與計費
Method
路徑
說明
Credit
Last updated
Was this helpful?

