binance-futures-connector: new_order with TP/SL

  Kiến thức lập trình

I’m placing purchase orders using arguments for new_order() and it works

{‘symbol’: ‘BTCUSDT’, ‘side’: ‘BUY’, ‘type’: ‘MARKET’, ‘quantity’: 0.002, ‘positionSide’: ‘LONG’}

But now I need set StopLoss/TakeProfit for new LONG order (ideally when placing an order).

I tried pass stopPrice, but api responsed

Parameter ‘stopprice’ sent when not required

Any other idea?

New contributor

user25531656 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT