All APIs

Exchange rate API

Get current exchange rates. Convert amounts or retrieve stored historical rates with the same API key.

Sign-ups paused
Read the docs

First request

Convert an amount

curl "https://api.dino.markets/v1/fx/convert?from=USD&to=IDR&amount=100" \
  -H "Authorization: Bearer $DINO_API_KEY"
Example response
{
  "from": "USD",
  "to": "IDR",
  "rate": "18179.91",
  "converted": "1817991.00",
  "market_session": "open",
  "timestamp": "2026-11-11T13:47:41.048119Z",
  "stale": false
}

Endpoints

GETGet current rates/v1/fx/rates/{base}

Current rates for one base currency. Use it to show a price or a rate table.

Parameters

  • baserequired

    The base currency, as an uppercase ISO 4217 code.

  • currenciesoptional

    A comma-separated list of 1 to 64 different quote currencies. Leave it out to get every supported quote.

Response fields

  • basestring

    The base currency.

  • market_sessionstring

    Whether the market is open, on a weekend or closed between trading sessions.

  • ratesarray

    One record for each quote currency.

  • rates[].currencystring

    The quote currency.

  • rates[].ratestring

    What one unit of the base is worth in the quote currency, as a decimal string.

  • rates[].timestampdate-time

    The time of this rate.

  • rates[].staleboolean

    Whether this rate is stale.


Full reference
GETConvert an amount/v1/fx/convert

Convert a positive amount using one selected rate. The result is rounded once, to the target currency's minor unit.

Parameters

  • fromrequired

    The source currency.

  • torequired

    The target currency. It must differ from from.

  • amountrequired

    A positive decimal string, up to 1000000000000.

Response fields

  • fromstring

    The source currency.

  • tostring

    The target currency.

  • ratestring

    The rate used.

  • convertedstring

    The converted amount, as a decimal string.

  • market_sessionstring

    Whether the market is open, on a weekend or closed between trading sessions.

  • timestampdate-time

    The time of the rate.

  • staleboolean

    Whether the rate is stale.


Full reference
GETGet historical rates/v1/fx/rates/{base}/observations

Stored rates in date order, a page at a time. Dates with no stored rate are left out, never filled in.

Parameters

  • baserequired

    The base currency, as an uppercase ISO 4217 code.

  • currenciesrequired

    A comma-separated list of 1 to 64 different quote currencies. The base cannot be in it.

  • start_daterequired

    The first day, on or after 1971-01-01. Inclusive.

  • end_daterequired

    The last day, on or after start_date and not in the future. Inclusive.

  • limitoptional

    Dates per page. The default is 100 and the most is 366.

  • cursoroptional

    Reuse next_cursor from the previous page with the same filters.

Response fields

  • basestring

    The base currency.

  • observationsarray

    One record for each date, with the rates stored for it.

  • next_cursorstring

    The cursor for the next page. Null on the last page.


Full reference

Use cases

A rate on a past date

Get the exchange rate for one date and handle days with no rate.

Read the use case →

Coverage

  • USD
  • EUR
  • GBP
  • JPY
  • AUD
  • CAD
  • CHF
  • CNY
  • INR
  • IDR
  • SGD
  • KRW
Show all 143 currencies
  • AED
  • AFN
  • ALL
  • AMD
  • AOA
  • ARS
  • AWG
  • AZN
  • BAM
  • BBD
  • BDT
  • BGN
  • BHD
  • BIF
  • BMD
  • BND
  • BOB
  • BRL
  • BSD
  • BTN
  • BWP
  • BZD
  • CDF
  • CLP
  • COP
  • CRC
  • CVE
  • CZK
  • DJF
  • DKK
  • DOP
  • DZD
  • EGP
  • ETB
  • FJD
  • FKP
  • GEL
  • GHS
  • GIP
  • GMD
  • GNF
  • GTQ
  • GYD
  • HKD
  • HNL
  • HTG
  • HUF
  • ILS
  • IQD
  • ISK
  • JMD
  • JOD
  • KES
  • KGS
  • KHR
  • KMF
  • KWD
  • KYD
  • KZT
  • LAK
  • LBP
  • LKR
  • LRD
  • LSL
  • LYD
  • MAD
  • MDL
  • MGA
  • MKD
  • MMK
  • MNT
  • MOP
  • MRU
  • MUR
  • MVR
  • MWK
  • MXN
  • MYR
  • MZN
  • NAD
  • NGN
  • NIO
  • NOK
  • NPR
  • NZD
  • OMR
  • PAB
  • PEN
  • PGK
  • PHP
  • PKR
  • PLN
  • PYG
  • QAR
  • RON
  • RSD
  • RWF
  • SAR
  • SBD
  • SCR
  • SEK
  • SHP
  • SLE
  • SOS
  • SRD
  • STN
  • SZL
  • THB
  • TJS
  • TMT
  • TND
  • TOP
  • TRY
  • TTD
  • TWD
  • TZS
  • UAH
  • UGX
  • UYU
  • UZS
  • VES
  • VND
  • VUV
  • WST
  • XAF
  • XCD
  • XOF
  • XPF
  • YER
  • ZAR
  • ZMW

Related APIs

Spot metals price API

Gold, silver, platinum and palladium spot prices, plus WTI, Brent and copper reference prices.

Explore the API →

Public Holidays API

Official public holidays by country, with national and regional scope.

Explore the API →

Pricing

Four monthly plans, from Free to $199 a month. A plan sets how far back you can read.

See pricing →

FAQ

What does an FX rate mean?

One unit of the base equals the returned amount of the quote currency.

Which currencies are supported?

143 currencies. The coverage page lists every one.

Does the API include historical rates?

Yes. History uses genuine stored dates, bounded pages, and opaque cursors.

What happens on weekends?

The latest accepted rate can remain available with its timestamp, stale state, and weekend market session. Missing publication dates are not filled with synthetic rates.

How far back can I read?

It depends on your plan. Free reads the last 12 months, Starter 5 years, Basic 5 years and Pro the full history. The records themselves start earlier; each response reports its own start.

Are these executable dealer quotes?

No. Rates and conversions are indicative, not dealer quotes or official fixings.