arbitrix-core 0.1.0__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.
- arbitrix/__init__.py +20 -0
- arbitrix/_version.py +3 -0
- arbitrix/core/__init__.py +20 -0
- arbitrix/core/backtest/__init__.py +11 -0
- arbitrix/core/backtest/engine.py +721 -0
- arbitrix/core/backtest/walkforward.py +62 -0
- arbitrix/core/cli.py +48 -0
- arbitrix/core/costs/__init__.py +304 -0
- arbitrix/core/costs/base.py +448 -0
- arbitrix/core/costs/models/default.py +58 -0
- arbitrix/core/costs/registry.py +97 -0
- arbitrix/core/strategies/VSS.py +428 -0
- arbitrix/core/strategies/VWMS.py +369 -0
- arbitrix/core/strategies/__init__.py +18 -0
- arbitrix/core/strategies/base.py +56 -0
- arbitrix/core/strategies/breakout_index.py +193 -0
- arbitrix/core/strategies/carry_trade.py +79 -0
- arbitrix/core/strategies/meanrev_gold.py +55 -0
- arbitrix/core/strategies/registry.py +274 -0
- arbitrix/core/types.py +27 -0
- arbitrix/core/utils/__init__.py +1 -0
- arbitrix/core/utils/indicators.py +55 -0
- arbitrix/core/utils/progress.py +27 -0
- arbitrix_core-0.1.0.dist-info/METADATA +53 -0
- arbitrix_core-0.1.0.dist-info/RECORD +28 -0
- arbitrix_core-0.1.0.dist-info/WHEEL +5 -0
- arbitrix_core-0.1.0.dist-info/entry_points.txt +2 -0
- arbitrix_core-0.1.0.dist-info/top_level.txt +1 -0
arbitrix/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Arbitrix algorithmic trading toolkit."""
|
|
2
|
+
|
|
3
|
+
from ._version import __version__
|
|
4
|
+
|
|
5
|
+
__all__ = ["__version__"]
|
|
6
|
+
|
|
7
|
+
try: # pragma: no cover - optional dependency guard
|
|
8
|
+
from .config import load_config, AppConfig # noqa: F401
|
|
9
|
+
except ModuleNotFoundError as exc: # pragma: no cover - triggered if pyyaml missing or config omitted
|
|
10
|
+
if exc.name not in {"yaml", "arbitrix.config", "config"}:
|
|
11
|
+
raise
|
|
12
|
+
|
|
13
|
+
def load_config(*_args, **_kwargs): # type: ignore
|
|
14
|
+
raise ModuleNotFoundError(
|
|
15
|
+
"Configuration support is unavailable; install the full Arbitrix package to enable it."
|
|
16
|
+
) from exc
|
|
17
|
+
|
|
18
|
+
AppConfig = None # type: ignore
|
|
19
|
+
else: # pragma: no cover - executed when config is available
|
|
20
|
+
__all__.extend(["load_config", "AppConfig"])
|
arbitrix/_version.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Core (open-source) surface of Arbitrix.
|
|
2
|
+
|
|
3
|
+
This subpackage intentionally contains only the components that are safe to
|
|
4
|
+
publish independently: the backtesting engine, strategy base classes, cost
|
|
5
|
+
models, shared utilities, and lightweight type definitions.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from .backtest.engine import Backtester, BTConfig, BTResult, Trade
|
|
9
|
+
from .strategies.base import BaseStrategy, Signal
|
|
10
|
+
from .types import InstrumentConfig
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"Backtester",
|
|
14
|
+
"BTConfig",
|
|
15
|
+
"BTResult",
|
|
16
|
+
"Trade",
|
|
17
|
+
"BaseStrategy",
|
|
18
|
+
"Signal",
|
|
19
|
+
"InstrumentConfig",
|
|
20
|
+
]
|