Adjusted some values

This commit is contained in:
2026-08-07 20:29:38 +03:00
parent 3b30a83f2e
commit 2165c4269d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -162,7 +162,7 @@ def predict_latest_probability(
max_age_days: int = 1,
api_key: str | None = None,
secret_key: str | None = None,
fetch_recent_data: bool = False,
fetch_recent_data: bool = True,
) -> PredictionResult:
"""Return the latest predicted probability for the next SPY move."""
+2 -2
View File
@@ -26,7 +26,7 @@ DEFAULT_SYMBOL = "SPY"
DEFAULT_MODEL_PATH = "notebooks/models/spy_xgb_v1.json"
DEFAULT_METADATA_PATH = "notebooks/models/spy_xgb_v1_meta.json"
DEFAULT_MIN_ORDER_DOLLARS = 25.0
DEFAULT_SENSITIVITY = 15.0
DEFAULT_SENSITIVITY = 25.0
@dataclass(frozen=True)
@@ -186,7 +186,7 @@ def rebalance_alpaca_portfolio(
min_order_dollars: float = DEFAULT_MIN_ORDER_DOLLARS,
sensitivity: float = DEFAULT_SENSITIVITY,
max_age_days: int = 1,
fetch_recent_data: bool = False,
fetch_recent_data: bool = True,
) -> tuple[AlpacaPortfolioSummary, Order | dict[str, Any] | None]:
client = create_alpaca_trading_client(api_key=api_key, secret_key=secret_key, paper=paper)
summary = fetch_alpaca_portfolio_summary(