Not able to get the historical data

I think I got it right, but somehow it just show the bar is null.


Why is that?

Hi @pq1,

Referring to Historical Data | Alpaca Docs
start defaults to the beginning of the current day, and end defaults to the current time. Looks like the daily bars have a timestamp of the next day at midnight New York time (either 04:00 or 05:00 UTC depending on daylight savings time).

I’m guessing it’s just a timezone issue. Try setting start and/or end explicitly to see if the problem gets resolved.

Kavin, PM @ Alpaca