查询交易所Ticker

流量控制: 5 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v2/ticker

功能

查询交易所24小时维度Ticker

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

请求参数

字段 类型 必须 说明 举例
market string 市场对,支持多市场 "LRC-ETH,LRC-USDT"

请求示例

HTTP
CURL
GET https://api.loopring.io/api/v2/ticker?market=LRC-ETH,LRC-USDT HTTP/1.1
Host: api.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
curl -H "X-API-KEY:sra1aavfa" https://api.loopring.io/api/v2/ticker\?market\=LRC-ETH,LRC-USDT

响应字段

字段 类型 必须 说明 举例
resultInfo ResultInfo 返回信息 /
data List[List[string]] Ticker信息,每一组数据包括市场对,时间戳,Base Token成交总量,Quote Token成交总额,开盘价,最高价,最低价,收盘价,交易笔数,买单盘口,卖单盘口 "[["LRC-ETH", "1584565505000","100
0","1000","1000","10
00","1000","1000","1
000","1000","1000"]]"

响应示例

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : [["LRC-ETH", "1584565505000","1000","1000","1000","1000","1000","1000","1000","1000","1000"]]
}

状态码

状态码 描述
100000 未知错误
100001 参数非法

results matching ""

    No results matching ""