Commit Graph

11 Commits

Author SHA1 Message Date
vatsal 4d0d4cbfa3 feat: update version to 0.2.1 and add rolling min/max indicators (#6)
* feat: add session tracking and multi-leg spread backtesting

Add SessionTracker for trading session management:                             - Market hours detection (pre-open, trading, squareoff, post-close)
 - Session boundary tracking with configurable timezone    - Squareoff time support for intraday strategies                                   - Session high/low/open price tracking

Add SpreadBacktest for multi-leg options strategies:                                  - Support for straddles, strangles, vertical spreads, iron condors                                      - Coordinated entry/exit across all legs                                             - Net premium P&L calculation with max loss/target profit exits                                            - Helper functions for common spread configurations

Extend StreamingMetrics for backtest integration:                                - Add equity and drawdown tracking (update_equity, current_drawdown_pct)           - Add trade recording (record_trade, record_fees)                              - Add finalize() method to produce BacktestMetrics                        - Add with_initial_capital() constructor

Bump version to 0.2.0.

* chore: bump up version to 0.2.0

* feat: update version to 0.2.1 and add rolling min/max indicators

* fix: formatting
v0.2.1
2026-02-02 04:24:45 +05:30
vatsal 03ac0192b7 Merge pull request #5 from alphabench/chore/fix-readme
chore: fix README for relevance
2026-01-30 03:54:47 +05:30
porcelaincode baa87b476b chore: fix README for relevance 2026-01-30 03:54:14 +05:30
vatsal f4a40617c0 Merge pull request #4 from alphabench/chore/project-metadata
update project metadata
2026-01-29 23:12:29 +05:30
porcelaincode 196f63f5c3 update project metadata and documentation for clarity and branding 2026-01-29 23:11:15 +05:30
vatsal 5ca413ebbf Fix/release workflow python (#3)
* Fix release workflow: Python compatibility issues

- Linux: Add --find-interpreter for cross-compilation
- macOS/Windows: Pin Python to 3.12 (PyO3 0.20.3 max supported)

* Fix Linux release: limit Python versions to 3.10-3.12

PyO3 0.20.3 only supports up to Python 3.12. Using --find-interpreter detected Python 3.13/3.14 in the manylinux container which caused build failures.
2026-01-28 16:05:18 +05:30
vatsal ca2965aade Fix release workflow: Python compatibility issues (#2)
- Linux: Add --find-interpreter for cross-compilation
- macOS/Windows: Pin Python to 3.12 (PyO3 0.20.3 max supported)
2026-01-28 15:54:37 +05:30
vatsal 0f032dd39e Fix CI workflow: use correct rust-toolchain action (#1)
* Fix CI workflow: use correct rust-toolchain action

* Fix CI: resolve Rust compilation and formatting issues
- Fix rust-toolchain action name in CI workflow
- Add missing Direction import in test modules
- Add missing entry_fees argument to open_position test calls
- Comment out nightly-only rustfmt options
- Auto-format code with cargo fmt
v0.1.0
2026-01-28 15:38:31 +05:30
porcelaincode e6476b771f Prepare package for PyPI publishing
- Add MIT LICENSE file
- Enhance pyproject.toml with full metadata
- Add GitHub Actions workflows for CI and release
2026-01-28 15:07:07 +05:30
porcelaincode b367cdb275 fix product name 2026-01-28 14:53:10 +05:30
porcelaincode f6c60d7b8b Initial backtesting engine 2026-01-28 06:30:03 +05:30