/price2usd/history/{assetName}

Get the historical quotation (USD) of crypto asset.

Parameters

  • {assetName} [required] Crypto asset name, such as: BTC, ETH, etc.

  • interval [optional] Quote time, selection range: m1, m5, m15, m30, h1, h2, h6, h12, d1. m for minutes, h for hours.

  • start [optional] The milliseconds of quote start time, such as: 1566189398000

  • end [optional] The number of milliseconds of the quotation end time, such as: 1566189798000

Request

  • Please replace YOUR-API-KEY with your API-KEY.

curl -X GET 'https://api.solarpath.io/v1/YOUR-API-KEY/price2usd/history/eth?interval=m5&start=1566189398000&end=1566189798000'

Response

{
  "code": 200,
  "msg": "successful",
  "status": "success",
  "result": [
    {
      "id": "ethereum",
      "rank": "2",       // Asset ranking
      "symbol": "ETH",   // Asset abbr
      "name": "Ethereum",// Asset Name
      "priceUsd": "196.4112859400220114" // Quote every 5 minutes between specified start~end
    }
  ]
}

Last updated