Currently in the process of migrating from Polygon to Alpaca’s paid data offering, and noticed some incorrect bars around the 8AM est spike that occurs most mornings.
For example, this morning at 8am EST, I get the following data from Alpaca. Note the difference in price, and especially volume/trade count. The volume/trade count is only around 10% of what’s being reported from Polygon or TradingView. Am I doing something wrong?
Code Sample
from alpaca_trade_api.rest import REST, TimeFrame
api = REST(settings.ALPACA_API_KEY, settings.ALPACA_API_SECRET)
alpaca_prices = api.get_bars('TQQQ', TimeFrame.Minute, '2022-05-04', '2022-05-04', adjustment='raw').df
alpaca_prices.index = pd.to_datetime(alpaca_prices.index).tz_convert('US/Eastern')
alpaca_prices.loc['2022-05-04 7:59:00':]
ALPACA
08:00:00 2022-05-04
Symbol TQQQ
Open 38.7012
High 38.7400
Low 38.6900
Close 38.7400
Volume 19,790.0000
Trades 110
POLYGON
08:00:00 2022-05-04
Symbol TQQQ
Open 38.70
High 38.88
Low 38.37
Close 38.74
Volume 238,236.0000
Trades 1082
TRADINGVIEW
08:00:00 2022-05-04
Symbol TQQQ
Open 38.70
High 38.88
Low 38.37
Close 38.74
Volume 225,201.0000
Trades not available