This API based on yahoo_fin and plotly, able to do simple stock analysis diagram.
pip install yahoo_fin == 0.8.9.1
pip install plotly == 5.6.0
pip install -U kaleido==0.2.1
# ts is a technical analysis library
pip install ta == 0.9.0
# Stock class methods
stock = sd.Stock(ticker, startdate, enddate, io_image=True)
stock.history_price()
stock.candlestick()
stock.ohlc()
stock.compare_area("aapl")
stock.compare_index()
stock.daily_deturns()
stock.daily_deturns_volume()
stock.company_info()
# Marker class methods
market = sd.Market(io_image=io)
market.day_gainer_treemap()
market.day_losers_treemap()
market.day_most_active_treemap()
- Treemap base is market Cap (Intraday)