groupAdjustOrders method
- String params
override
Places a group-adjust order — simultaneously
params JSON shape:
{
"exit": [
{
"action": "Buy",
"id": "NIFTY2560023000PE",
"ordType": "market",
"price": 120.5,
"quantity": 50
}
],
"add": [
{
"action": "Sell",
"id": "NIFTY2560024000CE",
"ordType": "limit",
"price": 85.0,
"quantity": 50
}
]
}
exit — exit legs for the currently held positions (action is
inverted from the position side, e.g. long → Sell).
add — new entry legs selected from the option chain.
action: "Buy" | "Sell"
ordType: "market" | "limit"
Implementation
@override
void groupAdjustOrders(String params) {
unawaited(_data.invokeMethod<void>('groupAdjustOrders', params));
}