`with RESTClient(key) as client:
from_ = "2019-01-01"
to = "2019-02-01"
resp = client.stocks_equities_aggregates("AAPL", 1, "minute", from_, to, unadjusted=False)
print(f"Minute aggregates for {resp.ticker} between {from_} and {to}.")
count = 0
for result in resp.results:
dt = ts_to_datetime(result["t"])
#print(f"{dt}\n\tO: {result['o']}\n\tH: {result['h']}\n\tL: {result['l']}\n\tC: {result['c']} ")
count = count + 1
print(count)
`
Minute aggregates for AAPL between 2019-01-01 and 2019-02-01.
5000
last row is ''2019-01-10 11:55'
is there something I am missing ?