Module for receiving information from the Tehran Stock Exchange
Project description
tsemodule7
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:
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:
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:
Link library in my Kaggle:
https://www.kaggle.com/code/peimandaii/tsemodule7#Extended-version-of-the-library
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58f902426ef3c2c73b2dd56f71bd8d3877f87fee14c63a4e8241084fd38dfcd5
|
|
| MD5 |
480ded0520c5d2efddb7325adf7657dd
|
|
| BLAKE2b-256 |
18bfa6fa607edb4eb0fa3258ce2234ac109e2df50e4caaa7801132d95df854bd
|
File details
Details for the file tsemodules7_library-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tsemodules7_library-0.1.0-py3-none-any.whl
- Upload date:
- Size: 43.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8bcc2ab01382de4ac08f7aa790383ca16051620ac9a2f39cb94c9c53b2fc693
|
|
| MD5 |
286bc3b7b560b6ba6e941e9ee07ba0af
|
|
| BLAKE2b-256 |
aec285db026fad7d52d980371080cb7adf00203b2a7981a9e3be64a8af1afb11
|