Kalshi Cancel Order
Cancel an existing resting order on Kalshi. Returns the cancelled order object with updated status. Requires the order ID of a resting order. Ideal for: order management, risk control, automated position adjustment, stop-loss workflows.
Catalog action Utility kalshi
Cancel an existing resting order on Kalshi. Returns the cancelled order object with updated status. Requires the order ID of a resting order. Ideal for: order management, risk control, automated position adjustment, stop-loss workflows.
At a Glance
| Field | Value |
|---|---|
| Action ID | kalshi-cancel-order |
| Category | Utility |
| Connector | kalshi |
| Requires gas | No |
| Funds movement | None declared |
| Tags | kalshi, prediction-market, trading, order, write |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
orderId | string | Yes | The ID of the order to cancel |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
order | object | Yes | The cancelled order object |
Examples
json{ "type": "kalshi-cancel-order", "payload": { "orderId": "example-orderId" }, "children": [], "connector": { "type": "kalshi", "id": "conn_kalshi" }}
bashcurl -X POST "https://api.b3os.org/v1/actions/kalshi-cancel-order/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "orderId": "example-orderId" }}'
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.
