Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchlists not functional #63

Closed
klaypigeon opened this issue Feb 7, 2021 · 4 comments
Closed

watchlists not functional #63

klaypigeon opened this issue Feb 7, 2021 · 4 comments
Labels
question Further information is requested

Comments

@klaypigeon
Copy link

Was hoping to draw in a watchlist to run analysis, but I don't think this is working any more. Not complaining, just contributing how I can.

Just to show I am connected...

>>> a.quote('intc',fields='last')
         last
symbol       
INTC    58.18
>>> a.watchlists
<ally.Watchlist.Watchlist object at 0x7ffb6bfaa400>
>>> list(a.watchlists)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/theo/.local/lib/python3.8/site-packages/ally/Watchlist/__init__.py", line 189, in __iter__
    return self._all.__iter__()
  File "/home/theo/.local/lib/python3.8/site-packages/ally/Watchlist/__init__.py", line 175, in _all
    return self._lists
AttributeError: 'Watchlist' object has no attribute '_lists'
>>> list(a.watchlist['options1'])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Ally' object has no attribute 'watchlist'
@LaikaN57
Copy link
Collaborator

LaikaN57 commented Apr 10, 2021

Hmm.... I was not able to reproduce the issue. Do you have at least 1 watchlists in your Ally account? Maybe it is a different account number? it would be helpful for you to add logging to ally.Watchlists.methods.GetWatchlists.extract to see what the response (after json decode) is.

Also your last command should be list(a.watchlists['options1']) (with an s).

@LaikaN57
Copy link
Collaborator

LaikaN57 commented Jun 7, 2021

@klaypigeon bump

1 similar comment
@LaikaN57
Copy link
Collaborator

LaikaN57 commented Feb 7, 2022

@klaypigeon bump

@LaikaN57 LaikaN57 added the question Further information is requested label Feb 7, 2022
@klaypigeon
Copy link
Author

klaypigeon commented Feb 7, 2022 via email

@LaikaN57 LaikaN57 closed this as completed Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants