Get market configurations
流量控制: 5 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/exchange/markets
功能
Returns the configurations of all supported markets (trading pairs)
API 描述
HTTP头
无
请求参数
无
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/exchange/markets 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/exchange/markets
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
markets | List[Market Info] |
是 | Markets list | / |
响应示例
{
"markets" : [
{
"market" : "LRC-USDT",
"baseTokenId" : 2,
"quoteTokenId" : 0,
"precisionForPrice" : 6,
"orderbookAggLevels" : 4,
"enabled" : false
}
]
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |
模型
MarketInfo
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
market | string | 是 | Trading pair ID | "LRC-USDT" |
baseTokenId | integer | 是 | The base token ID | 2 |
quoteTokenId | integer | 是 | The quote token ID | 0 |
precisionForPrice | integer | 是 | The precision of price | 6 |
orderbookAggLevels | integer | 是 | The max level of orderbook price aggregation | 4 |
enabled | boolean | 是 | True if trading is enabled for this trading pair | "false" |