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 | |
|---|---|---|---|
| oq_backtest-0.1.0.tar.gz | 21.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oq_backtest-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
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 log