Skip to content

get_barset is deprecated #3

@jasmarc

Description

@jasmarc

get_barset was deprecated in favor of get_bars. We also need to use TimeFrame.Day. There are likely many other issues related to this, but I'm still working through them.

                 for d in data['data']['table']['rows']:
                     # Get daily price data for stock symbol over the last n trading days.
-                    barset = api.get_barset(d['symbol'], 'day', limit=MOVED_DAYS)
+                    barset = api.get_bars(d['symbol'], TimeFrame.Day, limit=MOVED_DAYS)
                     if not barset[d['symbol']]:
                         print('stock symbol {} not found'.format(d['symbol']))
                         continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions