GET /coins/prices/historical/{timestamp}/{coins}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/defillama/coins/prices/historical/{timestamp}/{coins}Cache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

USD price(s) of one or more coins at a point in time (or several timestamps).

Parameters

nameintypedescription
timestamppathstrrequiredUnix timestamp in seconds (or comma-separated list)
example: 1719000000
coinspathstrrequiredComma-separated coin keys, each `source:id` — e.g. `coingecko:ethereum`, `ethereum:0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045`
example: coingecko:ethereum,coingecko:bitcoin

Response

type: object
pagination: none
sample: {
  "coins": "object"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/defillama/coins/prices/historical/1719000000/coingecko:ethereum,coingecko:bitcoin"