Open shrawan12321 opened 1 year ago
Please help to fix this error as soon as possible.
same error
Hey, @cpasean and @shinwss try this out.
Change line 321 in orders.py from return order(symbol, quantity, "buy", None, None, timeInForce, extendedHours, jsonify) return order(symbol, quantity, "buy", None, None, None, timeInForce, extendedHours, jsonify)
Let me know if that works for you.
@txavier @cpasean @shinwss it should be fixed in github and pypi. You can do a
pip install —upgrade robin_stocks
to get the latest version which should be 3.0.4
Could you also please tell us where the new documentation page is? None of the links below seem to work. I remember it used to work a while ago.
https://www.robin-stocks.com/en/latest/robinhood.html[ https://robin-stocks.readthedocs.io/en/latest/robinhood.html https://robin-stocks.readthedocs.io/_/downloads/en/stable/pdf
Also, with the latest version, limit sell seems to work properly but not limit buy. Getting - " Error in request_post: Expecting value: line 1 column 1 (char 0)) None " While selling non existing shares of AAPL (as a test), it says - " {'non_field_errors': ['Your app version is missing important stock trading updates. You can still place orders on the web.']} " instead of just saying I dont have enough to sell.
@txavier @cpasean @shinwss it should be fixed in github and pypi. You can do a
pip install —upgrade robin_stocks
to get the latest version which should be 3.0.4
Dear Boss, I got 3.0.4 and tried:
Buy order: "rs.order_buy_market('BIIB', 1)" ==> "Error in request_post: Expecting value: line 1 column 1 (char 0)"
Please help dear boss.
Just made a comment on this issue about a similar error I received what I saw was the cause of it.
I still can't buy or sell :( Hope the 401 PR is merged soon. 3.0.5 still has errors.
Looks like it is trying to convert timeInForce option to float and it fails.
File "/Users/Shrawan/opt/anaconda3/envs/trading-robinhood-python/lib/python3.9/site-packages/robin_stocks/robinhood/helper.py", line 33, in login_wrapper return(func(*args, **kwargs))
File "/Users/Shrawan/opt/anaconda3/envs/trading-robinhood-python/lib/python3.9/site-packages/robin_stocks/robinhood/orders.py", line 593, in order_sell_limit return order(symbol, quantity, "sell", limitPrice, None, timeInForce, extendedHours, jsonify)
File "/Users/Shrawan/opt/anaconda3/envs/trading-robinhood-python/lib/python3.9/site-packages/robin_stocks/robinhood/helper.py", line 33, in login_wrapper return(func(*args, **kwargs))
File "/Users/Shrawan/opt/anaconda3/envs/trading-robinhood-python/lib/python3.9/site-packages/robin_stocks/robinhood/orders.py", line 808, in order stopPrice = round_price(stopPrice)
File "/Users/Shrawan/opt/anaconda3/envs/trading-robinhood-python/lib/python3.9/site-packages/robin_stocks/robinhood/helper.py", line 157, in round_price price = float(price)
ValueError: could not convert string to float: 'gtc'