MarketProtection Issue

manoj_trade
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).

Please check.

Regards,
Manoj
  • salim_chisty
    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.

    Please refer to the similar discussion here.
  • manoj_trade
    But I am passing the market protection parameter as "MarketProtection:MarketProtection.Auto"
  • manoj_trade
    manoj_trade edited April 3
    @Matti
    @tonystark
    @salim_chisty
    Any comment regarding the above issue. Can I pass "MarketProtection:MarketProtection.Auto" when modifying a limit order to market order.
Sign In or Register to comment.