added stock split support
Deploy / lint (push) Successful in 6s
Deploy / test (push) Successful in 30s
Deploy / deploy (push) Successful in 21s

This commit is contained in:
2026-03-07 16:50:18 +01:00
parent 03ea60e067
commit d331f551e3
2 changed files with 27 additions and 0 deletions
+2
View File
@@ -9,6 +9,7 @@ from datetime import date
from alpaca.data.historical import StockHistoricalDataClient
from alpaca.data.requests import StockBarsRequest
from alpaca.data.timeframe import TimeFrame
from alpaca.data.enums import Adjustment
from app.exceptions import ProviderError, RateLimitError
from app.providers.protocol import OHLCVData
@@ -34,6 +35,7 @@ class AlpacaOHLCVProvider:
timeframe=TimeFrame.Day,
start=start_date,
end=end_date,
adjustment=Adjustment.SPLIT,
)
# alpaca-py's client is synchronous — run in a thread