交易對價格歷史(K 線)

該接口提供加密貨幣在指定時間週期內的歷史開盤價、最高價、最低價和收盤價(OHLC)數據

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

快取 / 更新頻率: 即時更新.

該接口以下 API 等級可用: API 等級

API 等級業餘版創業版標準版專業版企業版
可用性
颗粒度>=4h>=30m無限制無限制無限制

響應數據

{
  "code": "0",
  "msg": "success",
  "data": [
    {
      "time": 1741690800000,
      "open": 81808.25,//開盤價
      "high": 82092.34,//最高價
      "low": 81400,//最低價
      "close": 81720.34,//關盤價
      "volume_usd": 96823535.5724
    },
    {
      "time": 1741694400000,
      "open": 81720.33,
      "high": 81909.69,
      "low": 81017,
      "close": 81225.5,
      "volume_usd": 150660424.1863
    }
  ]
}
Query Params
string
required
Defaults to Binance

交易所名稱(例如:Binance、OKX)。可透過 support-exchange-pair 接口獲取支持的交易所。

string
required
Defaults to BTCUSDT

交易對(例如:BTCUSDT)。可透過 support-exchange-pair 接口查詢支持的交易對。

string
required
Defaults to 1h

數據時間間隔。支持的取值包括:1m、3m、5m、15m、30m、1h、4h、6h、8h、12h、1d、1w。

string
Defaults to 10

每次請求返回的數據筆數。預設值:1000,最大值:4500。

string

起始時間戳,單位為毫秒(例如:1746776387000)。

string

結束時間戳,單位為毫秒(例如:1746776587000)

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json