Hi All,
Hope you are doing well.
I am stuck with the .json “Quantity” parameter, could you please help me how I can exit all or half positions from specific Strike price.
Ex. If I am in a position of 45500 PE, I want to exit all or half positions via .json parameter, could you please help to get that particular parameter or script.
{
“secret”: “nDSwa”,
“alertType”: “multi_leg_order”,
“order_legs”: [
{
“transactionType”: “S”,
“orderType”: “MKT”,
“quantity”: “2”,
“exchange”: “NSE”,
“symbol”: “BANKNIFTY”,
“instrument”: “OPT”,
“productType”: “I”,
“sort_order”: “1”,
“price”: “0”,
“option_type”: “PE”,
“strike_price”: “45000.0”,
“expiry_date”: “2024-02-14”
}
]
}