robin_stocks icon indicating copy to clipboard operation
robin_stocks copied to clipboard

Error could not convert string to float: 'gfd' occurs in orders.order_sell_market call

Open ValentinLevitov opened this issue 1 year ago • 2 comments

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')

ValentinLevitov avatar May 26 '23 19:05 ValentinLevitov

Things are fundamentally broken. The parameter list passed to order() from order_buy_market() is not correct.

ChrisKarle avatar May 30 '23 21:05 ChrisKarle

Any update on this? I have the same issue. I fixed my "buy" then "sell" broken....

superfrank27 avatar Jun 06 '23 14:06 superfrank27