I am unable to create a Market order using java API. The actual order created is seen as LIMIT. I am using market protection as 1. Btw, is < 1 allowed, e.g 0.5 ? I also tried not to set price for MARKET. It got created and executed at the same price as when i placed the order, so price diff also does not seem to be the issue. Its an MTF sell order, is that a problem ?
A Market order with market_protection set to a positive value (0 to 100) is converted to a Limit order with the corresponding protection price. This behaviour is also applicable to MTF SELL orders.
Please note that while market protection converts a MARKET order into a LIMIT order, its execution remains subject to the exchange-defined Limit Price Protection (LPP) range.
Setting market_protection = -1 enables automatic market protection for MARKET and SL-M orders, where the applicable protection percentage is determined automatically by the system.
Marketorder withmarket_protectionset to a positive value (0 to 100) is converted to aLimitorder with the corresponding protection price. This behaviour is also applicable to MTF SELL orders.Please note that while market protection converts a MARKET order into a LIMIT order, its execution remains subject to the exchange-defined Limit Price Protection (LPP) range.
Setting
market_protection = -1enables automatic market protection for MARKET and SL-M orders, where the applicable protection percentage is determined automatically by the system.For more details on market_protection, please check the Kite Connect API documentation.