api.getMixedMarkets.value
流量控制: 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/mix/markets
功能
Returns the configurations of all supported markets (trading pairs)
API 描述
HTTP头
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
X-API-KEY | string | 是 | ApiKey | "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ 6B6DQ6THZWbvrAGxzEdulXQvOKLrRW ZLnN" |
请求参数
无
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/mix/markets HTTP/1.1
Host: api3.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://api3.loopring.io/api/v3/mix/markets
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
markets | List[Combine Market Info] |
是 | Markets list | / |
响应示例
{
"markets" : [
{
"market" : "LRC-USDT",
"baseTokenId" : 2,
"quoteTokenId" : 0,
"precisionForPrice" : 6,
"orderbookAggLevels" : 4,
"enabled" : true,
"status" : 3(0b11),
"createdAt" : "1609466400000"
}
]
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |
模型
CombineMarketInfo
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
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 | "true" |
status | integer | 是 | field.CombineMarketInfo.status | "3(0b11)" |
createdAt | string | 是 | field.AmmMarketInfo.createdAt | "160946640000 0" |