Skip to content

Module to receive information from Tehran Stock Exchange πŸ“ˆ

Notifications You must be signed in to change notification settings

Peyman2012/tsemodule7-library

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 

Repository files navigation

tsemodel7

image

A library for managing stock and index data from TSETMC.

Project folder structure:

tsemodel7/
β”‚
β”‚                   
β”œβ”€β”€ tsemodule7.py                     
|                   
└── 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 tsemodel7 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

About

Module to receive information from Tehran Stock Exchange πŸ“ˆ

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%