CurrencyFreaks logoCurrencyFreaksPowered by APIFreaks
GET /v2.0/ohlc

Open, high, low and close for every currency

Pick a finished day and a list of currencies. Get where each rate opened, how high and low it went, and where it closed.

One day against USD

27 November 2026, 00:01 to 00:00 UTC

1 request, 4 currencies
  • EUR
    open
    0.911577
    high
    0.914788
    low
    0.910415
    close
    0.914495
  • GBP
    open
    0.762951
    high
    0.763825
    low
    0.761093
    close
    0.763446
  • INR
    open
    92.505
    high
    93.0025
    low
    92.4486
    close
    92.9322
  • JPY
    open
    159.29
    high
    159.59
    low
    159.15
    close
    159.54
closed lowerclosed higher

Included from the

Starter plan

from $9.99 a month

  1. Starter, included
  2. Growth, included
  3. Professional, included
  4. Enterprise, included
Compare plans

One finished day, four numbers

A day runs from 00:01 to 00:00 UTC. The API tracks every rate in between and keeps the first, the highest, the lowest and the last.

USD to EUR, 27 November 2026

Four numbers describe the whole day.

00:01 UTC00:00 UTChigh0.914788close0.914495open0.911577low0.910415
date
2026-11-27
day range
0.48%
direction
closed higher

close

= the date's historical rate

The day ends at 00:00 UTC, the same moment the historical rate is taken, so for recent dates both endpoints return the same number.

date

finished days only

Today is still moving, so it returns 404. Yesterday and earlier days back to 19 April 2020 work.

The day's range in one subtraction

high minus low is how far the rate travelled within the day. For the euro on 27 November it was 0.48% of the low, a number you cannot get from daily closing rates.

GET/v2.0/ohlc?date=2026-11-27&symbols=EUR,GBP,INR,JPY200 OK
ratesopenhighlowclose
EUR"0.911577""0.914788""0.910415""0.914495"
GBP"0.762951""0.763825""0.761093""0.763446"
INR"92.505""93.0025""92.4486""92.9322"
JPY"159.29""159.59""159.15""159.54"
  • apikeyRequired

    The key from your dashboard.

  • dateRequired

    A finished day, YYYY-MM-DD. Today returns 404.

  • baseOptional

    Base currency. Defaults to USD.

  • symbolsOptional

    Comma separated codes. Defaults to all currencies.

  • formatOptional

    json or xml. Defaults to json.

Any base currency, with honest bounds

Pass base=EUR and every rate is quoted per euro. Open and close divide cleanly. High and low cannot, because the two currencies may have peaked at different minutes, so the API returns the widest range the day allows.

GET/v2.0/ohlc?date=2026-11-27&base=EUR&symbols=GBP
  • openexact

    GBP open ÷ EUR open

    0.762951 ÷ 0.911577

    "0.8369572729456756"

  • closeexact

    GBP close ÷ EUR close

    0.763446 ÷ 0.914495

    "0.8348279651610998"

  • highupper bound

    GBP high ÷ EUR low

    0.763825 ÷ 0.910415

    "0.8389855175936248"

  • lowlower bound

    GBP low ÷ EUR high

    0.761093 ÷ 0.914788

    "0.831988395125428"

A week of candles in five calls

Each call returns one finished day. Loop over the dates, keep the four numbers, and hand them to any charting library.

// One call per finished day builds a candle chart
const days = ["2026-11-23", "2026-11-24", "2026-11-25", "2026-11-26", "2026-11-27"];

const candles = await Promise.all(
  days.map(async (date) => {
    const url = new URL("https://api.currencyfreaks.com/v2.0/ohlc");
    url.search = new URLSearchParams({
      apikey: process.env.CURRENCYFREAKS_KEY,
      date,
      symbols: "EUR",
    });
    const { rates } = await (await fetch(url)).json();
    const { open, high, low, close } = rates.EUR;
    return { date, open: +open, high: +high, low: +low, close: +close };
  }),
);
day range27 Nov 2026, USD base
  1. 1INR0.60%

    92.4486 to 93.0025

  2. 2EUR0.48%

    0.910415 to 0.914788

  3. 3GBP0.36%

    0.761093 to 0.763825

  4. 4JPY0.28%

    159.15 to 159.59

Built for the shape of a day, not just its end

Open, high, low and close answer questions a single daily rate cannot.

Candlestick charts

Call the endpoint once per finished day and feed the candles to a trading dashboard, a finance app or a market page, with no tick collector of your own.

Execution checks

Confirm the rate a bank or payment provider gave you sits inside the day's low and high.

Daily volatility

Rank currencies by how far they travelled within the day.

Alert backtests

Check whether a past day touched a stop or limit level.

End of day reports

Add the open, the close and the day's range to treasury and trading desk summaries.

Questions, answered

The things developers ask before they write the first line.

Still have a question?

Send us your question and a developer from the team will get back to you.

Contact the team
What does the OHLC API return?

For one finished day and each currency you ask for: the first rate of the day (open), the highest (high), the lowest (low) and the last (close), all against the base you choose.

Which plans include it?

Every paid plan: Starter, Growth, Professional and Enterprise.

When does a day start and end?

A day runs from 00:01 UTC to 00:00 UTC of the next day. The day ends at the moment the historical rate for that date is taken, so for recent dates close is the same number the Historical Rates API returns.

Can I get today's OHLC?

No. Only finished days have OHLC data, so a request for today returns 404. Ask for yesterday or an earlier date.

How far back does OHLC data go?

To 19 April 2020. A date before that, or one of the few older days with no OHLC data, returns 404. For daily rates further back, to 1984, use the Historical Rates API.

How do high and low work with a base other than USD?

Open and close are exact. High and low are the widest possible bounds: the symbol's high divided by the base's low, and the symbol's low divided by the base's high. The minute each extreme happened is not known, so the true range sits inside these bounds.

Can I get several days in one call?

Each call covers one day. Loop over the dates you need, one request per day. For daily closing rates across a long range in one call, use the Time Series API.

What does a 206 status mean?

Some of the requested symbols had no data for that day. They are left out of rates and the rest are returned as normal.

Is the endpoint throttled?

No. Plans with an API key have no per second, per minute or per day throttling, only the monthly quota of the plan.

See the whole day, not just how it ended

The OHLC endpoint is included in every paid plan, starting with Starter.