Get market configurations

Rate limit: 5 every second

API Overview


HTTP method

GET

Path

/api/v2/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 https://api.loopring.io/api/v2/exchange/markets 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/exchange/markets

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data List[MarketInfo] N Markets list /

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : [
        {
            "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"

results matching ""

    No results matching ""