Dataras Python SDK
Official Python client for the Dataras market-data API.
Install
uv add dataras
# or
pip install dataras
pandas is included so export="pandas" works out of the box.
For Parquet files (export="parquet"), also install:
pip install 'dataras[export]'
Quickstart
from dataras import DatarasClient
with DatarasClient() as client:
client.auth.login("YOUR_USERNAME", "YOUR_PASSWORD")
page = client.reference.list_tickers(search="فولاد", limit=10)
for ticker in page.results:
print(ticker.ticker, ticker.name)
# Timeseries / fundamental accept ISIN via ticker/isin, or trading symbol:
df = client.ohlc.list_bars(
symbol="فولاد",
multiplier=1,
timespan="day",
from_="2026-01-01",
to="2026-01-31",
export="pandas",
)
meta = client.fundamental.list_meta(
type="balance_sheet",
symbol="فولاد",
export="pandas",
)
Date ranges
- Custom OHLC bars (
ohlc.list_bars/iter_bars/download_bars) need bothfrom_andto. - For IME ticker history, bond payments and fund history, omitting both dates
returns the full allowed date window for your account (no date filter for
unrestricted accounts). For long histories, page with
iter_*, setlimit, or pass explicit dates.
Funds
with DatarasClient() as client:
client.auth.login("YOUR_USERNAME", "YOUR_PASSWORD")
funds = client.funds.list_funds(search="آگاه", export="pandas")
daily = client.funds.list_daily("2026-07-21", export="pandas")
history = client.funds.list_history(daily.iloc[0]["isin"], export="pandas")
Default base URL is https://api.dataras.ir — you do not need to pass base_url.
Override only when needed:
client = DatarasClient(base_url="https://staging.example.com")
Environment variables (opt-in via DatarasClient.from_env()):
DATARAS_BASE_URL(optional; defaults tohttps://api.dataras.ir)DATARAS_ACCESS_TOKENDATARAS_API_KEYDATARAS_API_KEY_HEADER(required when using an API key; header name is not yet in the OpenAPI contract)
Async
from dataras import AsyncDatarasClient
async with AsyncDatarasClient(access_token="...") as client:
page = await client.reference.list_tickers(search="فولاد")
Documentation
Build the English documentation site:
uv sync --extra docs
cd docs && make en
Generate coverage manifests and validate OpenAPI documentation status:
uv run python scripts/generate_doc_manifests.py
uv run python scripts/check_docs_coverage.py
See docs/DOCUMENTATION_AUDIT.md for architecture notes and known gaps.
Metadata
Release files for dataras 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dataras-0.2.0.tar.gz | 36.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dataras-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.1 kB
Release files / dataras-0.2.0.tar.gz
| Download URL | dataras-0.2.0.tar.gz |
|---|---|
| Size | 36.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52f7497c1e8277e399f30420e2dd707dd8508224c878dd8d4c4e05a0de7a67cd
|
|
BLAKE2b-256 checksum How to use checksums |
a81922955a1f8f30c7ac7bffb414d02be67575d459e4c22873b7efad46fcd309
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dataras-0.2.0-py3-none-any.whl
| Download URL | dataras-0.2.0-py3-none-any.whl |
|---|---|
| Size | 57.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ef4c1580e1c2c7df69410aac11987b0dd0e078cdf203918a950c3c46de8312a
|
|
BLAKE2b-256 checksum How to use checksums |
7ae262c3dd2f1387df3952d1c91304b9f44095520febe3acf75f01741b0be0e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dataras 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.