Get market ticker
流量控制: 5 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/ticker
功能
Gets a markets ticker. Generally speaking, a ticker in Loopring consists in data from the market taken last 24Hours.
API 描述
HTTP头
无
请求参数
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
market | string | 是 | Market pair, support multiple markets | "LRC-ETH,LRC- USDT" |
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/ticker?market=LRC-ETH,LRC-USDT 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/ticker\?market\=LRC-ETH,LRC-USDT
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
tickers | List[List[string]] | 否 | Each item in the list is an array that contains the following: trading pair ID, update timestamp, base token volume, quote token volume, open-price, highest price, lowest price, closing price, number of trades, highest bid price, lowest ask price, base fee amount, quote fee amount. All values are returned as strings. Fee amount is for AMM only. | "[["LRC-ETH", "15845655050 00","1000"," 1000","1000" ,"1000","100 0","1000","1 000","1000", "1000", "0", "0"]]" |
响应示例
{
"tickers" : [["LRC-ETH", "1584565505000","1000","1000","1000","1000","1000","1000","1000","1000","1000", "0", "0"]]
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |
100001 | Invalid argument |