Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oq_backtest-0.1.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oq_backtest-0.1.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

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

Hashes for oq_backtest-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d1bbe1fa463c192391c5b8f4c90b870585a81f0e54852599b01e143920ca1e43
MD5 fae7e1d9dd4374a57a1b12271f8011be
BLAKE2b-256 48fe9fdf22d1389a111417fb0ba49ad3e8e6df7f09f39d21ad2e2e9462efabee

See more details on using hashes here.

Provenance

The following attestation bundles were made for oq_backtest-0.1.0.tar.gz:

Publisher: publish.yml on revorhq/openquant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for oq_backtest-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71907f27a9f534c1791383a5c64b7268b2611963fc3b49ecbf04fdd454309a0d
MD5 2b41451708be5e1e0cd5d5d455992191
BLAKE2b-256 6ad32474817545e9966716c573b1af83e261cf2212b5327ee7eae05046e0c267

See more details on using hashes here.

Provenance

The following attestation bundles were made for oq_backtest-0.1.0-py3-none-any.whl:

Publisher: publish.yml on revorhq/openquant

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page