Get token fiat prices
流量控制: 5 每 秒
摘要
HTTP 方法
GET
访问路径
/api/v3/price
功能
Fetches, for all the tokens supported by Loopring, their fiat price.
API 描述
HTTP头
无
请求参数
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
legal | string | 是 | The fiat currency to uses. Currently the following values are supported: USD,CNY,JPY,EUR,GBP,HKD | "USD" |
请求示例
HTTP
CURL
GET https://api3.loopring.io/api/v3/price?legal=USD HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
curl https://api3.loopring.io/api/v3/price\?legal\=USD
响应字段
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
prices | List[PriceV3] | 否 | field.GetPriceResponseV3.prices | / |
响应示例
{
"prices" : [
{
"symbol" : "LRC",
"price" : "0",
"updatedAt" : 0
}
]
}
状态码
状态码 | 描述 |
---|---|
100000 | Unknown error |
模型
PriceV3
Token fiat price
字段 | 类型 | 必须 | 说明 | 举例 |
---|---|---|---|---|
symbol | string | 是 | Token symbol | "LRC" |
price | string | 是 | Fiat price | "0" |
updatedAt | integer | 是 | Last update timestamp | 0 |