cancelOCOOrder method
- String groupId
override
Cancels an existing OCO pair (both legs, whether pending or already
live and still linked). groupId is the pair's own identifier —
same shape as cancelOrder, no leg data needed to identify it.
Implementation
@override
void cancelOCOOrder(String groupId) {
unawaited(
_data.invokeMethod<void>('cancelOCOOrder', {'groupId': groupId}),
);
}