added stock split support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user