In this tutorial, we'll import cryptocurrency data from the CoinGecko API to Airtable. CoinGecko is a free source of crypto data, such as cryptocurrency prices, exchange information and lots more.
We'll use Data Fetcher's free CoinGecko Airtable integration to import the latest prices for a list of cryptocurrencies. We'll then use these prices to create an Airtable crypto tracker.
Create a table in Airtable called 'Coins'. We'll import the Coingecko crypto data into this table, and then link our "Portfolio" table to it later on.
Install Data Fetcher from the Airtable marketplace. After the extension launches, sign up for a free Data Fetcher account by entering a password and clicking 'Sign up for free'.
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 the CoinGecko API.
On the home screen of the Data Fetcher extension, click 'Create your first request'.
On the create request screen in Data Fetcher, for Application, select 'CoinGecko' to use Data Fetcher's CoinGecko Airtable integration.
For Endpoint, select 'Get latest market data for one or more cryptocurrencies'. This determines what data we want to import from CoinGecko to Airtable.
Enter a Name for your request, e.g. 'Import Coin Prices'. Then click 'Save & Continue'.
Select the Currency you want to get market prices in, e.g. 'USD'.
Select the Coins you want to import data for, e.g. 'Bitcoin'.
Select the Output Table & View you want to import CoinGecko data into.
Click 'Save & Run'.
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'.
Once you are happy, click 'Save & Run'.
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.
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.
Add a field called 'Exchange' with type 'Single select' with options for the coin exchanges you use, e.g. 'Binance', 'Coinbase' etc.
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.
We now have built an Airtable crypto tracker that updates every time we run the request. You can see the total value of your portfolio in the Airtable summary bar.
At the moment, we have to manually run the CoinGecko Airtable integration and import the prices from CoinGecko. We can use Data Fetcher's schedule feature to automatically update the prices.
In Data Fetcher, scroll to Schedule and click 'Upgrade'.
A new tab will open where you can select a plan and enter your payment details to upgrade.
Return to the Data Fetcher extension and click 'I've done this'.
Under Schedule click '+ Authorize'.
A new window will open where you can authorize the Airtable bases you want Data Fetcher to be able to access.
We recommended selecting 'All current and future bases in all current and future workspaces' so you don't need to unauthorize other bases for future use.
Click 'Grant access'.
Back in Data Fetcher, you'll see Schedule this request is now toggled on.
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.
Oct 11, 2022
•Rosie Threlfall
•CoinbaseCryptocurrencyApr 12, 2022
•Rosie Threlfall
•CryptocurrencyFeb 17, 2022
•Andy Cloke
•CoinGeckoCryptocurrency