GET
/
exchanges
/
volumes
/
historical
Exchange Volume Historical
curl --request GET \
  --url https://api.amberdata.com/market/metrics/exchanges/volumes/historical \
  --header 'x-api-key: <api-key>'
{
  "status": 200,
  "title": "OK",
  "description": "Successful request",
  "payload": {
    "metadata": {
      "startDate": "2022-03-10 00:00:00 000",
      "endDate": "2022-03-11 10:00:00 000"
    },
    "data": [
      {
        "exchange": "gdax",
        "timestamp": "2022-03-10 00:00:00 000",
        "volumeUSD": "3029052159.68516987"
      },
      {
        "exchange": "gdax",
        "timestamp": "2022-03-11 00:00:00 000",
        "volumeUSD": "2408096681.88571256"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
default:API-KEY
required

Query Parameters

exchange
string

[Optional] The exchange for which to retrieve the most current data.<BR/>[Default] All available exchanges.

direction
string
default:desc

[Optional] The order in which to return the results, ordered by volumeUSD (ascending or descending). By default, records are returned in descending order, so the records with the largest volume are returned first.

startDate
string

[Optional] Payload only includes data after this date (inclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

endDate
string

[Optional] Payload only includes data before this date (exclusive).<BR>[Formats] seconds | milliseconds | iso8601<BR>[Examples] 1578531600 | 1578531600000 | 2020-09-01T01:00:00

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.