How to set a take profit and a stop loss for futures market order?

How to set a take profit and a stop loss for futures market order?
how should param be configurated to set them?
I’m using the following function:
params= {
‘quoteOrderQty’: quantity,
exchange.create_order(symbol, ‘market’, ‘buy’, quantity, price,params)

Please find how the create_order is defined. You will need to provide stopPrice and price for this order type, for more details please check:

anyone else find dino’s answer useless? maybe correct but not helpful.

Could someone please share how to set take profit on a market order via api?

Yes I’m having the same problem. you can not specify both take profit and stop loss at the same time. The only way is to create a 2nd order as a limit order… so every time you want to trade you have to send 2 orders for example buy market order and sell limit order. you may want to check out oco order type.


1 Like

Take profit order is different then the regular limit order & set TP value after the order executed.

Here I explained the detail of our approach:

I’m not sure that OcO order type is solution for us but if it helps please let us know

Read this - like dino said and try it out. If you encounter any problem, share your request details and the problem or error msg. This forum is for helping people, not Binance API 101