---
title: "Historical OHLC candles"
method: GET
path: "/api/v1/rates/history"
tags: ["Rates"]
---

# Historical OHLC candles

`GET /api/v1/rates/history`

## Request

- Base URL: `https://pricefeed.online`
- URL: `https://pricefeed.online/api/v1/rates/history`
- Auth: one of:
  - none
  - API key in header `X-API-Key`

## Query parameters

- `base` string, required
- `quote` string
- `period` '1d' | '7d' | '30d' | '90d'

## Response `200`

OK

- History
  - `success` boolean
  - `base` string
  - `quote` string
  - `period` string
  - `interval` string
  - `points` object[]
    - `timestamp` string, date-time
    - `open` number
    - `high` number
    - `low` number
    - `close` number

## Other responses

- `400`: Error response
- `404`: Error response

---

[API](https://skmtc.dev/pricefeed/apis/pricefeed-api.md) · [All operations](https://skmtc.dev/pricefeed/apis/pricefeed-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pricefeed/apis/pricefeed-api/revisions/b1429d14be52?raw)
