Get market ticker

Rate limit: 3 every second

API Overview


HTTP method

GET

Path

/api/v2/ticker

Summary

Returns the ticker of a given trading pair.

API description


HTTP Header

Field Type Required Description Example
X-API-KEY string Y ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

Request parameters

Field Type Required Description Example
market string Y Market pair, support multiple markets "LRC-ETH,LRC-USDT"

Request example

HTTP
CURL
GET https://api.loopring.io/api/v2/ticker?market=LRC-ETH,LRC-USDT 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/ticker\?market\=LRC-ETH,LRC-USDT

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y The returned message /
data List[List[string]] N 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. All values are returned as strings. "[["LRC-ETH", "1584565505000","100
0","1000","1000","10
00","1000","1000","1
000","1000","1000"]]"

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : [["LRC-ETH", "1584565505000","1000","1000","1000","1000","1000","1000","1000","1000","1000"]]
}

Status code

Value Description
100000 Unknown error
100001 Invalid argument

results matching ""

    No results matching ""