Polymarket Cancel Order logo

Catalog action Utility wallet

Cancel open orders on Polymarket. Supports cancelling a single order by ID, multiple orders by ID array, all orders for a specific market/asset, or all open orders. Ideal for: risk management, portfolio rebalancing, automated safety nets, order cleanup.

This action can require a wallet connector, gas, token movement, or an external side effect. Test with simulation or a controlled amount before using it in a live workflow.

At a Glance

FieldValue
Action IDpolymarket-cancel-order
CategoryUtility
Connectorwallet
Requires gasNo
Funds movementNone declared
Tagspolymarket, trading, orders, write

Payload Schema

FieldTypeRequiredDescription
modestringYesCancel mode. 'single' cancels one order by ID. 'batch' cancels multiple by ID array. 'market' cancels all orders for a specific market or asset. 'all' cancels every open order.
orderIdstringNoOrder ID to cancel (required for mode 'single').
orderIdsarrayNoArray of order IDs to cancel (required for mode 'batch'). Max 100.
marketstringNoMarket condition ID — cancel all orders for this market (used with mode 'market').
assetIdstringNoAsset/token ID — cancel all orders for this asset (used with mode 'market').

Result Schema

FieldTypeRequiredDescription
statusstringYesOverall cancellation status.
cancelledCountnumberNoNumber of orders successfully cancelled.
cancelledOrderIdsarrayNoIDs of cancelled orders (when available from the API response).
notCancelledobjectNoMap of order IDs that failed to cancel with their error reasons.
messagestringNoAdditional context about the cancellation result.

Examples

json
{ "type": "polymarket-cancel-order", "payload": { "mode": "single" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I