public-crypto-data

Price bars for one coin, keyed by slug

Keyless form of /api/agent/market/{coinId}/candles, keyed by slug: the same loader and payload, without observation. range fixes both lookback and resolution: 1H = 60 x 1-minute, 1D = 288 x 5-minute, 1W = 672 x 15-minute, 1M = 720 x 1-hour, 3M = 540 x 4-hour, 1Y = up to 366 daily bars. Bars are oldest first with t in unix SECONDS. They are sampled composite-price bars, not venue trade candles, and v is a rolling 24-hour USD quote-volume observation at the bar, not the volume traded during it: never sum v.

o/h/l/c are converted to fiat at the nearest stored rate. Here fiat is upper-cased and echoed; rateToUsd: 1 with a non-USD fiat means the code is not tracked and the values are USD.

Query parameters other than range and fiat are ignored. Unknown slug: 404 {"error": "Coin not found"}. Also served at /api/v1/coins/{slug}/candles with identical behaviour.

get/api/coins/{slug}/candles

Request

  • Base URL: https://api.coinrithm.com
  • URL: https://api.coinrithm.com/api/coins/{slug}/candles
  • Auth: none required

Path parameters

slugstring required

Coin slug as on the website, for example bitcoin (the slug of a /api/coins or /api/live-prices row).

Query parameters

range'1H' | '1D' | '1W' | '1M' | '3M' | '1Y'

Lookback window; also fixes the bar resolution. Legacy aliases 1m (as 1H) and 3m (as 1D) are accepted; any other value returns 400.

fiatstring

Currency for o/h/l/c, case-insensitive (default USD). At most 10 characters, or 400.

Response

Bars for the requested range, oldest first

range'1H' | '1D' | '1W' | '1M' | '3M' | '1Y' required
fiatstring required

The requested currency, upper-cased.

rateToUsdnumber required

Latest fiat-per-USD rate (1 for USD, and 1 for an untracked code).

Changes

No recorded changes to this operation across all 1 revision of this API.