Skip to content

Rest Api with Aggregate example returns limited number of rows #90

@surfingkaka

Description

@surfingkaka

`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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions