Skip to main content
GET
cURL
5 credits per request

  • exchange: Exchange identifier.
  • timestamp: Unix timestamp at which to compute the price.
  • from: Base currency symbol to convert from.
  • to: Target currency symbol to convert to.

Authorizations

X-API-KEY
string
header
required

API key required to access the endpoints. Generate one from your dashboard at https://openapi.coinstats.app and pass it in the X-API-KEY request header. Never expose your key in client-side code.

Query Parameters

exchange
string
required

The name of the exchange to get price data from

Example:

"Binance"

from
string
required

The base currency symbol to convert from

Example:

"BTC"

to
string
required

The target currency symbol to convert to

Example:

"ETH"

timestamp
number
required

Unix timestamp in seconds for the historical price lookup

Example:

1636315200

Response

Get Historical coin exchange price

price
number
required

The price of the cryptocurrency in the target currency

Example:

15.7349