How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (2024)

In this article, I’ll show you how you can download the latest prices for cryptocurrencies, along with percent and volume changes. The data will be downloaded via an API from coinmarketcap.com. Once you’ve set up the API, it becomes a breeze to pull crypto prices and data into Excel, in just a matter of seconds.

Getting an API Key

One of the first things you’ll want to do is go onto the website https://coinmarketcap.com/api/ where you can request an API key, which you’ll need if you want to query the data. Once you have the key, you can begin pulling in values. You don’t need to worry about saving or remembering your API key because once you’re logged into the site, you’ll see an Overview section that shows you where you can copy your API key by hovering over that section. On this page, you will also see how many credits you have used today and this month versus how many are available on your plan.

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (1)

Setting up the connection in Power Query

Once you’ve got your API key copied, you can go into Excel and create a Power Query connection. To do this, go under the Data tab and select the From Web button:

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (2)

Then, you’ll enter the URL for the API connection, which is https://pro-api.coinmarketcap.com. On the documentation page, you’ll also see a list of possible endpoint paths. Under the basic plan, not all endpoints will be available. In this example, I’m just going to retrieve the latest market data. And for that, the URL is as follows:

https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest

I’ll put that into the Power Query URL. However, because the connection requires authentication, I need to check off the option for Advanced rather than just leave the default to Basic. In the section for HTTP request header parameters, you need to enter X-CMC_PRO_API_KEY (you’ll find this on the documentation page) and your API key. Here’s how that looks:

Then, click on OK and Power Query will go to work on creating your connection.

Formatting the data in Power Query

Once loaded into Power Query, you’ll see this:

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (4)

If you click on the List button next to data, then you will get a series of records:

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (5)

On the top-left-hand corner, there is an option to convert this To Table. Click on that button, leave the default options on the next window as they are, and then click on OK. We’re still left with a long list of records. For this step, click on the icon highlighted below, at the top of the column:

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (6)

When the next screen pops up showing you all the columns that will be expanded, click OK. Now you have something that looks a lot more useable:

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (7)

But there’s still more information that can be extracted. Scroll over to the last column, which should contain the word ‘quote’ in its name. Here there will be a list of records again. And using that button at the top of the field, this can also be expanded. It only has a USD field and once expanded, it looks like nothing has changed. Click on the header button once more, and now you’ll see fields showing volumes and price changes.

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (8)

Now, you can load the data into Excel by clicking on the Close & Load button. You should now see it populate in your spreadsheet:

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (9)

Now you can do a refresh at any point in time and your query will pull in the latest data from coinmarketcap.com.

If you liked this post on How to Pull Crypto Prices and Data Into Excel, please give this site a like on Facebook and also be sure to check out some of the many templates that we have available for download. You can also follow us on Twitter and YouTube.

How to Pull Crypto Prices and Data Into Excel - HowtoExcel.net (2024)

FAQs

How to fetch crypto prices in Excel? ›

In Excel, use the "DATA" tab and select 'From Web' to import data from the API. Follow the prompts to connect to the API and retrieve live price data for your chosen cryptocurrencies.

How do you automatically populate crypto price in spreadsheet? ›

Identify the ticker symbol for Bitcoin on Google Finance, which is usually in the format of 'BTC-USD' for Bitcoin priced in US dollars. In your Google Sheet, type the formula '=GOOGLEFINANCE("BTC-USD")' where you want the live Bitcoin price to appear.

How to make a crypto Excel spreadsheet? ›

Step 1: Install Cryptosheets: Get the add-in from their website. Step 2: Connect Data: Launch Excel, go to Cryptosheets, and connect to your data source. Step 3: Retrieve Data: Use Cryptosheets' functions to get specific cryptocurrency data. Step 4: Organize and Analyze: Organize and visualize data using Excel's tools.

How to download crypto price data? ›

Where can I download cryptocurrency data?
  1. Connect your wallets and exchanges to CoinLedger.
  2. Let the platform import your transactions automatically.
  3. Download a csv file containing data about all of your crypto transactions.

Can Excel pull exchange rates? ›

Use the Currencies data type to calculate exchange rates

Enter the currency pair in a cell using this format: From Currency / To Currency with the ISO currency codes. For example, enter "USD/EUR" to get the exchange rate from one United States Dollar to Euros. Select the cells and then select Insert > Table.

What is the formula for price in crypto? ›

Crypto Price Formula

To calculate the crypto price, divide the total market value by the number of coins in circulation.

How to use cryptofinance google sheet? ›

How to use CRYPTOFINANCE in Google Sheets
  1. Sign in/create Cryptowatch account. First, you must sign in to your Cryptowatch account. ...
  2. Generate API key. In the top right-hand corner of the homepage, click on the Account dropdown and select API Access. ...
  3. Connect API key to Google Sheets. ...
  4. Enter formula to extract data.

How to fetch live stock prices in Excel? ›

You can use the function like =qm_stream_last (“MSFT“) or =qm-stream_last(B2) where cell B2 is the one that contains the stock symbol. As soon as you do that, the stock prices will start showing in your Excel cell.

Is Cryptosheets free? ›

Can I get started for free? Yes! All accounts receive 1000 free queries per month that reload automatically.

How do I extract data from Coinmarketcap to Excel? ›

From the data ribbon, select From Web which can be found in the Get and Transform group of commands. This will open a From Web setup box. In the HTTP request header parameters(optional) second box enter your API Key and press OK. Excel will connect to the API and open up the Power Query window.

How do I create a column of currency in Excel? ›

In the Format Cells dialog box, in the Category list, click Currency or Accounting. In the Symbol box, click the currency symbol that you want. Note: If you want to display a monetary value without a currency symbol, you can click None.

Where can I find crypto price data? ›

CoinGecko aggregates cryptocurrency price and market data across 1,000+ centralized and decentralized exchanges, providing reliable, comprehensive and accurate crypto price data trusted by millions worldwide.

How to extract data from CoinMarketCap? ›

Use the UrlFetchApp method to make HTTP requests to the API. Include your CoinMarketCap API key in the request header for authentication. Write a script to fetch the latest price of a specific cryptocurrency or other data as needed. Use the =getCryptoData() formula in a cell in your Google Sheets to display the data.

How to read crypto data? ›

Understanding support and resistance are one of the most crucial parts of reading a crypto chart. Support levels in charts refer to a price level that the asset does not fall below for a fixed period. In contrast, resistance level refers to the price at which the asset is not expected to rise any higher.

How do I extract data from CoinMarketCap to Excel? ›

From the data ribbon, select From Web which can be found in the Get and Transform group of commands. This will open a From Web setup box. In the HTTP request header parameters(optional) second box enter your API Key and press OK. Excel will connect to the API and open up the Power Query window.

How do I get crypto prices in Google Sheets? ›

Add Crypto Prices to Google Sheets Using GOOGLEFINANCE Function
  1. Identify The Crypto to Import. ‍ What we need to identify is the crypto and its corresponding ticker in Google Finance. ...
  2. Use Formula =GOOGLEFINANCE(ticker) ‍ Using the syntax =GOOGLEFINANCE(ticker), the formula becomes. ...
  3. Press Enter. ‍

Top Articles
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 5629

Rating: 4.8 / 5 (78 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.