GET
/
spot
/
prices
/
assets
/
{asset}
/
historical
/
Assets Historical
curl --request GET \
  --url https://api.amberdata.com/market/spot/prices/assets/{asset}/historical/ \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": [
    {
      "timestamp": "2020-09-11T20:17:00.000Z",
      "asset": "btc",
      "price": 10334.1579,
      "volume": 3.7839
    }
  ]
}

Authorizations

x-api-key
string
header
default:API_KEY
required

Path Parameters

asset
string
default:btc
required

The asset for which to retrieve the requested data.

Query Parameters

startDate
string<date-time>

[Optional] Payload only includes data after this date (inclusive). <br>The interval can not exceed 12 months (d), 30 days (h) or 24 hours (m).<br>[Formats] seconds | milliseconds | iso8601<br>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string<date-time>

[Optional] Payload only includes data before this date (exclusive). <br>The interval can not exceed 12 months (d), 30 days (h) or 24 hours (m).<br>[Formats] seconds | milliseconds | iso8601<br>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

timeInterval
string

[Optional] The time interval of the timeseries in the return payload.<br/>[Defaults] m* | minute | h | hour | d | day

timeFormat
string

[Optional] Time format of the timestamps in the return payload.<br/>[Defaults] milliseconds | ms* | iso | iso8601 | hr | human_readable

Response

200
application/json

200

The response is of type object.