Hi, When tried to modify a limit sell order to market order by kite's ModifyOrder function with protection parameter as "MarketProtection:MarketProtection.Auto", I am getting error as "Market orders without market protection are not allowed via API. Please set market protection or use a Limit order."
Issue happened when tried to modify sensex option and .net library is latest (v5.0.0).
When modifying an order, please note the following behavior: If you are modifying a LIMIT order to a MARKET order, the market_protection parameter must be specified, as it is mandatory for market orders. However, if you are modifying an existing MARKET order, there is no need to pass the market_protection parameter again, as it is already associated with the order.
@Matti @tonystark @salim_chisty Any comment regarding the above issue. Can I pass "MarketProtection:MarketProtection.Auto" when modifying a limit order to market order.
If you are modifying a LIMIT order to a MARKET order, the market_protection parameter must be specified, as it is mandatory for market orders.
However, if you are modifying an existing MARKET order, there is no need to pass the market_protection parameter again, as it is already associated with the order.
Please refer to the similar discussion here.
@tonystark
@salim_chisty
Any comment regarding the above issue. Can I pass "MarketProtection:MarketProtection.Auto" when modifying a limit order to market order.