This is a python package that helps to access stock data from the Tehran Stock Exchange without any HTML parsing.
dtse update ["ذوب"]
dtse update ["همراه", "ذوب", "فولاد", "شیراز", "وخارزم"]
dtse update ["شاخص کل6"]
dtse reset
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
)