In this guide, we'll learn how to import cryptocurrency prices from Binance to Airtable. Binance is a free source of crypto market data, e.g. coin prices, recent trades, exchange information and more. We will connect to Binance using the Data Fetcher extension and create a crypto tracker in Airtable.
Create a table in your base called 'Coins'. Change the name of the primary field to 'Symbol'. Binance uses crypto trading pairs for symbols, e.g. 'ETHBTC'. You can find out more about crypto trading pairs here. In your coins table, add the trading pairs you want data as records.
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'.
On the home screen of the Data Fetcher extension, click 'Create your first request'. 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 Binance.
On the create request screen in Data Fetcher, for Application, select 'Binance' to use the Binance Airtable integration.
Enter a Name for your request, e.g. 'Import Coin Prices'.
For Endpoint, select 'Latest price for a symbol or symbols'. This determines what data we want to import from Binance to Airtable.
Click 'Save & Continue'.
We want to use the values in the 'Symbol' field in our table when importing from Binance. Under Symbol, click the + button to insert a reference to the table.
A modal will open where we can create the table reference. For Field, select 'Symbol'.
Click 'Confirm'.
The Symbol now has a reference to our table.
Select the Output Table & View you want to import Binance 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 Binance and how they should map to your output table. For each Binance 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.
Filter out the 'Symbol' field.
Change the field type of the 'Price' field to currency using the dropdown.
Click 'Save & Run'.
Data Fetcher will create the 'Price' field, then import the price from Binance for every symbol in the 'Coins' table.
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 'Symbol' that is linked to the first table (the table you imported Binance prices into). Then add a field called 'Price' that is a lookup of the '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 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.
At the moment, we have to manually run the Binance Airtable integration and import the prices from Binance. We can use Data Fetcher's scheduled requests feature to automatically update them every 15 minutes/ hour/ day etc.
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.
It's recommended to select 'All current and future bases in all current and future workspaces' meaning you'll avoid the need to unauthorize bases in the future.
Click 'Grant access'.
In Data Fetcher, you'll now see Schedule this request is toggled to on.
Select how often you want the request to run, e.g. 'Every 15 mins'. Click 'Save' The Binance Airtable integration will now run on the schedule and import prices from Binance automatically.
Oct 11, 2022
•Rosie Threlfall
•CoinbaseCryptocurrencyApr 12, 2022
•Rosie Threlfall
•CryptocurrencyFeb 17, 2022
•Andy Cloke
•CoinGeckoCryptocurrency