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
Built Distribution
File details
Details for the file marketools-1.0.1.tar.gz
.
File metadata
- Download URL: marketools-1.0.1.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e65a1b018efea19a5bc3643ef6e27fb86ed340759cf1eeb015de98499c2230 |
|
MD5 | cf43e331a0ecb8d18bddeb96789f5b53 |
|
BLAKE2b-256 | df3b79452ecf0872da843047ca1e991e15463ae7c50ad82840a8b60c3a5b1b39 |
File details
Details for the file marketools-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: marketools-1.0.1-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad008816ed95e887d1483d9044dbe1d43dd3ec6bb1e87db15336c6e9b06fcd0b |
|
MD5 | 8fb6e09dfe2791c10a95303e114692b5 |
|
BLAKE2b-256 | fa5e0f72237f89d9c6443a7b0eea8b5e9bf83b09ec05c8842dcd12e6599abf99 |