Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 915 Bytes

plot_5_years.md

File metadata and controls

33 lines (20 loc) · 915 Bytes

Solution Document - Crypto Analysis - 5 years


Dashboard


Problem Statement

  • As a person interested in investing in cryptocurrencies, I would like to know how the price of the leading cryptocurrencies have changed in the last 5 years

APIs used:

  • API Provider - yfinance Link

Solution Steps

  1. Call the download() method provided by the yfinance library
    df_ticker_low = yf.download(['BTC-USD' , 'ETH-USD', 'DOGE-USD', 'ADA-USD', 'MATIC-USD'], period='5y', group_by= 'ticker', dtype= object)
  1. Create the dataframe containing the data that has been downloaded from yfinance

  2. Plot a plotly express line graph to display the data in the data frame

    fig = px.line(df_closing_prices, y=["BTC", "ETH", "DOGE", "ADA", "MATIC"], title= "Major Crypto's Five Years History & Trend" )