🔥 Google Sheets integration is live! Learn more

Import CoinGecko Data to Airtable

Feb 24, 2021Andy Cloke

In this tutorial, we'll import cryptocurrency data from CoinGecko to Airtable. CoinGecko is a free source of crypto data, such as coin prices, exchange information and lots more. We'll import the latest prices for a list of coins using the Data Fetcher app and create an Airtable crypto tracker.

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

Import CoinGecko Data to Airtable

Requests in Data Fetcher are how you import data to or send data from your Airtable base. We will create a request to import prices from CoinGecko.

On the home screen of the Data Fetcher app, click 'Create your first request'.

click-create-your-first-request.png

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

coingecko-application-selected.png

For Endpoint, select 'Get latest market data for one or more cryptocurrencies'. This determines what data we want to import from CoinGecko to Airtable.

coingecko-endpoint.png

Enter a Name for your request, e.g. 'Import Coin Prices'. Then click 'Save & Continue'.

coingecko-save-cont.png

Select the Currency you want to get market prices in, e.g. 'USD'.

Screenshot 2021-12-28 at 14.52.54.png

Select the Coins you want to import data for, e.g. 'Bitcoin'.

coingecko-coins.png

Select the Output Table & View you want to import CoinGecko data into.

Screenshot 2021-12-28 at 14.50.05.png

Click 'Save & Run'.

coingecko-save-run.png

The request will run and the Response field mapping modal will open. This is where you set which fields to import from CoinGecko and how they should map to your output table. For each CoinGecko 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.

Change the field type of 'Current price' and 'Market cap' fields to currency using the dropdown. Filter out any fields you do not want to import, e.g. 'Image'.

Group 1(5).png

Once you are happy, click 'Save & Run'.

Group 1(6).png

Data Fetcher will create any fields that need to be created in the output table, then run the request again and import the data from Coingecko to Airtable.

Screenshot 2021-12-28 at 11.49.50.png

Build an Airtable Crypto Tracker

Now we can use our table of coin prices to build an Airtable crypto tracker. This will track the value of our crypto portfolio based on the amount we hold and the latest prices.

Create a second table in your base called 'Portfolio'. Add a field called 'Coin' that is linked to the first table (the table you imported CoinGecko prices into). Then add a field called 'Price' that is a lookup of the 'Current price' field in the first table.

Screenshot 2021-12-29 at 12.30.51.png

Add a field called 'Exchange' with type 'Single select' with options for the coin exchanges you use, e.g. 'Binance', 'Coinbase' etc.

Screenshot 2021-12-29 at 12.30.57.png

Add a field called 'Balance' with type 'Number'. This is how many of the coin you have in that exchange. Add a formula field called 'Value' with the formula {Price}*Balance and select 'Currency' formatting.

Screenshot 2021-12-29 at 12.32.43.png

We now have a built an Airtable crypto tracker that updates when time we run the request. You can see the total value of your portfolio in the Airtable summary bar.

Group 1(7).pngGroup 1(26).png

Import CoinGecko Data to Airtable Automatically

At the moment, we have to manually run the request and import the prices from CoinGecko. We can use Data Fetcher's scheduled requests feature to automatically update the prices every 15 minutes/ hour/ day etc.

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

Group 1(8).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".

Group 1(9).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'.

Group 1(10).png

Enable Schedule this request.

Group 1(12).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 import prices from CoinGecko automatically.

Group 11(2).png

Related Posts

How to Create an Airtable Crypto Tracker

How to Create an Airtable Crypto Tracker

Apr 12, 2022

Rosie Threlfall

Cryptocurrency
Import Historical Crypto Market Data in Airtable

Import Historical Crypto Market Data in Airtable

Feb 17, 2022

Andy Cloke

CoinGeckoCryptocurrency
Import Binance API Data to Airtable

Import Binance API Data to Airtable

Mar 23, 2021

Andy Cloke

CryptocurrencyBinance