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.6
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.6.tar.gz | 32.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dataras-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.8 kB
Release files / dataras-0.1.6.tar.gz
| Download URL | dataras-0.1.6.tar.gz |
|---|---|
| Size | 32.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f284a1b91ecc8ee943678f08eaeb7239a997a5b722d55147b0d45357a4dea4a
|
|
BLAKE2b-256 checksum How to use checksums |
108396906348205409483d1033a38f02ed87710f182374bb26355ab2b24e8bd7
|
| 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.6-py3-none-any.whl
| Download URL | dataras-0.1.6-py3-none-any.whl |
|---|---|
| Size | 52.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
802e6c694d6e739b58defe839e33ff847005f91bf2d2b25ece5cf26c5a24181e
|
|
BLAKE2b-256 checksum How to use checksums |
2cb94ae79c354dbc32f82d2671cd9eced96814dd86c2418390ca8e595439e653
|
| 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.6
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.