Market order with MPP enabled fails when the LTP is near to the circuit limits

anandn04
We are placing a market order with MPP as -1 indicating zerodha should calculate the limit price to place a limit order. When the LTP is very close to the upper circuit or lower circuit and when this order is placed, the limit price goes beyond these limits and the order is failed with message indicating the limit price is above/below the circuit limits.

We have the same algo platform which runs on Angel One as well and we don't see this issue with them since they have the below logic to calculate the limit price

FinalLimitPriceForSellOrder = MAX(loweCircuitLimit, sellMarketPriceProtectionLimit)

FinalLimitPriceForBuyOrder = MIN(upperCircuitLimit, buyMarketPricePritectionLimit)

Please add this change in your MPP handling since we are seeing these errors often with GOLD and SILVER in MCX exchange.
  • Nivas
    We have the price handling logic for MPP under consideration as part of an upcoming revamp.
Sign In or Register to comment.