PriceHistory.py
def price_chart(self, interval):
        """Get candlestick chart of historical price."""
        self.interval = interval
        # get candlestick chart from one day dataframe
        if self.interval == "one":            
            view_history = self.view_historical_price("one")                                            
            mpf.plot(self.df_one, type="candle", style="yahoo",\
                     title="   Bitcoin Candlestick Chart", ylabel="Price ($)",\
                     ylabel_lower="Volume", volume=True)
            
            # print info of one day price history
            print(view_history)
            print("The Bitcoin candlestick chat shows in the Plots window.")
                                                                       
        # get candlestick chart from period dataframe
        elif self.interval == "period": 
            view_history = self.view_historical_price("period")
                    
            mpf.plot(self.df_period, type="candle", style="yahoo",mav=(3,6,9),\
                     title="   Bitcoin Candlestick Chart", ylabel="Price ($)",\
                     ylabel_lower="Volume", volume=True, show_nontrading=True)
            
            # print summary of period price history
            print(view_history)
            print("The candlesticks chat shows in the Plots window.")
Get candlestick chart of historical price.
Get candlestick chart of historical price.
Get candlestick chart of historical price .
def price_chart(self, interval):
        self.interval = interval
        if self.interval == "one":            
            view_history = self.view_historical_price("one")                                            
            mpf.plot(self.df_one, type="candle", style="yahoo",\
                     title="   Bitcoin Candlestick Chart", ylabel="Price ($)",\
                     ylabel_lower="Volume", volume=True)
            print(view_history)
            print("The Bitcoin candlestick chat shows in the Plots window.")
        elif self.interval == "period": 
            view_history = self.view_historical_price("period")
            mpf.plot(self.df_period, type="candle", style="yahoo",mav=(3,6,9),\
                     title="   Bitcoin Candlestick Chart", ylabel="Price ($)",\
                     ylabel_lower="Volume", volume=True, show_nontrading=True)
            print(view_history)
            print("The candlesticks chat shows in the Plots window.")
def price_chart ( self , interval ) : self . interval = interval if self . interval == "one" : view_history = self . view_historical_price ( "one" ) mpf . plot ( self . df_one , type = "candle" , style = "yahoo" , title = "   Bitcoin Candlestick Chart" , ylabel = "Price ($)" , ylabel_lower = "Volume" , volume = True ) print ( view_history ) print ( "The Bitcoin candlestick chat shows in the Plots window." ) elif self . interval == "period" : view_history = self . view_historical_price ( "period" ) mpf . plot ( self . df_period , type = "candle" , style = "yahoo" , mav = ( 3 , 6 , 9 ) , title = "   Bitcoin Candlestick Chart" , ylabel = "Price ($)" , ylabel_lower = "Volume" , volume = True , show_nontrading = True ) print ( view_history ) print ( "The candlesticks chat shows in the Plots window." )
Get candlestick chart of historical price.
Get candlestick chart of historical price .
"""Get candlestick chart of historical price.""" # get candlestick chart from one day dataframe
 # print info of one day price history
 # get candlestick chart from period dataframe
 # print summary of period price history

self
interval