Honest, vectorized backtester for Indian equities with full STT/brokerage/GST/slippage/tax cost modeling.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oq_backtest-0.1.0.tar.gz.
File metadata
- Download URL: oq_backtest-0.1.0.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1bbe1fa463c192391c5b8f4c90b870585a81f0e54852599b01e143920ca1e43
|
|
| MD5 |
fae7e1d9dd4374a57a1b12271f8011be
|
|
| BLAKE2b-256 |
48fe9fdf22d1389a111417fb0ba49ad3e8e6df7f09f39d21ad2e2e9462efabee
|
Provenance
The following attestation bundles were made for oq_backtest-0.1.0.tar.gz:
Publisher:
publish.yml on revorhq/openquant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oq_backtest-0.1.0.tar.gz -
Subject digest:
d1bbe1fa463c192391c5b8f4c90b870585a81f0e54852599b01e143920ca1e43 - Sigstore transparency entry: 1948236087
- Sigstore integration time:
-
Permalink:
revorhq/openquant@78dbecc6bd51078d826af8cd89d22425cbe4467b -
Branch / Tag:
refs/tags/oq-backtest-v0.1.0 - Owner: https://github.com/revorhq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@78dbecc6bd51078d826af8cd89d22425cbe4467b -
Trigger Event:
push
-
Statement type:
File details
Details for the file oq_backtest-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oq_backtest-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71907f27a9f534c1791383a5c64b7268b2611963fc3b49ecbf04fdd454309a0d
|
|
| MD5 |
2b41451708be5e1e0cd5d5d455992191
|
|
| BLAKE2b-256 |
6ad32474817545e9966716c573b1af83e261cf2212b5327ee7eae05046e0c267
|
Provenance
The following attestation bundles were made for oq_backtest-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on revorhq/openquant
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oq_backtest-0.1.0-py3-none-any.whl -
Subject digest:
71907f27a9f534c1791383a5c64b7268b2611963fc3b49ecbf04fdd454309a0d - Sigstore transparency entry: 1948236209
- Sigstore integration time:
-
Permalink:
revorhq/openquant@78dbecc6bd51078d826af8cd89d22425cbe4467b -
Branch / Tag:
refs/tags/oq-backtest-v0.1.0 - Owner: https://github.com/revorhq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@78dbecc6bd51078d826af8cd89d22425cbe4467b -
Trigger Event:
push
-
Statement type: