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

stockbot does not keep track of stocks when you exit it #1

Open
haqthat opened this issue Feb 19, 2021 · 0 comments
Open

stockbot does not keep track of stocks when you exit it #1

haqthat opened this issue Feb 19, 2021 · 0 comments

Comments

@haqthat
Copy link

haqthat commented Feb 19, 2021

This really inhibits the usefulness of the application.
Would it be hard to have it load your current positions when it starts up?

I believe it also is the reason it throws the following error on startup:
2021-02-19T09:34:22.064436-05:00 selling stock if it goes up by 3%... Traceback (most recent call last): File "stockbot.py", line 638, in <module> main() File "stockbot.py", line 451, in main for stock in bought_stocks: UnboundLocalError: local variable 'bought_stocks' referenced before assignment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant