Watchlists

class ally.Watchlist.Watchlist(parent)

Handle an accounts watchlists and symbols in a pythonic way.

The Watchlist account object wraps ally’s watchlist functionality and mimics python datatypes.

Examples:

# See all of your watchlists
list(a.watchlists)

# => ['w-list1', 'my-watchlist',...]
# See all the symbols associated with a watchlist
list(a.watchlist['w-list1'])

# => ['aapl, 'googl',...]
# Create a watchlist, and initialize with symbols
a.watchlist['new-watchlist'] = ['aapl,'googl',...]
# Remove a symbol from a watchlist
a.watchlist['new-watchlist'].pop('aapl')
# Delete a watchlist
a.watchlist.pop('new-watchlist')