Typography ideas to engage your audience

Following on from our latest article, “Website typography best practices”, we thought we’d talk about how you can use typography, and font types to your advantage. As long as you have all the…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




3 Simple Ways To Obtain Cryptocurrency Data In Python

Be it for data analysis or to build predictive models, data collection is a primary step for any of these processes. Without the data, it’s hard to advance into either of the following stages mentioned above.

As such, with the topics surrounding cryptocurrency being more and more common as of this writing, let’s explore some simple ways to collect historical data for cryptocurrencies in Python.

One of the most commonly used platforms which offer live market quotes is Yahoo Finance. In addition, one can choose to export a wide range of historical data from the platform with a couple of clicks.

However, the download of historical data from Yahoo Finance can also be done in Python. To do so, we will utilise the yfinance library, which is built on Yahoo! Finance’s API.

Enter the ticker as found on Yahoo Finance in the parentheses.

With just three lines of code above, we can obtain all of the historical data from Yahoo Finance regarding Bitcoin in USD.

Other valid period horizons include:

Add a comment

Related posts:

Tips to Set Up a Fully remote Company and Its Benefits

One benefit of remote working is that you can set your hours. You are not tied to the traditional 9–5 workday, which can be very beneficial if you have young children at home or other commitments…

Alabama kayaker reports being followed by bright sphere UFO

An Alabama witness at Guntersville reported watching a slow-moving, sphere-shaped, yellow-white light at ground level at about 8:35 p.m. on June 14, 2022, according to testimony from the National UFO…