Get token fiat prices

Rate limit: 3 every second

API Overview


HTTP method

GET

Path

/api/v2/price

Summary

Returns the fiat prices of the given tokens

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
legal string Y The fiat currency to uses. Currently the following values are supported: USD,CNY,JPY,EUR,GBP,HKD "USD"

Request example

HTTP
CURL
GET https://api.loopring.io/api/v2/price?legal=USD 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/price\?legal\=USD

Response fields

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

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : [
        {
            "symbol" : "LRC",
            "price" : "0",
            "timestamp" : 0
        }
    ]
}

Status code

Value Description
100000 Unknown error

Model


Price

Token fiat price

Field Type Required Description Example
symbol string Y Token symbol "LRC"
price string Y Fiat price "0"
timestamp integer Y Last update timestamp 0

results matching ""

    No results matching ""