I am attemptin to create a STOP_MARKET order on Futures this is my code:
def futurePlaceOrder(self, symbol, type, side, amount, price=None, params={}):
return = self.binanceFuture.createOrder (symbol, type, side, amount, price, params = {})
STOP_LOSS = (futurePlaceOrder(
symbol = 'BTC/USDT',
type = 'STOP_MARKET',
side = 'BUY',
amount = 0.003,
params = {
'stopPrice': 29500,
'closePosition': False
}
))
but I am getting the following error:
ccxt.base.errors.InvalidOrder: binance createOrder() requires a stopPrice extra param for a STOP_MARKET order
any advice please, thank you