Now market protection is mandatory for market order. Zerodha didn inform about this change and did it abruptly breaking many codes
even the implementation is not done per the documentation. In the documentation there is mention of market_protection = 0 which is the default behavior meaning order will execute like a true market order. But when i am setting the market_protection = 0 I get an error in Order post. this is the error - Market orders without market protection are not allowed via API. Please set market protection or use a Limit order.
Zerodha please clarify if 0 is supported value for market_protection or not
Market orders will require market protection. Orders placed with market protection set to "0" will be rejected. This includes SL-M orders. This is mandated by the exchanges for all algo orders. Please check the support article and forum thread discussion for more details.