pairId and idx from this response with modifyOrder() and cancelOrder().
idx is the on-chain limit-order slot index within the trader and pair, not the global order id from the subgraph. Pass it directly with pairId when cancelling or modifying a limit or stop order.