直达内容

Read Historical Prices

GET /network/ticker

Get the historical price of a given asset_id.

API 端点 URL

 https://api.mixin.one/network/ticker?asset=:asset&offset=:offset

授权和其他选项

授权公开访问
限制No limitation

参数

asset
*必须
the asset's asset_id are getting
offsetSpecify query time in RFC3339Nano format, e.g. `2020-12-12T12:12:12.999999999Z`

请求示例

curl -i -X GET -H "Content-Type: application/json"  https://api.mixin.one/network/ticker?asset=f5ef6b5d-cc5a-3d90-b2c0-a2fd386e7a3c&offset=2020-09-21T13:53:29.38099Z
Response
{
"data": {
"type": "ticker",
"price_btc": "0.000135438312",
"price_usd": "2.582473"
}
}
信息

If no ticker found, price_usd and price_usd will return 0.