Open Exchange Rates historical rates: one table by day, base and currency
One table, keyed by the day, the base currency and the target currency.
OWOX calls the Open Exchange Rates historical endpoint for each day in your range and writes the rates it returns into your data warehouse, so converting an order into another currency takes a join on the date it was placed and one division.
The Open Exchange Rates data model
The Open Exchange Rates data model
Historical Exchange Rates Data is a single table of four columns: date, base, currency and rate.
- The rate is what one unit of the base buys in the target currency on that date, and the three key columns together identify a row.
- The base is a column because it can change, so rows loaded with different bases stay apart.
- Open Exchange Rates publishes the last value of each UTC day; ask for today and you get the latest rate so far, not a closing one.
- You choose which currencies to request, within what your Open Exchange Rates plan allows.
- Nothing here points to another table: bring it to your orders, spend or invoices on date and currency code.
Land it in your warehouse next to what it will convert, and add a Data Mart when you want a converted view.
Why load Open Exchange Rates through OWOX
Revenue booked in euros, ad spend billed in dollars and a board report in pounds agree only when every figure is converted with the same rate for the same day. With the daily rates in your warehouse, currency conversion is a join and a division you write once.
- Cross rates from one base. With a US-dollar base, euros to pounds is the pound row of a day divided by the euro row of the same day. Every currency of a day sits in one table, so it is a single query.
- The base is a column. Load US dollars, or another base where your Open Exchange Rates plan allows it: the provider permits a base other than US dollars only on its Developer, Enterprise and Unlimited plans. Several bases can share one table.
- History by date range. Load a past period by start and end date. The connector asks for one day at a time, so each day in the range is one request to Open Exchange Rates and a long backfill means many requests.
- Today's rate settles itself. A request for today returns the latest rate so far, and each scheduled refresh reloads a lookback window of recent days, so a provisional rate is replaced once the day's last value is published.
- Your App ID, your plan. Connect with the API key from your Open Exchange Rates account, the App ID; the rates load under your own plan.
- An open source connector. The Open Exchange Rates connector's code is on GitHub: the request made for each day and the step that turns the rates object into rows are there to read.
Open Exchange Rates Endpoints
1 Open Exchange Rates endpoints you can import. Each lands in its own table in your data warehouse.
Historical exchange rates data schema
Open Exchange Rates Historical exchange rates data schema
4 fieldsTime seriesSchema on GitHubopen_exchange_rates_historical
Contains historical exchange rates for different currencies relative to a base currency
Questions this table answers
- What was the rate between the base currency and a given currency on each day of a month?
- Which currency had the largest percentage change against the base over the last quarter?
- What was the average monthly rate for each currency over the last year?
| Field | Type | Description |
|---|---|---|
datePK | DATE | Date of exchange rate |
basePK | STRING | Base currency |
currencyPK | STRING | Target currency |
rate | NUMBER | Exchange rate |
What Open Exchange Rates data answers
What Open Exchange Rates data answers
Across the tables
- What was one US dollar worth in euros on each day of the last year?
- Which currencies changed the most against the base currency over the last 30 days?
- How would last quarter's orders look converted to a single currency at the rate of each order's date?
Industry data models that use Open Exchange Rates
Industry data models that use Open Exchange Rates
- E-CommerceEcommerce12 data marts, 87 fields
- E-Commerce ExtendedEcommerce20 data marts, 125 fields
- E-commerce Subscription StoreEcommerce15 data marts, 189 fields
- FinanceFinance8 data marts, 66 fields
- Healthcare Clinic NetworkHealthcare10 data marts, 150 fields
- MarketplaceEcommerce8 data marts, 66 fields
- TradingFinance8 data marts, 168 fields
Where Open Exchange Rates data goes
Where Open Exchange Rates data goes
Data warehouses
AI assistants
Spreadsheets
Dashboards
Messages
API
You are booked. The invitation is on its way to , with the calendar invite and the meeting link.