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 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,3 @@
1
+ __all__ = ["__version__"]
2
+
3
+ __version__ = "0.1.0"
@@ -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
+ ]
@@ -0,0 +1,11 @@
1
+ from .engine import Backtester, BTConfig, BTResult, Trade
2
+ from .walkforward import WalkForwardAnalyzer, WalkForwardConfig
3
+
4
+ __all__ = [
5
+ "Backtester",
6
+ "BTConfig",
7
+ "BTResult",
8
+ "Trade",
9
+ "WalkForwardAnalyzer",
10
+ "WalkForwardConfig",
11
+ ]