Catalog ›Public data ›The world in numbers — exchange rates, weather and markets from public APIs › Rates
Rates
Part of the The world in numbers
Pick the base currency (ISO code: `EUR`, `USD`, `GBP`, `CHF`, `JPY`…): the call re-runs by itself on every change.
data space «mondo-in-cifre» — this micro app reads and writes the suite’s shared data space.
What it records
- Base currency (e.g. EUR)
The other micro apps in the same suite
How it works
This is a Reactive app: a plain text document that your browser turns into a working app — forms, live data, tables, statistics and even charts, with nothing to install or configure.
- Use it right away. Hit “Use this app”: it opens right in your browser, ready to go, with data saved only on your device.
- Your data stays yours. Everything is stored locally on your device, kept separate for each app: no account, no server, nothing to set up.
- Make it your own. The text below is the entire app: copy it, tweak fields, views and words, and your changes become interactive instantly.
- Share it as a file. An app is a simple file: save it, export it or share it with a link; and with encrypted collaboration several people edit the same data in real time.
The app’s source
# 💱 Rates
## ECB exchange rates
Pick the base currency (ISO code: `EUR`, `USD`, `GBP`, `CHF`, `JPY`…): the
call re-runs by itself on every change.
::input[base]{value="EUR" placeholder="Base currency (e.g. EUR)"}
::api-query{url="https://api.frankfurter.dev/v1/latest?base={#base}" into="rates" pick="rates" as="pairs"}
**Click a bar** to single that currency out in the table (second click:
filter cleared).
::::dashboard{path="rates"}
::chart-bar{data="rates" x="key" y="value" height="18rem"}
:::table{path="rates" headers="Currency,Rate" pagesize="10"}
{key} | {value}
:::
::::
And a single rate as a reactive value, ready for a computation:
::api-query[eurUsd]{url="https://api.frankfurter.dev/v1/latest?base=EUR" pick="rates.USD"}
1 EUR = **:value[vt]{ref="#eurUsd"}** USD (ECB fixing, business days).