Skip to content
Finance & Exchange Rates

Exchange rate

The exchange rate API returns a currency table and converts a base and quote. Includes the rate timestamp and a raw format for every field.

GET https://api2.globus.studio/v2/currencies

Reference

Parameters

Name Type Required Description
format string no json or raw (original payload). Default: json.
base string no ISO 4217 base currency. UAH returns the table as is. Default: UAH.
quote string no Optional single pair. Returns base, quote, rate, updated_at.

Example request

curl -s "https://api2.globus.studio/v2/currencies?base=USD&quote=EUR"
Open documentation

exchange rate

The exchange rate endpoint returns currency data with an optional base and quote conversion. The table comes from a scheduled refresh, so the call does not wait for a provider. The timestamp in the response is part of the answer and belongs next to any price you show. An exchange rate without a time is a number with no context.

What the exchange rate endpoint returns

An exchange rate request without quote returns a table of currency pairs with the base, the date and buy and sell rates. The default base is UAH. With base and quote the response becomes one object with the pair and the timestamp.

{
  "base": "USD",
  "quote": "EUR",
  "rate": 1.12195,
  "updated_at": "2026-11-02T09:16:13+00:00"
}

Table fields

A table row has currencyCodeA, currencyCodeB, date, rateBuy and rateSell. The date is a Unix timestamp. format=raw returns the original payload when you need every field. A client that only needs one pair should ask for the pair and skip the table.

Base and quote

An exchange rate request takes base as an ISO 4217 code. UAH returns the table as is. Another base converts the rows. quote narrows the answer to one pair. If the pair is missing, check the code and the table before you assume a zero rate.

Refresh and caching

A scheduled job writes the file the endpoint reads. The endpoint does not call the provider on every request. Cache the response for a few minutes and store the rate with the timestamp. If the timestamp is older than your policy allows, show the last value with a warning or use a manual rate.

Rounding

Do not round in the middle of a calculation. Keep the full rate, multiply, then round to the currency minor unit. Store the rate, the timestamp and the final amount so you can explain the total later. A rate rounded to two decimals before multiplication can shift a large invoice.

Weekends and stale data

Currency markets close, and a published rate can stay unchanged for a day or two. That is not a broken feed. Check the timestamp before you show a live label. If the refresh job fails, the endpoint keeps serving the last file, so monitor the age and alert when it passes the limit.

What it is not

The exchange rate response is a reference, not a trading feed and not a guarantee. A bank or a payment provider can use a different rate for the final charge. Use the endpoint for display and estimates, and the provider rate for the amount that leaves the account.

Display price and charged amount

The age of the rate matters as much as the value. A display price and a charged amount are two different numbers. The display can use the reference rate and a timestamp. The charge uses the payment provider rate at the moment of capture. Show the currency and the approximate total, then let the provider confirm the final amount. A customer should not see one number on the page and another on the statement without an explanation.

Show the rate age on a public price page if the number can move. If your product supports several currencies, store the currency with the order. A later rate change should not rewrite an old invoice. When you show a historical order, use the stored rate, not the current table.

Limits

The endpoint is fast and rate limited, and the table is small enough to cache in memory for a short period. Read the exchange rate guide for caching and rounding in a checkout.

Choose the display currency from the IP geolocation API, then let the visitor override it. For the build around the price, see the API collection.

Further reading: ISO 4217 currency codes.

Custom work

Need an API that does not exist yet?

Describe the task and the response format. We will estimate the endpoint, the integration and the maintenance.

Start a conversation