Docs/Sources/Currency Rate

Currency Rate

Get one currency's live value and history

OperationalCredits 2 per callp50 189msFinance

Overview

A currency rate API for tracking a single currency rather than a pair. Pass a currency code to get the value of one unit in US dollars (price) and the units per dollar (rate), with the currency's English name, symbol, the direction it moved since yesterday's close and when the rates were refreshed; rates refresh every few minutes. Paid plans can price the currency in any other base, and add its 1-day, 7-day, 30-day and 1-year percent change, the 24-hour high and low, and the 30-day high, low, average and volatility. hourly=true returns the price for each of the last 24 hours and daily=true its last 30 daily closes. To convert between two currencies use Exchange Rate or Currency Converter.

Live Test Currency Rate Source →

Formula

One function covers the whole catalog: the first argument names the source, the rest are its inputs, and the "field" pair says which single value lands in the cell. Formulas covers the grammar that applies to all of them.

=VERVE("currencyrate", A2, "field", "currencyName")

A2 holds the currency you are looking up. Drag the formula down and each row resolves on its own.

With literal values

Nothing has to come from a cell — typed values work the same way.

=VERVE("currencyrate", "EUR", "field", "currencyName")

Inputs

Required inputs are positional, in the order below. Everything else is passed as a "name", value pair after them — the same shape as SUMIFS. Premium inputs are accepted on every plan but only take effect on plans that include them.

InputTypeWhere it goesDescription
currencyRequiredstringargument 2 (A2)The ISO 4217 code of the currency to price (e.g. EUR)
baseOptionalPremiumstring"base", valueThe currency to price it in; defaults to USD
default USD
hourlyOptionalPremiumboolean"hourly", valueInclude the price for each of the last 24 hours
dailyOptionalPremiumboolean"daily", valueInclude the daily closing price for the last 30 days

Passing an option

=VERVE("currencyrate", A2, "base", "USD")

What lands in your sheet

The "field" pair is what makes the formula resolve to one cell. Its value is a dot-path from the table below, so swapping it is how you pull a different value — one formula per column.

Seeing everything at once

Drop the "field" pair and the formula returns the whole response instead: two columns, field name on the left and value on the right, spilling from the cell you typed in.

=VERVE("currencyrate", A2)
Good for exploring, not for filling down

The second row's table would land on top of the first's, and every cell after the first reads #REF! (#SPILL! in Excel). Keep one per sheet, or name a field, and leave the cells below and to the right empty.

Response fields

Paths are relative to data. Each one is exactly what the "field" pair accepts, so swapping it is how you pull a different value into a cell. On a plan without a Premium field the cell reads #PREMIUM(field) rather than a value, so a locked field never looks like a real answer.

Use as "field"TypeExample cell valueDescription
currencystringEURISO 4217 code of the currency priced
currencyNamestringEuroEnglish name of the currency; null when none is known
currencySymbolstring€Symbol of the currency (e.g. €); the code itself when it has no symbol
basestringUSDISO 4217 code of the currency the price is in
baseNamestringUS DollarEnglish name of the base currency
pricenumber1.1171949Value of 1 unit of the currency in the base currency
ratenumber0.895099Units of the currency per 1 unit of the base currency
changeDirectionstringdownup, down or unchanged since yesterday's close; null when no close is stored
datestring2026-10-27UTC date of the rates (YYYY-MM-DD)
lastUpdatedstring2026-10-27T20:39:40.670ZISO 8601 time the rates were last refreshed
change1dPremiumnumber-0.4448Percent change in price since yesterday's close; null until a close from then is stored
change7dPremiumnumber-0.5707Percent change in price over the last 7 days; null until a close from then is stored
change30dPremiumnumber-1.9319Percent change in price over the last 30 days; null until a close from then is stored
change1yPremiumnumber-4.0014Percent change in price over the last year; null when no close from then is stored
high24hPremiumnumber1.1222085Highest hourly price over the last 24 hours; null when no hours are stored
low24hPremiumnumber1.1169153Lowest hourly price over the last 24 hours; null when no hours are stored
high30dPremiumnumber1.1389042Highest daily close over the last 30 days; null until two days are stored
low30dPremiumnumber1.1171949Lowest daily close over the last 30 days; null until two days are stored
average30dPremiumnumber1.1237302Mean daily close over the last 30 days; null until two days are stored
volatility30dPremiumnumber0.2421Standard deviation of the daily percent changes over the last 30 days (not annualized); null until two days are stored
hourlyPremiumarray[24]Price for each of the last 24 hours, oldest first (when hourly=true)
hourly.0.hourPremiumnumber21UTC hour of day (0-23) the price was recorded in
hourly.0.pricePremiumnumber1.1216899Value of 1 unit in the base currency at that hour
hourly.0.timestampPremiumstring2026-10-26T21:39:40.670ZISO 8601 time the price was recorded
dailyPremiumarray[30]Daily closing price for the last 30 days, oldest first; today is the live price (when daily=true)
daily.0.datePremiumstring2026-09-28UTC date of the close (YYYY-MM-DD)
daily.0.pricePremiumnumber1.1389042Value of 1 unit in the base currency at that close

Filling a whole column

Both platforms make one batched call for a column rather than one request per cell, and both cost the same — 2 credits per row looked up. How you write it differs, because the two runtimes batch at different points.

Rows 2–100 in one call
=VERVE("currencyrate", A2:A100, "field", "currencyName")

In Google Sheets, give the arguments ranges and the answers spill down from the cell you typed in. Custom functions there run synchronously and in isolation, so dragged cells cannot be coalesced — the range form is how a column becomes one call. The "field" pair is required here: a per-row two-column table has nowhere to spill. Use a full column per input (A2:A100, not A2) — a single-cell reference is read as row 1 only and the rest of the column comes back blank.

In Excel, type the formula once and fill down — no range form and none needed, because its runtime is asynchronous and the add-in coalesces the calls a fill produces into a single batched request. Do not hand VERVE.CALL a range: Excel flattens it into positional arguments, so A2:A100 arrives as a hundred separate arguments and the cell reads #ERR rather than filling.

Either way, column A holds your currency values and the answers land beside them, one row each, blank rows skipped.

When a cell doesn't fill

A failed lookup returns readable text starting with #ERR rather than a spreadsheet error, because Excel cannot show a custom message on a real error — you would get a bare #VALUE! with no reason. The trade-off is that IFERROR() will not catch it; test with LEFT(cell, 4) = "#ERR" instead. Error handling covers the rest.

Cell readsWhat happened
#ERR Not connectedNo API key saved. Open the side panel and connect your account.
#ERR Replace <name> with a cell or valueA preview formula was copied as-is. Swap the placeholder for a cell reference.
#ERR No "x" in currencyrateAn option name this source does not take. The message lists the ones it does.
#ERR No data point "…"The "field" path is not in the response. Check it against the table above.
#PREMIUM(field)The field exists but your plan does not include it.
#ERR Out of creditsThe cycle's credits are spent. Usage resets on your billing date.

Before the formula works

The add-in reads the API key you saved once in the side panel — the key never goes in the formula, so a shared sheet does not leak it and a collaborator without access simply sees the last calculated values.

  1. Install the add-in for Google Sheets or Excel.
  2. Open the side panel and sign in, or paste a key from your dashboard.
  3. Type the formula above into any cell.

Use cases

Currency Watch Widgets
Show a home-currency ticker with today's value, direction arrow and a 24-hour sparkline drawn from the hourly prices.
Treasury Exposure Monitoring
Finance teams flag foreign-currency balances whose 30-day volatility or 7-day move crosses a threshold before month-end revaluation.
Remittance Timing Alerts
Remittance apps tell senders when a currency is near its 30-day high against their home currency so they send at a better rate.
Travel Budget Planning
Travel apps show how a destination's currency has moved over the past month so travellers can decide when to buy cash.

Other ways to use Currency Rate

Set up Currency Rate on VerveSheets, or reach the same source a different way. Your VerveSheets account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Finance:

Was this page helpful?