Alpaca SDK Version
Other Environment Details
Using historic_agg_v2 polygon function to get aggregate data
I am new to alpaca. My usage of historic_agg_v2 is returning a None object. Trying to get hourly, minutes, or day polygon aggregate data. I am using agg_v2 since it return historic data for minutes, but this doesn’t seem to work with my usage. I also tried passing limit =10 and instead of ‘day’ using ‘hour’, either didn’t seem to work. Would greatly appreciate help here. Thanks
Paper or Live Trading?
Live Trading account
ENDPOINT ='https://api.alpaca.markets' api = alpaca.REST(KEYID, SECRETKEY, ENDPOINT) api. api.polygon.historic_agg_v2('AAPL', 1, 'day', 2019-10-28, 2019-10-29, False)``` TypeError: 'NoneType' object is not iterable