Skip to main content

Tools for stock market analysis.

Project description

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marketools-1.0.1.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

marketools-1.0.1-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page