eilin75
eilin75
I have the same problem
This is the order structure I am using: currency ='SQQQ' BuyAMT = 1 BuyPrice =1.00 result = api.orders.order(currency,BuyAMT,'buy',float(BuyPrice),stopPrice=None, timeInForce='gtc') print (result)
I am getting the same error with limit orders as well: result = api.orders.order_buy_limit(currency, BuyAMT, BuyPrice)
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')
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)