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.

Files for marketools, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size marketools-1.0.1-py3-none-any.whl (15.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size marketools-1.0.1.tar.gz (11.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page