Skip to main content

marketools: tools for stock market analysis

PyPI Latest Release License Python Versions

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)

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)

Source distribution for marketools 1.0.1
File Size Uploaded
marketools-1.0.1.tar.gz 11.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marketools 1.0.1
File Interpreter ABI Platform
marketools-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page