---
title: "Cancel orders by event"
method: POST
path: "/orders/cancel/event"
tags: ["Orders"]
---

# Cancel orders by event

`POST /orders/cancel/event`

This endpoint cancels existing orders on the exchange for a particular event that you placed as a market maker.

## Request body

- object
  - `sportXeventId` string, required — The event for which orders should be cancelled
  - `signature` string, required — Your wallet signature over the cancel payload. See the Order Signing reference for details on how to compute this.
  - `salt` string, required — A random 32 bytes hex string to protect against replay
  - `maker` string, required — The account from which you are cancelling orders
  - `timestamp` integer, required — The current timestamp in UNIX seconds to protect against replay

## Response `201`

- object
  - `status` string — `success` or `failure` if the request succeeded or not
  - `data` object
    - `cancelledCount` number — How many orders were cancelled
    - `orders` object[] — An array of Cancelled Order objects. Omitted if cancel count is 0.
      - `orderHash` string — Cancelled order hash
      - `pendingFills` object[] — The pending fills awaiting confirmation on chain. Expected to succeed and fill order.
        - `fillHash` string — The fill hash which is pending
        - `pendingFillAmount` string — The amount of the order that this fill is attempting to fill
    - `notCancelled` object[] — Orders from the request that were not cancelled.
      - `orderHash` string — Order hash that was not cancelled.
      - `reason` 'not_found_or_inactive' | 'already_pending_cancel' | 'order_locked' | 'update_failed' — Why the order was not cancelled. `not_found_or_inactive` — order was not found or is no longer active. `already_pending_cancel` — order already has a pending cancellation. `order_locked` — order is temporarily locked, likely because another fill/cancel flow is processing it. `update_failed` — order could not be cancelled due to an internal processing issue.

## Other responses

- `400` — Error Codes: `CANCEL_REQUEST_ALREADY_PROCESSED` — This cancellation is already processed `SIGNATURE_MISMATCH` — The provided signature does not match the cancel payload

---

[API](https://skmtc.net/sx/apis/sx-bet-api.md) · [All operations](https://skmtc.net/sx/apis/sx-bet-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sx/sx-bet-api/versions/eb2c05c3a98e/schema)
