diff --git a/app/services/alpaca_client.py b/app/services/alpaca_client.py index c2e3224..3e2e7b1 100644 --- a/app/services/alpaca_client.py +++ b/app/services/alpaca_client.py @@ -215,7 +215,7 @@ class AlpacaClient: start: Optional[str] = None, end: Optional[str] = None, limit: int = 10000, - batch_size: int = 200, + batch_size: int = 100, feed: Optional[str] = None, ) -> Dict[str, List[Dict]]: """ @@ -231,7 +231,7 @@ class AlpacaClient: start: RFC-3339 date/datetime string end: RFC-3339 date/datetime string limit: Max bars per page (Alpaca max 10000) - batch_size: Max symbols per Alpaca request (default 200, ~1KB URL) + batch_size: Max symbols per Alpaca request (default 100, conservative safe limit) Returns: Dict mapping normalized Alpaca symbol → list of bar dicts