I created an Alpaca account on October 11, 2025. The account has been approved and on free tier. I’m getting empty results from the historical bars API for all symbols tested (SPY, AAPL, MSFT, TSLA, QQQ). I also tried getting active symbols first and then tried to get bars for them but still returned empty for all of them. Although, get_all_assets() , get_account(), and get_clock() using the TradingClient work successfully.
API Details:
- Endpoint: GET https://data.alpaca.markets/v2/stocks/bars
- SDK: alpaca-py version 0.42.2
- Client: StockHistoricalDataClient
- Request: StockBarsRequest with daily timeframe
- Date range: September 20 - October 10, 2025
- Feed parameter: Tested with DataFeed.SIP, DataFeat.IEX, and default (None)
Code:
from alpaca.data.historical import StockHistoricalDataClient
from alpaca.data.requests import StockBarsRequest
from alpaca.data.timeframe import TimeFrame
from alpaca.data.enums import DataFeed
client = StockHistoricalDataClient(api_key=key, secret_key=secret)
request = StockBarsRequest(
symbol_or_symbols=[“SPY”, “AAPL”, “MSFT”],
timeframe=TimeFrame.Day,
start=datetime(2025, 9, 20),
end=datetime(2025, 10, 10),feed=DataFeed.SIP)
bars = client.get_stock_bars(request)
bars is empty for all symbols
Results:
- API calls succeed (200 OK, no errors)
- BarSet object is empty for all symbols
- Tested with both paper trading keys and live individual brokerage account keys
Is there a delay after account approval before historical data access is enabled? Do I need to activate a specific market data plan?
Please help understand why I may be getting empty market data for all symbols.
