ivolatility-backtesting 1.1.0__py3-none-any.whl → 1.39__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,70 +1,72 @@
1
- Metadata-Version: 2.1
2
- Name: ivolatility_backtesting
3
- Version: 1.1.0
4
- Summary: A universal backtesting framework for financial strategies using the IVolatility API.
5
- Author-email: IVolatility <support@ivolatility.com>
6
- Project-URL: Homepage, https://ivolatility.com
7
- Keywords: backtesting,finance,trading,ivolatility
8
- Classifier: Programming Language :: Python :: 3
9
- Classifier: Programming Language :: Python :: 3.8
10
- Classifier: Programming Language :: Python :: 3.9
11
- Classifier: Programming Language :: Python :: 3.10
12
- Classifier: Programming Language :: Python :: 3.11
13
- Classifier: Programming Language :: Python :: 3.12
14
- Classifier: License :: OSI Approved :: MIT License
15
- Classifier: Operating System :: OS Independent
16
- Requires-Python: >=3.8
17
- Description-Content-Type: text/markdown
18
- License-File: LICENSE
19
- Requires-Dist: pandas>=1.5.0
20
- Requires-Dist: numpy>=1.21.0
21
- Requires-Dist: matplotlib>=3.5.0
22
- Requires-Dist: seaborn>=0.11.0
23
- Requires-Dist: ivolatility>=1.8.2
24
-
25
- # IVolatility Backtesting
26
- A universal backtesting framework for financial strategies using the IVolatility API.
27
-
28
- ## Installation
29
- ```bash
30
- pip install ivolatility_backtesting
31
- ```
32
-
33
- ## Usage
34
- ```python
35
- from ivolatility_backtesting import run_backtest, init_api
36
-
37
- # Initialize API
38
- init_api("your-api-key")
39
-
40
- # Define your strategy
41
- def my_strategy(config):
42
- # Strategy logic
43
- return BacktestResults(
44
- equity_curve=[100000, 110000],
45
- equity_dates=["2023-01-01", "2023-01-02"],
46
- trades=[{"pnl": 1000, "entry_date": "2023-01-01", "exit_date": "2023-01-02"}],
47
- initial_capital=100000,
48
- config=config
49
- )
50
-
51
- # Run backtest
52
- CONFIG = {
53
- "initial_capital": 100000,
54
- "start_date": "2023-01-01",
55
- "end_date": "2024-01-01",
56
- "strategy_name": "My Strategy"
57
- }
58
- analyzer = run_backtest(my_strategy, CONFIG)
59
-
60
- # Access metrics
61
- print(f"Sharpe Ratio: {analyzer.metrics['sharpe']:.2f}")
62
- ```
63
-
64
- ## Requirements
65
- - Python >= 3.8
66
- - pandas >= 1.5.0
67
- - numpy >= 1.21.0
68
- - matplotlib >= 3.5.0
69
- - seaborn >= 0.11.0
70
- - ivolatility >= 1.8.2
1
+ Metadata-Version: 2.4
2
+ Name: ivolatility_backtesting
3
+ Version: 1.39
4
+ Summary: A universal backtesting framework for financial strategies using the IVolatility API.
5
+ Author-email: IVolatility <support@ivolatility.com>
6
+ Project-URL: Homepage, https://ivolatility.com
7
+ Keywords: backtesting,finance,trading,ivolatility
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.8
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Requires-Python: >=3.8
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: pandas>=1.5.0
20
+ Requires-Dist: numpy>=1.21.0
21
+ Requires-Dist: matplotlib>=3.5.0
22
+ Requires-Dist: seaborn>=0.11.0
23
+ Requires-Dist: ivolatility>=1.8.2
24
+ Requires-Dist: psutil>=7.1.0
25
+ Dynamic: license-file
26
+
27
+ # IVolatility Backtesting
28
+ A universal backtesting framework for financial strategies using the IVolatility API.
29
+
30
+ ## Installation
31
+ ```bash
32
+ pip install ivolatility_backtesting
33
+ ```
34
+
35
+ ## Usage
36
+ ```python
37
+ from ivolatility_backtesting import run_backtest, init_api
38
+
39
+ # Initialize API
40
+ init_api("your-api-key")
41
+
42
+ # Define your strategy
43
+ def my_strategy(config):
44
+ # Strategy logic
45
+ return BacktestResults(
46
+ equity_curve=[100000, 110000],
47
+ equity_dates=["2023-01-01", "2023-01-02"],
48
+ trades=[{"pnl": 1000, "entry_date": "2023-01-01", "exit_date": "2023-01-02"}],
49
+ initial_capital=100000,
50
+ config=config
51
+ )
52
+
53
+ # Run backtest
54
+ CONFIG = {
55
+ "initial_capital": 100000,
56
+ "start_date": "2023-01-01",
57
+ "end_date": "2024-01-01",
58
+ "strategy_name": "My Strategy"
59
+ }
60
+ analyzer = run_backtest(my_strategy, CONFIG)
61
+
62
+ # Access metrics
63
+ print(f"Sharpe Ratio: {analyzer.metrics['sharpe']:.2f}")
64
+ ```
65
+
66
+ ## Requirements
67
+ - Python >= 3.8
68
+ - pandas >= 1.5.0
69
+ - numpy >= 1.21.0
70
+ - matplotlib >= 3.5.0
71
+ - seaborn >= 0.11.0
72
+ - ivolatility >= 1.8.2
@@ -0,0 +1,7 @@
1
+ ivolatility_backtesting/__init__.py,sha256=w48qgO4M15DobRW2pXQoxwG6mTtJVZtYYvCMxiaOm58,2920
2
+ ivolatility_backtesting/ivolatility_backtesting.py,sha256=_gMRnMwiudoAsYP1KxfGtKymGeRKrIEFz1X7869Zwxo,556316
3
+ ivolatility_backtesting-1.39.dist-info/licenses/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ ivolatility_backtesting-1.39.dist-info/METADATA,sha256=v74wGj1Z1uPFG6-GnBZAnFgmva6qgLjmc2Rm1hfLiA8,2051
5
+ ivolatility_backtesting-1.39.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ ivolatility_backtesting-1.39.dist-info/top_level.txt,sha256=Qv3irUBntr8b11WIKNN6zzCSguwaWC4nWR-ZKq8NsjY,24
7
+ ivolatility_backtesting-1.39.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.3.2)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,7 +0,0 @@
1
- ivolatility_backtesting/__init__.py,sha256=-VS3l4sUlmlMjVDwPY2BoXOVoYa5oVGYH9cscK5NLzw,395
2
- ivolatility_backtesting/ivolatility_backtesting.py,sha256=GLO_h72_mPmLDoknBIH6_rRWXxrZ0BSAr7Q85QTFBkk,35661
3
- ivolatility_backtesting-1.1.0.dist-info/LICENSE,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- ivolatility_backtesting-1.1.0.dist-info/METADATA,sha256=d8vKlXZcuCGCiXzwbJ2DQncLGnFdP844f4NXi0aDG18,2071
5
- ivolatility_backtesting-1.1.0.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
6
- ivolatility_backtesting-1.1.0.dist-info/top_level.txt,sha256=Qv3irUBntr8b11WIKNN6zzCSguwaWC4nWR-ZKq8NsjY,24
7
- ivolatility_backtesting-1.1.0.dist-info/RECORD,,