cancelByCloid
Cancels orders by the cloid supplied when the order was placed. Note that this action's bodies use full field names, not the abbreviated keys used by cancel.
Outcome orders use the same action, with the market's instrument_id as
asset.
cancelByCloidCancel orders by the client order id (a plain string) you set when placing them.Agent-signed
Cancel bodies; at most 200 per action.
Instrument's external id — the `index` value from `perpMeta`; Outcome markets use the `instrument_id`.
Client order id set as `c` on the original order.
Defaults to `na`.
"na""tpsl""trigger"Must be `cancelByCloid`.
"cancelByCloid"curl -X POST https://rpc.txflow-testnet.xyz/exchange \
-H "Content-Type: application/json" \
-H "x-api-version: 2026-08-16" \
-d '{
"action": {
"type": "cancelByCloid",
"cancels": [
{
"asset": 1,
"cloid": "my-order-001"
}
]
},
"signature": {
"r": "0x<r>",
"s": "0x<s>",
"v": 27
},
"nonce": 1757992743994,
"vaultAddress": null,
"signatureChainId": null
}'`0` on success.
The action's internal name, which does not always match the request `type`.
"CancelOrder"A rejected request returns `err` with a non-zero `code` and the reason in `message` (or `response`).
"ok"{
"status": "ok",
"code": 0,
"data": {
"type": "CancelOrder",
"data": {
"statuses": [
"success"
]
}
}
}Cancel body
Instrument's external id — the `index` value from `perpMeta`; Outcome markets use the `instrument_id`.
Client order id set as `c` on the original order.
Defaults to `na`.
"na""tpsl""trigger"Next steps
The response type is CancelOrder, the same as cancel. Confirm the result with frontendOpenOrders.