datasist icon indicating copy to clipboard operation
datasist copied to clipboard

Add a function to timeseries.py, which displays crypto coin market data as a Candlestick Chart

Open invest41 opened this issue 3 years ago • 0 comments

Utilizing Plotly to make a "Coin-USD" market data Candlestick plot

Required Packages

  • [x] NumPy

  • [x] Pandas

  • [x] Matplotlib

  • [ ] yfinance

  • [ ] Plotly

  • [ ] kaleido

  • [x] Random (Python built-in)


✅ - signifies packages currently in requirements.txt



  Default function - get_crypto_visuals
  —————————––––––––––––––––

def get_crypto_visuals(coin, period='5d', interval='15m', MA=False,days=[7,25,99], boll=False, boll_sma=25, save_fig=False, img_format='png'):



“””

  ----------------------SKIPPING PARAMETER DESCRIPTION TO END OF DOCSTRING--------------------
  



  Examples of valid use

    ----------------

  >>>  get_crypto_visuals("ETH")

  >>>  get_crypto_visuals("ETH", MA=True)

  >>>  get_crypto_visuals("ETH", period="5d", interval="15m",MA=True, days=[5, 20], save_fig=True)

  >>>  get_crypto_visuals("ETH", period="5d", interval="15m", boll=True, boll_sma=26, save_fig=True, img_format='jpeg')

”””



-------Main Code goes here-------

End Result Snippet

ETH

invest41 avatar Jul 28 '21 18:07 invest41