Skip to main content

Module for receiving information from the Tehran Stock Exchange

Project description

tsemodule7

image

A library for managing stock and index data from TSETMC.

Project folder structure:

tsemodule7/
│
│                   
├──tsemodule7/tsemodule7.py                     
| 
├── pyproject.toml
|
├── LICENS
|
└── README.md

StockManager Class

The StockManager class allows you to easily manage, download, process, and extract information about various stocks. This class can be easily used in different projects and more functionality can be added to it by adding new features and methods.

Example:

from tsemodule7 import StockManager, IndexManager

stock_manager = StockManager()
index_manager = IndexManager()

# Example calls
print(stock_manager.stocklist())
print(stock_manager.stock("آپ", value=10, standard=True))
print(index_manager.index(value=10))

Output FROM StockManager Class:

image

IndexManager Class

The IndexManager class allows you to easily manage data related to various stock market indices, download them, process them and extract the information you want. This class can be easily used in different projects and more functionality can be added by adding new features and methods.

Output FROM IndexManager Class:

image

HighPriceManager Class

This class uses an online source to download stock data and then processes and analyzes the data to find the stock's highest closing price.

Using newfile and standard parameters allows you to have more control over the process of downloading and processing data. The get_highest_close_price_today method examines only the data from the previous day and displays them in sorted order.

Example:

high_price_manager = HighPriceManager()

# Example calls
highest_close_prices_df = high_price_manager.get_highest_close_price_today(standard=True)
print(highest_close_prices_df)

Output FROM HighPriceManager Class:

image

Link library in my Kaggle:

https://www.kaggle.com/code/peimandaii/tsemodule7#Extended-version-of-the-library

https://www.kaggle.com/models/peimandaii/tsemodules

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

tsemodules7_library-0.1.0.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsemodules7_library-0.1.0-py3-none-any.whl (43.3 kB view details)

Uploaded Python 3

File details

Details for the file tsemodules7_library-0.1.0.tar.gz.

File metadata

  • Download URL: tsemodules7_library-0.1.0.tar.gz
  • Upload date:
  • Size: 42.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.1

File hashes

Hashes for tsemodules7_library-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58f902426ef3c2c73b2dd56f71bd8d3877f87fee14c63a4e8241084fd38dfcd5
MD5 480ded0520c5d2efddb7325adf7657dd
BLAKE2b-256 18bfa6fa607edb4eb0fa3258ce2234ac109e2df50e4caaa7801132d95df854bd

See more details on using hashes here.

File details

Details for the file tsemodules7_library-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tsemodules7_library-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8bcc2ab01382de4ac08f7aa790383ca16051620ac9a2f39cb94c9c53b2fc693
MD5 286bc3b7b560b6ba6e941e9ee07ba0af
BLAKE2b-256 aec285db026fad7d52d980371080cb7adf00203b2a7981a9e3be64a8af1afb11

See more details on using hashes here.

Supported by

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