Hello all,
I downloaded the 1 minute historical data in the past using python, but recently it doesn’t work anymore. I’m using the free API key, is this a problem of the free key or in general? It worked till around end of February or beginning of March. Her is my python code:
# Initialize the client
client = StockHistoricalDataClient(api_key, secret_key)
# Define the request parameters
request_params = StockBarsRequest(
symbol_or_symbols=symbol,
timeframe=TimeFrame.Minute,
start=datetime.datetime.strptime(start_date, '%Y-%m-%d'),
end=datetime.datetime.strptime(end_date, '%Y-%m-%d'),
adjustment='raw',
)