![]() ![]() The API returns a json string, which we can interpret as a dictionary in Python. To get around that limitation, we’ll pass lists of 50 coins at a time, until we’ve passed our entire list of all available coins. We can get price data for a list of coins using the function cryptocompare.get_price() and if we specify full=True , the API will return a whole bunch of data for each coin in the list, including last traded price, 24-hour volume, number of coins in circulation, and of course market capitalisation.Ĭryptocompare’s API will only allow us to pass it a list of coins that contains no more than 300 characters at any one time. ![]() Let’s focus on the biggest players in crypto-world: the coins with the largest market capitalisation. To get a list of all the coins available on Cryptocompare, we can use the following Python script:Īt the time of writing, this returned a list of 2,609 coins! By comparison, there are around 2,800 stocks listed on the New York Stock Exchange. Now that we’ve got our library of API functions, let’s take a look at what we can do with Cryptocompare! List all Available Coins If you’re feeling adventurous, you can install the version that I forked into my own Git Hub account and modified to increase those limits. This version will limit you to one month’s worth of daily price data and one week’s worth of hourly data. To install the dev version from Git Hub, do: You can install the current stable release by doing pip install cryptocompare , but I installed the latest development version direct from Git Hub, as only that version had support for minutely price history at the time of writing. For this post, I decided to use a library called cryptocompare . When it comes to interacting with Cryptocompare’s API, there are already some nice Python libraries that take care of most of the heavy lifting for us. ![]() It is possible to drill down and extract information from individual exchanges, and even to take aggregated price feeds from all the exchanges that Cryptocompare is plugged into – and there are quite a few! Interacting with the Cryptocompare API The user-experience is quite pleasant, as you can see from the screenshot of their real-time coin comparison table:Īs nice as the user-interface is, what I really like about Cryptocompare is its API, which provides programmatic access to a wealth of crypto-related data. Market cap can also offer insights into the potential risk and reward associated with various digital assets, with larger market caps typically indicating more established and stable investments, while smaller market caps may offer higher growth potential but carry greater risk.Cryptocompare is a platform providing data and insights on pretty much everything in the crypto-sphere, from market data for cryptocurrencies to comparisons of the various crytpo-exchanges, to recommendations for where to spend your crypto assets. It provides a simple and standardized way to compare the size and value of different cryptocurrencies, allowing investors to gauge their relative importance in the market. The relevance of market capitalization to cryptocurrency is significant. As new cryptocurrencies emerged, market cap became an essential tool for comparing the size and potential of these assets, helping investors navigate the increasingly complex landscape of digital currencies. In the context of cryptocurrencies, market cap first gained prominence with the advent of Bitcoin, which demonstrated the potential of digital assets as an alternative form of money and investment. The concept of market capitalization has its roots in traditional finance, where it is used to measure the size and value of publicly traded companies. By understanding the history and relevance of market capitalization, investors can make more informed decisions and maximize their returns in the rapidly evolving world of digital currencies. Market capitalization, or market cap, is a critical metric in the world of cryptocurrency, offering valuable insights into the size and potential of various digital assets.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |