Get market configurations
Rate limit: every seconds
API Overview
HTTP method
GET
Path
/api/v3/exchange/markets
Summary
Returns the configurations of all supported markets (trading pairs)
API description
HTTP Header
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| X-API-KEY | string | Y | ApiKey | "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ 6B6DQ6THZWbvrAGxzEdulXQvOKLrRW ZLnN" |
Request parameters
None
Request example
HTTP
CURL
GET http://aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com/api/v3/exchange/markets HTTP/1.1
Host: aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfacurl -H "X-API-KEY:sra1aavfa" http://aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com/api/v3/exchange/marketsResponse fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| markets | List[MarketInfo] | Y | Markets list | / |
Response example
{
"markets" : [
{
"market" : "LRC-USDT",
"baseTokenId" : 2,
"quoteTokenId" : 0,
"precisionForPrice" : 6,
"orderbookAggLevels" : 4,
"enabled" : false
}
]
}
Status code
| Value | Description |
|---|---|
| 100000 | Unknown error |
Model
MarketInfo
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
| market | string | Y | Trading pair ID | "LRC-USDT" |
| baseTokenId | integer | Y | The base token ID | 2 |
| quoteTokenId | integer | Y | The quote token ID | 0 |
| precisionForPrice | integer | Y | The precision of price | 6 |
| orderbookAggLevels | integer | Y | The max level of orderbook price aggregation | 4 |
| enabled | boolean | Y | True if trading is enabled for this trading pair | "false" |