Due to the crackdown on public APIs, the data provided by this wrapper is no longer reliable. I apologize for the inconveninence.
This Stock market library utilizes both static and class system architecture to provide a streamlined stock market analysis experience.
No API key is needed, all data is 100% free and accessible from yahoo finance and robin_hood's free API.
Setup is simple, simply type
pip install --upgrade stock_wrapper #####note: this package is constantly updated so use --upgrade to fetch the latest results!
If you wish to use the source code simply download this repository, its free forever, I promise
- direct portfolio manipulation
- robin_stocks (robinhood: requires account)
- market buy/sell
- limit buy/sell
- robin_stocks (robinhood: requires account)
- stock market data gathering
- robin_stocks (robinhood)
- yfinance (yahoo finance)
Complete example is under Examples/example.py
Most of the data manipulation is based off the <stock_wrapper.Stock> object.
Note: The package is constantly being updated,
from stock_wrapper import Stock
snp = Stock('SPY')
high_price = snp.high
low_price = snp.low
Other properties include open, close, market_cap, history, etc.
from stock_wrapper import visualize
from stock_wrapper import Stock
Place your stock object inside brackets, as of now, visualization methods take in a list of Stock objects
snp = Stock('SPY')
visualize.graph_trendline_analysis([snp])
visualize.graph_candlestick_analysis([snp])
The graphing might take a couple seconds since it's loading years and years of data and calculating various moving averages
If you want to graph multiple stocks, its best to group them like so as this streamlines the data loading process
microsoft = Stock('MSFT')
visualize.graph_trendline_analysis([snp, microsoft])