4d0d4cbfa3
* 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
51 lines
1.6 KiB
TOML
51 lines
1.6 KiB
TOML
[build-system]
|
|
requires = ["maturin>=1.4,<2.0"]
|
|
build-backend = "maturin"
|
|
|
|
[project]
|
|
name = "raptorbt"
|
|
version = "0.2.1"
|
|
description = "High-performance Rust backtesting engine with Python bindings. Drop-in VectorBT replacement with up insanely faster performance at fractional memory footprint."
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
license = {file = "LICENSE"}
|
|
authors = [
|
|
{name = "Alphabench", email = "contact@alphabench.in"}
|
|
]
|
|
keywords = [
|
|
"backtesting",
|
|
"trading",
|
|
"quantitative-finance",
|
|
"algorithmic-trading",
|
|
"rust",
|
|
"high-performance",
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"Intended Audience :: Financial and Insurance Industry",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: MacOS",
|
|
"Operating System :: POSIX :: Linux",
|
|
"Operating System :: Microsoft :: Windows",
|
|
"Programming Language :: Rust",
|
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Office/Business :: Financial :: Investment",
|
|
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
"Typing :: Typed",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/alphabench/raptorbt"
|
|
Repository = "https://github.com/alphabench/raptorbt"
|
|
Documentation = "https://github.com/alphabench/raptorbt#readme"
|
|
"Bug Tracker" = "https://github.com/alphabench/raptorbt/issues"
|
|
|
|
[tool.maturin]
|
|
features = ["pyo3/extension-module"]
|
|
python-source = "python"
|
|
module-name = "raptorbt._raptorbt"
|