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",
)
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.1.5
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.1.5.tar.gz | 31.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dataras-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.5 kB
Release files / dataras-0.1.5.tar.gz
| Download URL | dataras-0.1.5.tar.gz |
|---|---|
| Size | 31.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b88e1d7bfa0924254a6ca05a0a23ccb50104fe74412a492a88cd8ba46a15f2b
|
|
BLAKE2b-256 checksum How to use checksums |
372ee2daed87a21d3a9b4129aeee4d05e706582397910e33240b85842679ed27
|
| 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":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / dataras-0.1.5-py3-none-any.whl
| Download URL | dataras-0.1.5-py3-none-any.whl |
|---|---|
| Size | 50.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6847850e3d1bfbbc442dc70f1e0e8c1cef526df75ae91c9df293fc343960352c
|
|
BLAKE2b-256 checksum How to use checksums |
343e682cf2cbebf0943d999dfa2ca98b70dcc934c4d9c113c466a09683e252ee
|
| 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":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for dataras 0.1.5
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.