Skip to content

s-diaco/tse-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3785ece · Sep 17, 2023
Sep 3, 2023
Sep 17, 2023
Sep 11, 2023
Sep 5, 2023
Sep 11, 2023
Sep 11, 2023
Oct 20, 2022
Oct 16, 2022
Sep 17, 2023
Sep 7, 2023
Sep 4, 2023
Sep 3, 2023

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
)

Releases

No releases published

Packages

No packages published