robin_stocks
robin_stocks copied to clipboard
Error could not convert string to float: 'gfd' occurs in orders.order_sell_market call
https://github.com/jmfernandes/robin_stocks/blob/470a205b8d2ef4c36defc380cb88d5b3787075c0/robin_stocks/robinhood/orders.py#L511
Here is an error, timeInForce
argument is in wrong place: it goes as a parameter stopPrice
in the order
function. And it leads to an error like could not convert string to float: 'gfd'
.
How to reproduce:
r.orders.order_sell_market(symbol, quantity=quantity, timeInForce= 'gfd')
Things are fundamentally broken. The parameter list passed to order()
from order_buy_market()
is not correct.
Any update on this? I have the same issue. I fixed my "buy" then "sell" broken....