How to Convert Currency in Airtable

Jul 29, 2021Andy Cloke

In this guide, we'll convert currency in Airtable for a list of transactions with different currencies and amounts. To do this, we'll use exchangerate.host API, which provides current and historical exchange rates. This guide is 100% no-code, as we'll use the Data Fetcher Airtable app to connect to exchangerate.host and pull in exchange rates.

Create Transactions Table

Create a table in your base called 'Transactions'. If you've already got a table with your currencies and amounts in, you can use that instead.

Add a field called 'Currency' with type 'Single line text'. Then add a field called 'Amount' with type 'Number'. Add records for the currency symbols you want to convert and the amounts for each transaction.

Screenshot 2021-07-29 at 14.19.07.png

Install Data Fetcher

Install Data Fetcher from the Airtable app marketplace. After the app launches, sign up for a free Data Fetcher account by entering a password and clicking 'Sign up for free'.

Group 1Data Fetcher Sign Up .png

Convert Currency in Airtable

On the home screen of the Data Fetcher app, click 'Create your first request'. Requests in Data Fetcher are how you import data to or send data from your Airtable base.

click-create-your-first-request.png

On the create request screen in Data Fetcher, for Application, select 'exchangerate.host'.

exchange-rate-host-selected-application.png

For Endpoint, select 'Convert from one currency to another'.

Enter a Name for your request, e.g. 'Import Exchange Rates'.

convert-currency-save-continue.png

For From currency, we want to insert a reference to our 'Currency' field. First click the + button.

convert-currency-from-currency-add-icon.png

Then, on the modal that opens, select 'Transactions' for Table, 'Currency' for Field, 'Grid view' for Run for every record in view. Then click 'Confirm'.

convert-currency-from-currency-table-reference.png

The From currency field should now contain a reference to the table.

convert-currency-from-currency-field-table-refernce.png

Select the target currency you want to convert into for To currency, e.g. 'USD'.

convert-currency-to-currency.png

For Amount, use the + button to create a reference to the 'Amount' field in the 'Transactions' table.

convert-currency-amount.png

By default, we are going to import the latest exchange rates. If you want to convert currency in Airtable for particular historical dates, you can set the Historical date option. You can either set this to a particular date using the date picker, or reference a field in your Transactions table with type 'Date'.

Make sure the Output Table & View is set to 'Transactions' and 'Grid view'.

convert-currency-output-table-view.png

Click 'Save & Run'.

convert-currency-save-and-run.png

The request will run and the Response field mapping modal will open. This is where you set how the fields from exchangerate.host should map to fields in the 'Transactions' table. For each field, you can either import or filter it. For an imported field, you can set whether to map them to an existing field or create a new field.

Make sure you import the 'Result' field, which has the result of the currency conversion! Import any other fields you want. Then click 'Save & Run'.

convert-currency-response-field-mapping.png

Data Fetcher will create any fields that need to be created in the output table, then run the request and convert the currency for every record in the 'Transactions' table.

convert-currency-imported-data.png

Convert Currency in Airtable Automatically

At the moment, we have to manually run the request to update the exchange rates. We can use Data Fetcher's scheduled requests feature to update them by converting currencies every 15 minutes/ hour/ day etc.

In Data Fetcher, scroll to Schedule and click 'Upgrade'.

table-1-schedule-upgrade-button.png

A new tab will open where you can select a plan and enter your payment details to upgrade.

Screenshot 2021-12-29 at 10.25.19.png

Return to the Data Fetcher app and click "I've done this".

table-1-schedule-ive-done-this-button.png

Click 'Add API key' in order to add your Airtable API key. You can find your Airtable API key here.

Group 11(1).png

Enter your Airtable API key and click 'Save'.

save-airtable-api-key.png

Enable Schedule this request.

schedule-data-fetcher-request.png

Select how often you want the request to run, e.g. 'Every 15 mins'. Click 'Save' The request will now run on the schedule and update the exchange rates automatically.

Group 11(2).png

Related Posts

How to Import Company Revenue, EPS and Financial Ratios in Airtable

How to Import Company Revenue, EPS and Financial Ratios in Airtable

Mar 22, 2022Rosie ThrelfallAlpha VantageFinance
Import Historical Exchange Rates in Airtable

Import Historical Exchange Rates in Airtable

Feb 20, 2022Andy ClokeFinanceCurrency Conversion
Import Time Series Data for Stocks in Airtable

Import Time Series Data for Stocks in Airtable

Feb 14, 2022Andy ClokeFinanceAlpha Vantage