This article was brief to show you the steps involved in connecting to the API and getting the ticker and current information into Excel. To update the data, from the data ribbon, select Refresh All.Ĭonnecting to Coinmarketcap API with Excel is a great way to ensure you have the latest pricing information for Bitcoin and your favorite cryptocurrencies. Once all the tables have been loaded into Excel, we can keep these up to date with the latest information. Refresh the data from Coinmarketcap API in Excel From the home Ribbon select Close and Load to load the data as a table in Excel.Carry out any required transformation steps, most notably ensuring all the data types are correct before you load to Excel.This will import all the selected columns.Click on the expander in the column header and select the columns you want to import This opens another record which we much expand again.Click on the expander in the column header for quote to expand the record.However, the quote field will still be a record that we must also expand Select the columns you want to import and deselect Use original column name as prefix and press ok Next expand the records by clicking on the column header.Select To Table from the ribbon and select ok for the default settings in the To table option box. Select the row for Data List and click on the word list.To learn more about working with JSON in Excel you can read this article. The data is returned in JSON format and we must now extract the data. Excel will connect to the API and open up the Power Query window. In the HTTP request header parameters(optional) second box enter your API Key and press OK.In the HTTP request header parameters(optional) first box enter X-CMC_PRO_API_KEY (you will find this on the Authentication section of the API documentation).Enter the API URL endpoint to the first URL parts box.From the data ribbon, select From Web which can be found in the Get and Transform group of commands.Connecting Excel to the Coinmarketcap API Once we have created our API endpoints, we can then use these to connect Excel to Coinmarketcap data. You can find all the details of the parameter in the API documentation.įor Example, this URL will return the to 100 showing in BTC.Īnd this URL will return only the coins with the tag for Defi This will return a full list, by default the top 100 coins by ranking on coinmarketcap.īy adding different paths and parameter we can filter this list as required. If you need to call more than a few listings as you would do with /quotes/latest, you can use /listing/latest. As these are coin symbols, we will use the symbol parameter at the end of the API URL. For example, we want to return information for BTC,LRC,ADA. The parameters allow you to basically filter and define what you want returned. You can find full details on the parameters here The default price return is USD and you must use CONVERT to add other exchange rates. will allow you access to current market information for 1 or more coins. The API documentation lists the endpoints, but not all of them are available with the free API.įor our examples we will use the end point /cryptocurrency and for our endpoint paths we will look at /quotes/latest and /listings/latest We will add more to this URL so we can call call certain data. You will also find a quick link to the API documentation ( )Ĭreating a URL endpoint to connect to with Excel Once you have registered, you will be able to access your developer’s dashboard. However, it is limited in the coins and the function is not yet available to everyone. If you are using Excel 365 Beta channel and you have the STOCKHISTORY function you can use this to get historical data for the larger cap coins. However, you will not get access to historical data. You can register and sign up for an API key here With the free API that is available, in this article we will look at how you can connect to this API with Excel and keep your data up to date. Using the Coinmarketcap API, you can quickly get live ticker information into your Excel spreadsheet for your favorite cryptocurrency.
0 Comments
Leave a Reply. |