Adjusted some values
This commit is contained in:
@@ -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."""
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user