Tools for stock market analysis.
Project description
marketools: tools for stock market analysis
About
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.
Support
You may report issues and functionality requests here.
Installation
pip install marketools
or
git clone https://github.com/AlbertRtk/marketools.git
Documentation
Example
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
print(pkn.fundamentals)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
marketools-0.4.0.tar.gz
(13.3 kB
view hashes)
Built Distribution
marketools-0.4.0-py3-none-any.whl
(17.5 kB
view hashes)
Close
Hashes for marketools-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68c5f7b13b59e6c17539d82f7c7a67f1c970c094aa8f52ba4fa62a204cc6f39 |
|
MD5 | a6dcaf76ac10887c67359ef230d01c0d |
|
BLAKE2b-256 | 0e27f939d852ca1748a73337436b0a77baae13f5231e923f8e8e1b8814688c5f |