Endpoints

Historical rates

GET/api/v1/rates/history

OHLC candles for any active pair. The candle interval is chosen from the period: hourly candles for 1d / 7d, daily candles for 30d / 90d.

Query parameters

ParamDescription
baserequiredBase asset, e.g. BTC
quoteoptionalQuote currency, e.g. USD. Default: USD
periodoptional1d, 7d, 30d, or 90d. Default: 7d
Example
$ curl "https://pricefeed.online/api/v1/rates/history?base=BTC&quote=USD&period=7d"
Response · 200 OK
{
  "success": true,
  "base": "BTC",
  "quote": "USD",
  "period": "7d",
  "interval": "1h",
  "points": [
    {
      "timestamp": "2026-06-05T10:00:00+00:00",
      "open": 101230.00,
      "high": 101890.50,
      "low": 100950.20,
      "close": 101510.80
    },
    {
      "timestamp": "2026-06-05T11:00:00+00:00",
      "open": 101510.80,
      "high": 102420.00,
      "low": 101102.40,
      "close": 102007.30
    }
    // … one point per interval
  ]
}