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.6.0.tar.gz
(11.2 kB
view hashes)
Built Distribution
marketools-0.6.0-py3-none-any.whl
(15.3 kB
view hashes)
Close
Hashes for marketools-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb4f50bfc99f92f7a72084fd989ff8c3b17a07fe02840d88105389e0dc8c6e1e |
|
MD5 | 9270e729a268b481403890e7d18bc95a |
|
BLAKE2b-256 | 376ea5544116e19d0ef66ae67fef0f564fb02a5d44c4d6411b945abdeeca7b8d |