Skip to content

s-diaco/tse-data

Repository files navigation

dtse: A Fast and Async API Client for TSE

Tests Python Version from PEP 621 TOML GitHub GitHub code size in bytes Coverage Status

This is a python package that helps to access stock data from the Tehran Stock Exchange without any HTML parsing.

Usage:

1- Command line:

dtse update ["ذوب"]
dtse update ["همراه", "ذوب", "فولاد", "شیراز", "وخارزم"]
dtse update ["شاخص کل6"]
dtse reset

2- python:

import dtse

# dtse.get_tse_prices(symbols: list[str], **kwconf)
dtse.get_tse_prices(
        symbols=["همراه"], 
        adjust_prices=2,
        cache_to_db=False,
        write_csv=False
)