datasist icon indicating copy to clipboard operation
datasist copied to clipboard

Add function “get_crypto_visuals” to timeseries.py

Open invest41 opened this issue 3 years ago • 0 comments

Utilizing Plotly to make a "Coin-USD" market data Candlestick plot
This PR fixes #68

Required Packages

  • [x] NumPy

  • [x] Pandas

  • [x] Matplotlib

  • [x] yfinance

  • [x] Plotly

  • [x] kaleido

  • [x] Random (Python built-in)


✅ - signifies packages currently in requirements.txt


Updated Packages

-     ppscore==0.0.3
+     ppscore==1.2.0

-     pytest==5.4.3
+     pytest==6.2.4

Function added to timeseries.py

  • get_crypto_visuals

Examples of Valid use

  >>>  from datasist.timeseries import get_crypto_visuals
  
  >>>  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("BTC", period="3d", interval="15m", boll=True, boll_sma=26, save_fig=True, img_format='jpeg')



Snippets
Chart with Moving Average Visualized IMG_9417
Chart with Bollinger band 73E0D157-B139-444B-817A-D734C3D7DB70

invest41 avatar Aug 03 '21 22:08 invest41