Connect with us

Crypto

How to Import Cryptocurrency Prices Into Google Sheets

Published

on

How to Import Cryptocurrency Prices Into Google Sheets

Do you want to keep on top of the latest crypto price rises (and falls)? Learn how to import cryptocurrency prices into Google Sheets using this guide.

If you own any cryptocurrency or you’re thinking about buying some, you’ll want to keep track of the current prices. That way, you’ll know if it’s the right time to buy or sell. There are plenty of websites that can provide this information, but you might prefer to use a spreadsheet to keep track of prices over time, or to do other calculations.

If you’re a fan of Google Sheets, it’s possible to get cryptocurrency price data into your spreadsheets and then use them how you wish. Learn how to import cryptocurrency prices into Google Sheets below.

How to Import Cryptocurrency Prices using GOOGLEFINANCE in Google Sheets

The GOOGLEFINANCE function allows you to pull live information on a wide range of traditional currencies directly from Google. It also allows you to pull prices for some of the most popular cryptocurrencies, including Bitcoin, Ethereum, Litecoin, Cardano, and Binance Coin, but it doesn’t work with others such as Dogecoin.

Advertisement

To import cryptocurrency prices using GOOGLEFINANCE:

  1. Open a Google Sheets document.
  2. Select the cell where you want the price to appear.
  3. For the price of Ethereum, enter the following formula:
    =GOOGLEFINANCE(“ETHUSD”)

    googlefinance formula

  4. For the price of Ethereum, enter the following formula:
    =GOOGLEFINANCE(“BTCUSD”)
  5. If you want to import other cryptocurrencies, you’ll need to include CURRENCY in the formula. For example, for Litecoin, enter the following formula:
    =GOOGLEFINANCE(“CURRENCY:LTCUSD”)
  6. You can replace LTC with many of the more popular cryptocurrency codes, such as ADA and XRP, but it won’t work with four-letter codes such as DOGE and LINK.
  7. Press Enter and the price will calculate.
    googlefinance result
  8. Your spreadsheet will automatically update periodically as the price of your selected cryptocurrency changes. This usually happens after 20 minutes or so.

How to Import Cryptocurrency Prices Using IMPORTXML in Google Sheets

If you want to import cryptocurrency prices that the GOOGLEFINANCE function doesn’t handle, then one option is to scrape the data directly from a cryptocurrency website. The IMPORTXML function allows you to pull the data from the webpage and bring it into your Google Sheets document.

To import cryptocurrency prices using IMPORTXML:

  1. In an empty cell, paste the URL for the webpage containing your cryptocurrency price data. For example, for the Ethereum page of CoinMarketCap.com, you would paste the URL https://coinmarketcap.com/currencies/ethereum/
  1. Navigate to that page in Chrome, and right-click on the price you want to import.
  2. Select Inspect.
    website inspect element
  3. The value you selected should be highlighted. If not, click on the price in the left-hand pane.
  4. Just above the price, you should see a div name.
    website div class
  5. Right-click on this line and select Copy Element.
  6. Paste this somewhere into your spreadsheet and highlight and copy just the class name, such as class=”priceValue “
  7. In the cell next to the URL, type:
    //div[@
  1. Paste the class name that you just copied and type a closed square bracket. Your cell should now read something like:
    //div[@class="priceValue "]

    google sheets div code

  2. Now select the cell where you want your cryptocurrency price data to appear and type the following:
    =IMPORTXML(
  3. Click in the cell containing your URL, type a comma, click in the cell containing your div class, and finally type a closed bracket. Your formula should look something like this:
    =IMPORTXML(G10,H10)

    google sheets importxml

  4. Press Enter and the cryptocurrency price data should be scraped from the website.

How to Refresh Scraped Cryptocurrency Prices in Google Sheets

The data you have scraped will update once per hour. To keep the value updated more frequently, you can force the cell to recalculate. One fairly simple way to do so is to create a macro that copies the cell, deletes it, and pastes it back in again. This will cause the cell to recalculate which should pull the most recent data from the cryptocurrency website.

To refresh scraped cryptocurrency prices using a macro:

  1. Open the Google Sheets spreadsheet containing your scraped data.
  2. In the menu, click Extensions.
     google sheets extensions
  3. Hover over Macros and select Record Macro.
    google sheets record macro
  4. Once the macro is recording, click the cell with your scraped data.
  5. Press Ctrl+C on Windows or Cmd+C on Mac to copy the cell.
  6. Press Delete or Backspace to delete the cell.
  7. In the same cell, press Ctrl+V on Windows or Cmd+V on Mac to paste the formula back into the cell.
  8. Click Save at the bottom of the screen to save your macro.
    google sheets save macro
  9. Give your macro a name. If you wish, you can also add a keyboard shortcut.
    google sheets name macro
  10. Click Save.
  11. To run your macro, press your keyboard shortcut, or go to Extensions > Macros and click on your macro name.
    google sheets run macro
  12. Your cell should now refresh and the data inside it should update.

How to Import Cryptocurrency Prices Using IMPORTDATA

You can also import cryptocurrency data using a website specifically designed for this purpose. The IMPORTDATA function allows you to pull price information directly from this website. The data will refresh once an hour.

To import cryptocurrency prices using IMPORTDATA:

  1. Click in the cell where you want the price data to appear.
  2. Enter a formula in the following format:
    =IMPORTDATA(https://cryptoprices.cc/ETH/)

    importdata formula

  3. You can change ETH to the code of a variety of different cryptocurrencies. See https://cryptoprices.cc/sitemap.txt for the full list of options.
  4. Press Enter and you should see the current price.

How to Import Cryptocurrency Prices Using the CoinMarketCap API

Another way to get cryptocurrency prices from CoinMarketCap is to use its API. By creating an account and generating your own API key, you can poll the site directly and import a huge amount of cryptocurrency information into your Google Sheets document.

In order to get the data into Google Sheets, you’ll need to use an add-on called API Connector.

Advertisement

To import cryptocurrency prices using the CoinMarketCap API:

  1. Open your Google Sheets document and click the Extensions menu.
     google sheets extensions
  2. Hover over Add-ons and click Get Add-ons.
    google sheets get add ons
  3. In the search field, type API Connector and press Enter.
    google sheets search add ons
  4. Select API Connector in the search results.
    google sheets api connector
  5. Click Install.
    google sheets install api connector
  6. Sign in to your Google account and allow the required permissions.
  7. To set up your CoinMarketCap API, navigate to https://coinmarketcap.com/api/
  8. Click Get Your API Key Now.
    coinmarketcap get api key
  9. Enter your details, select Basic as your plan type, and click Create My Account.
    coinmarketcap create account
  10. You’ll be emailed to verify your account. Click the link, and you’ll be redirected to the API dashboard.
  11. Hover over the API Key and click Copy Key.
    coinmarketcap copy key
  12. Return to your Google Sheets document and click Extensions.
     google sheets extensions
  13. Hover over API Connector and click Open.
    google sheets open api connector
  14. Click Create Request.
    api connector create request
  15. Under Application select CoinMarketCap from the drop-down box.
    api connector appllication
  16. Click in the API Key field and paste your copied API key.
    api connector authorization
  17. Under Endpoint, select /v2/cryptocurrency/quotes/latest from the drop-down.
    api connector endpoint
  18. Click the Plus (+) symbol next to Aux and select any of the options from the drop-down—the request won’t run without a selection in this field.
    api connector aux
  19. Click the Plus (+) symbol next to Slug and select the coin or coins you want to pull data for.
    api connector slug
  20. Select a cell in your spreadsheet where you want the first cell of the pulled data to appear, and click Set Current.
    api connector set current
  21. Give your request a name and click Save.
    api connector name
  22. Click Run and your request will run.
    api connector run
  23. The column USD.price contains the current price information.
    quote usd price

How to Update Cryptocurrency Prices Using API Connector

The price generated by the CoinMarketCap API will not automatically update. However, it is possible to get API Connector to refresh your data at regular intervals from once an hour up to once a month. This will help you to ensure that your cryptocurrency prices are up-to-date.

To update cryptocurrency prices using API Connector:

  1. Click the Extensions menu.
     google sheets extensions
  2. Hover over API Connector and select Open.
    google sheets open api connector
  3. Select the Schedule tab.
    api connector schedule tab
  4. Click Create Trigger.
    api connector create trigger
  5. Under API Request, select the name of the request you created in the section above.
    api connector request name
  6. Under Run Request, select your refresh time.
    api connector run request frequency
  7. Enter a name under Trigger Name and click Save.
  8. Your cryptocurrency data will now refresh at the frequency that you selected.

Checking Your Portfolio in Google Sheets

Learning how to import cryptocurrency prices into Google Sheets means you can use that price data in whatever calculations you wish. You’ll be able to monitor prices, and even set up some conditional formatting to alert you when the cryptocurrency hits a certain price.

There are plenty of other useful Google Sheets tricks you can learn. You might want to learn how to use timestamps in Google Sheets, for example. Or you may want to know how to remove dollar signs in Google Sheets if some of your scraped data has included them. You might also want to learn how to merge sheets in Google Sheets to help you organize your data.

Continue Reading
Advertisement
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Crypto

Is The Bitcoin Price Correction Over? Here’s The Support Level To Watch

Published

on

Is The Bitcoin Price Correction Over? Here’s The Support Level To Watch

The Bitcoin price suffered significant bearish pressure over the past week, dragging down alongside it a large portion of the general crypto market. The premier cryptocurrency tumbled as low as $59,500 at some point in the week — its lowest in nearly two months.

While investors will be hoping that the worst is over, it is difficult to determine whether BTC is ready to resume its bullish run. In any case, a prominent crypto intelligence firm has identified a price level critical to the future trajectory of the Bitcoin price.

$56,000 The Ultimate Support Level For Bitcoin: CryptoQuant

In a recent report, the blockchain analytics platform CryptoQuant put forward an interesting prognosis for the price of Bitcoin over the coming days. According to the firm, the $56,000 price level is an important level to the future performance of the premier cryptocurrency.

The relevant indicator here is Metcalfe price valuation bands, which pinpointed resistance levels and tops in the previous cycle. However, as shown in the chart below, these bands (the red line) acted as a critical support area in May.

Advertisement

NewsBTC

For context, the Metcalfe Law states that the value of a network is proportional to the square of the number of its users. Basically, this law suggests that the value of the cryptocurrency (Bitcoin) is intrinsically linked to the size and activity of its network. 

The Metcalfe price valuation bands are derived from this principle, providing a valuation framework associated with the network effect. These bands create a range of price levels that evaluate where Bitcoin should theoretically trade based on the network fundamentals.

Historically, these bands have acted as both reliable resistance and support levels in different market cycles. In recent months, the $56,000 level has been a pivot point for the indicator, providing a strong support for the Bitcoin price in May.

Advertisement

According to CryptoQuant’s report, the price level might prove to be vital should the premier cryptocurrency face additional downward pressure. However, if the Bitcoin price dips below this level, the market leader could experience a major correction.

Bitcoin Price At A Glance

As of this writing, the Bitcoin price has returned to around the $60,700 mark, reflecting a 2% decline in the last 24 hours. The coin’s performance on the weekly timeframe is deeper in the red.

According to data from CoinGecko, BTC is down by more than 6% in the past week. Nevertheless, the cryptocurrency ranks as the largest asset in the sector, with a market capitalization of over $1.18 trillion.

Advertisement
Continue Reading

Crypto

Earning Cryptocurrency with Minimal Investment: A Comprehensive Guide

Published

on

Earning Cryptocurrency with Minimal Investment: A Comprehensive Guide

1. Harnessing the Power of Referral Programs

 

Let’s kick things off with a strategy that leverages your network: referral programs. Cryptocurrency exchanges and platforms often offer lucrative rewards for bringing new users on board.

 

  • KuCoin Affiliate Program: Earn up to 60% of trading fees from referrals.
  • Trezor Affiliate Program: Earn up to 15% in commission for each referral.
  • Koinly Affiliate Program: Earn up to 40% in commission for each referral.

     

2. Searching for Crypto: The Presearch Revolution

 

Enter Presearch, a decentralized search engine that rewards users with its native token, PST.

Advertisement

 

  • Earn 0.25 PST per search
  • Daily cap of 8 PST
  • At the time of writing, 1 PST is valued at $0.02

     

3. Putting Pen to Paper (or Fingers to Keyboard)

 

If you’ve got a way with words, platforms like Publish0x offer an intriguing opportunity.

 

  • Write blog posts on various topics
  • Earn crypto tips from readers
  • Even readers can earn a slice of the advertising revenue

     

4. Shop ‘Til You Drop (and Earn Crypto)

 

Advertisement

Turn your retail therapy into a crypto-earning opportunity with platforms like:

 

  • Lolli: Earn up to 30% back in cash or Bitcoin at over 1,000 stores
  • StormX: Provides Crypto Cashback ranging from 0.5% to 87.5% at various online retailers

     

5. Learn and Earn: Education Pays Off

 

Platforms offering “Learn and Earn” programs:

 

Advertisement
  • Coinbase: Earn up to $200 worth of free crypto
  • Binance
  • Phemex
  • CoinMarketCap

     

6. Engage with Crypto Communities

 

  • Forecaster: Create content and interact with others, earning crypto tips and rewards
  • BountyCaster: Post and redeem bounties for completing specific tasks or achievements

     

7. Sign-Up Bonuses: Free Crypto for Joining

 

  • CoinSmart: Get 15 CAD worth of Bitcoin for signing up and verifying your account
  • Crypto.com: $25 bonus when you stake at least $400 worth of CRO

     

8. Crypto Betting Bonuses

 

In the realm of cryptocurrency, even online betting platforms are getting in on the action. “Crypto betting bonuses explained” is a term you might come across when exploring this niche. These bonuses are incentives offered by crypto-friendly betting sites to attract new users or retain existing ones.

 

Advertisement

Types of Crypto Betting Bonuses

 

  1. Welcome Bonuses: Often a match of your first deposit in cryptocurrency.
  2. No Deposit Bonuses: Free crypto to bet with, no deposit required.
  3. Reload Bonuses: Rewards for subsequent deposits.
  4. Cashback: A percentage of losses returned as crypto.

     

When diving into crypto betting bonuses explained, it’s important to note that these offers often come with terms and conditions, such as wagering requirements or time limits. Always read the fine print and gamble responsibly.

 

Important Considerations

 

  • Bonuses should not be the sole reason for engaging in online betting.
  • Prioritize responsible gambling practices.
  • Be aware of the risks involved in both cryptocurrency and online betting.
  • Terms and conditions may vary significantly between platforms.

     

Remember, while crypto betting bonuses can seem attractive, they are ultimately marketing tools designed to encourage betting. Always approach such offers with caution and a clear understanding of the associated risks and requirements.

Advertisement
Continue Reading

Crypto

21Shares files for permission to offer ETF linked to cryptocurrency Solana

Published

on

21Shares files for permission to offer ETF linked to cryptocurrency Solana

By Suzanne McGee
(Reuters) – Digital assets investment management firm 21Shares filed Friday for permission from U.S. regulators to launch an exchange-traded fund tied to the spot price of crypto token Solana.

It was the second such filing in as many days, following a similar move Thursday by VanEck. The Securities & Exchange Commission approved spot bitcoin ETFs offered by both firms, among others, in January after a long battle. Both VanEck and 21Shares are among the asset managers awaiting SEC approval to launch spot ETFs tied to the price of ethereum, the second-largest cryptocurrency.

The CBOE, the exchange on which both asset managers plan to list Solana ETFs if approved, must still request regulatory approval to change its rules and allow these new products to trade. People involved in the Solana discussions, who declined to be identified because of the confidentiality of the process, said that filing could come within days or weeks. A spokeswoman for CBOE declined to comment.

A third asset manager, Canada’s 3iQ, filed earlier in June for permission from Ontario regulators to list a similar Solana-based product on the Toronto Stock Exchange. Solana is the fifth-largest cryptocurrency measured by market capitalization, according to CoinGecko.

The three filings have combined to drive the price of Solana 9.4% higher in the last seven days, even as the prices of bitcoin and ether dropped 4.6% and 2.8% respectively, according to CoinGecko.

Advertisement

So far, however, no futures contracts on Solana trade on the CME, in contrast to the pattern with both bitcoin and ether. The SEC approved futures-based ETFs tied to both tokens before considering the spot products.

The existence of futures contracts, however, “should not be the sole criterion for ETF eligibility,” said Andrew Jacobson, head of legal at 21Shares.

(Reporting by Suzanne McGee; Editing by Cynthia Osterman)

Disclaimer: This report is auto generated from the Reuters news service. ThePrint holds no responsibilty for its content.

Advertisement
Continue Reading

Trending