oq-backtest
Honest, vectorized backtester for Indian equities.
Models every cost an Indian retail trader actually pays — STT, brokerage, exchange charges, GST, stamp duty, SEBI fees, slippage, and STCG/LTCG — with broker presets for Zerodha, Upstox, Fyers, Dhan. Outputs gross vs net equity curves side-by-side with a full cost attribution breakdown.
pip install oq-backtest
import oq_backtest as ob
result = ob.backtest(signals, prices, costs="zerodha")
print(result.tearsheet())
Includes walk-forward / out-of-sample utilities and an intraday layer for 1–60 min bars with session square-off.
Part of OpenQuant India — honest, open source quant infrastructure for Indian markets. Apache 2.0.
Metadata
Release files for oq-backtest 0.1.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 | Actions |
|---|---|---|---|---|
| oq_backtest-0.1.0.tar.gz | 21.7 kB | With provenance | Details for oq_backtest-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| oq_backtest-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for oq_backtest-0.1.0-py3-none-any.whl |
Total release size: 42.1 kB
Release files / oq_backtest-0.1.0.tar.gz
| Download URL | oq_backtest-0.1.0.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1bbe1fa463c192391c5b8f4c90b870585a81f0e54852599b01e143920ca1e43
|
|
BLAKE2b-256 checksum How to use checksums |
48fe9fdf22d1389a111417fb0ba49ad3e8e6df7f09f39d21ad2e2e9462efabee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.
Transparency logRelease files / oq_backtest-0.1.0-py3-none-any.whl
| Download URL | oq_backtest-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71907f27a9f534c1791383a5c64b7268b2611963fc3b49ecbf04fdd454309a0d
|
|
BLAKE2b-256 checksum How to use checksums |
6ad32474817545e9966716c573b1af83e261cf2212b5327ee7eae05046e0c267
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.
Transparency logSecurity for oq-backtest 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for oq_backtest-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 25, 2026.
Transparency logA 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.