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)
Metadata
Release files for marketools 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| marketools-1.0.1.tar.gz | 11.6 kB | Without provenance | Details for marketools-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marketools-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for marketools-1.0.1-py3-none-any.whl |
Total release size: 27.5 kB
Release files / marketools-1.0.1.tar.gz
| Download URL | marketools-1.0.1.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55e65a1b018efea19a5bc3643ef6e27fb86ed340759cf1eeb015de98499c2230
|
|
BLAKE2b-256 checksum How to use checksums |
df3b79452ecf0872da843047ca1e991e15463ae7c50ad82840a8b60c3a5b1b39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / marketools-1.0.1-py3-none-any.whl
| Download URL | marketools-1.0.1-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad008816ed95e887d1483d9044dbe1d43dd3ec6bb1e87db15336c6e9b06fcd0b
|
|
BLAKE2b-256 checksum How to use checksums |
fa5e0f72237f89d9c6443a7b0eea8b5e9bf83b09ec05c8842dcd12e6599abf99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for marketools 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.