GitHunt
S-

s-diaco/tse-data

A python client for tsetmc api

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
)

Languages

Python97.9%Dockerfile2.1%

Contributors

MIT License
Created February 19, 2022
Updated June 10, 2024