Tools for stock market analysis.
marketools: tools for stock market analysis
marketools is a Python package for web scraping and analysis of stock market data. Project is under development. At the moment, analysis functionality is limited. You are welcomed to contribute to the project.
Source of data
Data are scraped from Stooq service.
You may report issues and functionality requests here.
pip install marketools
git clone https://github.com/AlbertRtk/marketools.git
Import Stock class
from marketools import Stock
Create Stock instance for selected ticker, here PKN
pkn = Stock('PKN')
For not Polish stocks, you need to append country code to the ticker (after a dot), e.g.,
apple = Stock('AAPL.US')
Get and print OHLC (open-high-low-close) data from the last 5 days
pkn_ohlc = pkn.ohlc # returns pandas.DataFrame print(pkn_ohlc.tail(5))
Print available fundamental information
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size marketools-1.0.1-py3-none-any.whl (15.8 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size marketools-1.0.1.tar.gz (11.6 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for marketools-1.0.1-py3-none-any.whl