New OCO Order with Trailing Delta for the LIMIT_MAKER

Hi,

When I create a new OCO SELL side order, the trailing delta is on the STOP_LOSS_LIMIT side.

I would like the trailing delta on the LIMIT_MAKER side (take profit).

So the profit is maximized but the stop loss remains set exact.

Here’s an example of a new OCO config:

 {
  symbol: 'DOTUSDT',    
  side: 'SELL',           
  quantity: 1.7,            
  price: 8.5,                                 
  stopPrice: 7.24,                
  options: {                   
    stopLimitPrice: 7.2,                      
    trailingDelta: 380,          
    stopLimitTimeInForce: 'GTC'         
  }                 
}     

The trailing delta is not set to the the LIMIT_MAKER side (take profit).

{
    status: 'NEW',
      timeInForce: 'GTC',
      type: 'STOP_LOSS_LIMIT',
      side: 'SELL',
      stopPrice: '7.24000000',
      trailingDelta: 380
}

I want the trailingDelta on the other side:

{      status: 'NEW',
      timeInForce: 'GTC',
      type: 'LIMIT_MAKER',
      side: 'SELL'
    }

Is this possible to do?

Thanks.

This ( trailingDelta) can only used with any of the following order types: STOP_LOSS, STOP_LOSS_LIMIT, TAKE_PROFIT, TAKE_PROFIT_LIMIT

From the document, binance-spot-api-docs/CHANGELOG.md at master · binance/binance-spot-api-docs · GitHub, unfortunately you can’t.

1 Like

This reply is no longer true. Binance started to allow OCO with trailingDelta.

Did you find the answer?

In addition to what dino said, there is an additional note in the changelog (Same link):

When used in combination with OCO Orders, the trailingDelta will determine when the contingent leg of the OCO will trigger.

The contingent leg is the STOP_LOSS or STOP_LOSS_LIMIT leg, as OCO uses a pair of orders. trailingDelta is not supported on the LIMIT_MAKER leg.

Very clear now and many thanks!

Next question, related to the above - will Binance develop an OCO which will allow trailing on BOTH legs? I.e. in the case of SELL OCO - that the OCO will be the combination of leg-1 being SELL TAKE_PROFIT (stopPrice above market and with trailingDelta as parameter), and leg-2 being SELL STOP_LOSS (stopPrice below market and with trailingDelta as parameter)? I.e. such OCO will have 2 stopPrices and 2 trailingDeltas?

It seems that such OCO could be useful for developing advanced strategies for automated trading.

You can view changelog or follow the gitub repo for SPOT docs to check for any new features with OCOs in the future, but as of this time the OCO for SPOT API is designed with a pair of orders- one algo order order (STOP_LOSS or STOP_LOSS_LIMIT) and a LIMIT_MAKER order.

Thanks!