Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aad09da117 | ||
|
|
c711e9ce8e |
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "raptorbt"
|
name = "raptorbt"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "High-performance Rust backtesting engine with Python bindings. Drop-in VectorBT replacement with up insanely faster performance at fractional memory footprint."
|
description = "High-performance Rust backtesting engine with Python bindings. Drop-in VectorBT replacement with up insanely faster performance at fractional memory footprint."
|
||||||
authors = ["Alphabench <contact@alphabench.in>"]
|
authors = ["Alphabench <contact@alphabench.in>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/alphabench/raptorbt"
|
repository = "https://github.com/alphabench/raptorbt"
|
||||||
homepage = "https://github.com/alphabench/raptorbt"
|
homepage = "https://www.alphabench.in/raptorbt"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
keywords = ["backtesting", "trading", "quantitative-finance", "rust", "python"]
|
keywords = ["backtesting", "trading", "quantitative-finance", "rust", "python"]
|
||||||
categories = ["finance", "simulation"]
|
categories = ["finance", "simulation"]
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
# RaptorBT
|
# RaptorBT
|
||||||
|
|
||||||
[](https://pypi.org/project/raptorbt/)
|
|
||||||
[](https://opensource.org/licenses/MIT)
|
[](https://opensource.org/licenses/MIT)
|
||||||
|
[](https://pypi.org/project/raptorbt/)
|
||||||
[](https://www.python.org/downloads/)
|
[](https://www.python.org/downloads/)
|
||||||
[](https://www.rust-lang.org/)
|
[](https://www.rust-lang.org/)
|
||||||
|
[](https://pepy.tech/projects/raptorbt)
|
||||||
|
|
||||||
**Blazing-fast backtesting for the modern quant.**
|
**Blazing-fast backtesting for the modern quant.**
|
||||||
|
|
||||||
@@ -573,18 +574,18 @@ print(f"Max Drawdown: {result.metrics.max_drawdown_pct}%")
|
|||||||
|
|
||||||
### Metric Mapping
|
### Metric Mapping
|
||||||
|
|
||||||
| VectorBT Key | RaptorBT Attribute |
|
| VectorBT Key | RaptorBT Attribute |
|
||||||
| ---------------------- | ------------------------------ |
|
| ------------------ | -------------------------- |
|
||||||
| `Total Return [%]` | `metrics.total_return_pct` |
|
| `Total Return [%]` | `metrics.total_return_pct` |
|
||||||
| `Sharpe Ratio` | `metrics.sharpe_ratio` |
|
| `Sharpe Ratio` | `metrics.sharpe_ratio` |
|
||||||
| `Sortino Ratio` | `metrics.sortino_ratio` |
|
| `Sortino Ratio` | `metrics.sortino_ratio` |
|
||||||
| `Max Drawdown [%]` | `metrics.max_drawdown_pct` |
|
| `Max Drawdown [%]` | `metrics.max_drawdown_pct` |
|
||||||
| `Win Rate [%]` | `metrics.win_rate_pct` |
|
| `Win Rate [%]` | `metrics.win_rate_pct` |
|
||||||
| `Profit Factor` | `metrics.profit_factor` |
|
| `Profit Factor` | `metrics.profit_factor` |
|
||||||
| `SQN` | `metrics.sqn` |
|
| `SQN` | `metrics.sqn` |
|
||||||
| `Omega Ratio` | `metrics.omega_ratio` |
|
| `Omega Ratio` | `metrics.omega_ratio` |
|
||||||
| `Total Trades` | `metrics.total_trades` |
|
| `Total Trades` | `metrics.total_trades` |
|
||||||
| `Expectancy` | `metrics.expectancy` |
|
| `Expectancy` | `metrics.expectancy` |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "raptorbt"
|
name = "raptorbt"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
description = "High-performance Rust backtesting engine with Python bindings. Drop-in VectorBT replacement with up insanely faster performance at fractional memory footprint."
|
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"
|
readme = "README.md"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
@@ -39,9 +39,9 @@ classifiers = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Homepage = "https://github.com/alphabench/raptorbt"
|
Homepage = "https://www.alphabench.in/raptorbt"
|
||||||
Repository = "https://github.com/alphabench/raptorbt"
|
Repository = "https://github.com/alphabench/raptorbt"
|
||||||
Documentation = "https://github.com/alphabench/raptorbt#readme"
|
Documentation = "https://www.alphabench.in/raptorbt"
|
||||||
"Bug Tracker" = "https://github.com/alphabench/raptorbt/issues"
|
"Bug Tracker" = "https://github.com/alphabench/raptorbt/issues"
|
||||||
|
|
||||||
[tool.maturin]
|
[tool.maturin]
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ from raptorbt._raptorbt import (
|
|||||||
run_options_backtest,
|
run_options_backtest,
|
||||||
run_pairs_backtest,
|
run_pairs_backtest,
|
||||||
run_multi_backtest,
|
run_multi_backtest,
|
||||||
|
run_spread_backtest,
|
||||||
# Indicator functions
|
# Indicator functions
|
||||||
sma,
|
sma,
|
||||||
ema,
|
ema,
|
||||||
@@ -35,9 +36,11 @@ from raptorbt._raptorbt import (
|
|||||||
adx,
|
adx,
|
||||||
vwap,
|
vwap,
|
||||||
supertrend,
|
supertrend,
|
||||||
|
rolling_min,
|
||||||
|
rolling_max,
|
||||||
)
|
)
|
||||||
|
|
||||||
__version__ = "0.2.1"
|
__version__ = "0.2.2"
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
# Config classes
|
# Config classes
|
||||||
@@ -54,6 +57,7 @@ __all__ = [
|
|||||||
"run_options_backtest",
|
"run_options_backtest",
|
||||||
"run_pairs_backtest",
|
"run_pairs_backtest",
|
||||||
"run_multi_backtest",
|
"run_multi_backtest",
|
||||||
|
"run_spread_backtest",
|
||||||
# Indicator functions
|
# Indicator functions
|
||||||
"sma",
|
"sma",
|
||||||
"ema",
|
"ema",
|
||||||
@@ -65,4 +69,6 @@ __all__ = [
|
|||||||
"adx",
|
"adx",
|
||||||
"vwap",
|
"vwap",
|
||||||
"supertrend",
|
"supertrend",
|
||||||
|
"rolling_min",
|
||||||
|
"rolling_max",
|
||||||
]
|
]
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user