Skip to content

Add market_protection parameter to place order#218

Open
pepalguru wants to merge 1 commit intozerodha:masterfrom
pepalguru:patch-1
Open

Add market_protection parameter to place order#218
pepalguru wants to merge 1 commit intozerodha:masterfrom
pepalguru:patch-1

Conversation

@pepalguru
Copy link
Copy Markdown

@pepalguru pepalguru commented Feb 23, 2026

Added param market_protection to place_order() with a default value. Without this param SL-M orders are failing.

@swapnilgodse91
Copy link
Copy Markdown

@pepalguru - This doesn't seem to work ! Maybe, zerodha backend is not upgraded to support this parameter. Have you tested the response of the market order? The order response contains: {"market_protection": 0}

@swapnilgodse91
Copy link
Copy Markdown

@pepalguru - My mistake ! It seems to be working !! Although the order response contains: {"market_protection": 0}, in the web UI and kite android app, the shield symbol is appearing !

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants