client-python icon indicating copy to clipboard operation
client-python copied to clipboard

'RESTClient' object has no attribute 'get_aggs'

Open aggregated opened this issue 3 years ago • 0 comments

Describe the bug Really not sure whether this is a bug or me being stupid in one way or another. I installed the client module as stated in the documentation. I used the exact same code as the examples:

    aggs = []
    to = datetime.datetime.now()
    from_ = to - datetime.timedelta(days=10*365)
    #for a in client.get_aggs(ticker=ticker, multiplier=1, timespan=hour, from_=from_, adjusted=True, limit=50000):
    for a in client.get_aggs("AAPL", 1, "day", "2022-04-04", "2022-04-04"):
        aggs.append(a)
    print(aggs)

The commented out line was my first attempt, but even using the function call as stated in the example won't work.

Additional context Jupyterlab Notebook

!python -V
Python 3.9.13

aggregated avatar Aug 04 '22 23:08 aggregated