Get market candlestick

流量控制: 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/candlestick

功能

Return the candlestick data of a given trading pair.

API 描述


HTTP头

请求参数

字段 类型 必须 说明 举例
market string Trading pair ID, multi-market is not supported "LRC-ETH"
interval string Candlestick interval, Supported values are: 1min, 5min, 15min, 30min, 1hr, 2hr, 4hr, 12hr, 1d, 1w "5min"
start integer Start time 1584479105000
end integer End time 1584565505000
limit integer Number of data points. If more data points are available, the API will only return the first 'limit' data points. 120

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/candlestick?market=LRC-ETH&interval=5min&start=1584479105000&end=1584565505000&limit=120 HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
curl https://api3.loopring.io/api/v3/candlestick\?market\=LRC-ETH\&interval\=5min\&start\=1584479105000\&end\=1584565505000\&limit\=120

响应字段

字段 类型 必须 说明 举例
candlesticks List[List[string]] Candlestick data, each set of data includes start time, number of transactions, opening price, closing price, highest price, lowest price, total transaction volume of Base Token, total transaction volume of Quote Token "[["1584565500000","5
","1.5","5.5","8.8",
"0.5","0.5","0.5"]]"

响应示例

{
    "candlesticks" : [["1584565500000","5","1.5","5.5","8.8","0.5","0.5","0.5"]]
}

状态码

状态码 描述
100000 Unknown error
100001 Invalid argument

results matching ""

    No results matching ""