apyhub
Back
▣ FINANCE

Get Historical Crypto Prices and Volume API

What it does

Crypto Price History returns historical price and volume data for a cryptocurrency symbol. Send a symbol, optionally set vs to usd, eur, gbp, btc, or eth, and choose a days window up to 365. The response includes the requested symbol, the quote currency in vs, the number of days, a source, and a points array.

Each point in points contains a Unix timestamp in milliseconds (t), the price, and the traded volume at that time. That makes it easy to plot price charts, compare recent volatility, or backfill time-series data in your own dashboard or analytics pipeline.

Use Crypto Price History when you need a compact market-history feed for a trading screen, portfolio tracker, alerting job, or crypto research workflow. The output is already structured for charting and downstream storage, without extra parsing.

GET
crypto price history
https://api.eu.apyhub.com/corsair96/crypto-price-volume-history/crypto/history

QUICKSTART

GUIDE

Quickstart

Get the daily price history for a symbol over the last 7 days.

curl -X GET "https://api.eu.apyhub.com/corsair96/crypto-price-volume-history/crypto/history?symbol=BTC&vs=usd&days=7" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with source (string), symbol (string), vs (string), days (integer), and points (array of objects). Each item in points includes t (Unix timestamp in milliseconds), price (number), and volume (number).

{
  "source": "coinbase",
  "symbol": "BTC",
  "vs": "usd",
  "days": 7,
  "points": [
    {
      "t": 1717200000000,
      "price": 68000.5,
      "volume": 1234.56
    }
  ]
}
TRY ITLIVE · 90 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Returns daily price history for a queried symbol over a number of days, compared against a selected vs currency. The response includes the symbol, quote currency, day range, data source, and an array of time-series points.

Query Parameter(s)

AttributeTypeMandatoryDescription
symbolStringYesThe asset symbol to fetch price history for.
vsENUMNoQuote currency to compare against. Allowed values: usd, eur, gbp, btc, eth. Default: usd.
daysIntegerNoNumber of days to return. Default: 7. Minimum: 1. Maximum: 365.

Response

Returns a JSON object with source (String), symbol (String), vs (String), days (Integer), and points (Object Array) fields. points contains one object per time point, and each item includes t (Integer), price (Number), and volume (Number).

AttributeTypeDescription
sourceStringData source identifier.
symbolStringThe asset symbol returned by the API.
vsENUMQuote currency used in the response. Allowed values: usd, eur, gbp, btc, eth.
daysIntegerNumber of days included in the history.
pointsObject ArrayArray of time-series points. Each item contains: t (Integer): Unix timestamp in milliseconds, price (Number), and volume (Number).
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.