How to plot Bitcoin Prices in real time (part 1) — Dynamic data fetching with Python and Matplotlib

Pubblicato il: 25 gennaio 2021
sul canale di: Andrew Fung
2,915
61

Hello Everyone! My name is Andrew Fung, in this video, we will be using the Python Matplotlib and Cryptocompare API to plot Bitcoin and other cryptocurrency prices in real time to take a look at the short term price fluctuation. For the first part of the video, I will be focusing on the dynamic generation of data through the Cryptocompare API.

#python #bitcoin #cryptocurrency #liveplotting #dataVisualization

Installation and Setup!
Cryptocompare library: https://pypi.org/project/cryptocompare/
Installing Jupyter Notebook: https://jupyter.readthedocs.io/en/lat...

Check out my Github!
https://github.com/Andrew-FungKinHo

Timestamps
0:00 | Introduction
1:15 | Data fetching
5:16 | Helper function definitions
7:25 | Out tro

Full code:
———————————————————————————————
import cryptocompare
def get_crypto_price(cryptocurrency,currency):
return cryptocompare.get_price(cryptocurrency,curr=currency)[cryptocurrency][currency]

def get_crypto_name(cryptocurrency):
return cryptocompare.get_coin_list()[cryptocurrency]['FullName']
———————————————————————————————

Feel free to drop a like and comment if you enjoy and video and let me know if you want me to do other types of programming videos ;) !!!


In questa pagina del sito puoi guardare il video online How to plot Bitcoin Prices in real time (part 1) — Dynamic data fetching with Python and Matplotlib della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Andrew Fung 25 gennaio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,915 volte e gli è piaciuto 61 spettatori. Buona visione!