Open Mariani-code opened 1 year ago
I have the same issue when using the function order_sell_market in version 3.0.5. "Error in request_post: Received 400"
Same issue for me, why is it not getting fixed? Thanks.
I am getting the same error with limit orders as well:
result = api.orders.order_buy_limit(currency, BuyAMT, BuyPrice)
same issue on my end. can anyone help us?
same issue market order not working
I have the same issue as well
I finally got this to work. You have to use the long order per the instructions.
i.e.
robin_stocks.robinhood.orders.order(symbol, quantity, side, limitPrice=None, stopPrice=None, account_number=None, timeInForce='gtc', extendedHours=False, jsonify=True, market_hours='regular_hours')
There is a pull request that will fix this. https://github.com/jmfernandes/robin_stocks/pull/421
Thank you @eilin75 , your suggestion worked. Using the broader order function worked great!
I had this same error when trying to place a sell order. I was trying to sell fractional shares and I realized I was using the wrong sell order. It didn't work until I used robin_stocks.robinhood.orders.order_sell_fractional_by_quantity("stock", shares)
this is the order structure that I got working:
currency ='SQQQ'
BuyAMT = 1 BuyPrice =1.00 result = api.orders.order(currency,BuyAMT,'buy',float(BuyPrice),stopPrice=None, timeInForce='gtc') print (result)
I'm using that and it's been working well for me.
Running into "Error in request_post: Received 400" on sell market orders on 3.0.5, Is anyone else running into this?