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

scan_stocks() not working pls help? #3

Open
markmark1 opened this issue Oct 5, 2019 · 1 comment
Open

scan_stocks() not working pls help? #3

markmark1 opened this issue Oct 5, 2019 · 1 comment

Comments

@markmark1
Copy link

----- Scanning portfolio for stocks to sell -----

----- Scanning watchlist for stocks to buy -----

Traceback (most recent call last):
File "main.py", line 259, in
scan_stocks()
File "main.py", line 248, in scan_stocks
cross = golden_cross(symbol, n1=50, n2=200, days=10, direction="above")
File "main.py", line 159, in golden_cross
if(direction == "above" and not five_year_check(stockTicker)):
File "main.py", line 131, in five_year_check
if ((pd.Timestamp("now") - pd.to_datetime(list_date)) < pd.Timedelta("5 Y")):
TypeError: unsupported operand type(s) for -: 'Timestamp' and 'NoneType'

@txavier
Copy link

txavier commented Nov 22, 2020

I believe this issue is due to a new version of robin_stocks. I have corrected this in my fork.

jpstokes referenced this issue in plecco/RobinhoodBot Dec 5, 2023
…1.10.0

Bump scipy from 1.6.0 to 1.10.0 in /robinhoodbot
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

2 participants