---
title: "Cancel all unmatched orders related to a market"
method: POST
path: "/v4/mm/cancel_orders_by_market"
tags: ["Order"]
---

# Cancel all unmatched orders related to a market

`POST /v4/mm/cancel_orders_by_market`

## Request

- Base URL: `https://cash.api.prophetx.co/partner`
- URL: `https://cash.api.prophetx.co/partner/v4/mm/cancel_orders_by_market`
- Auth: API key in header `Authorization`

Cancel all unmatched orders related to a market

## Request body

- MarketMakerCancelOrdersByMarketRequest
  - `event_id` integer
  - `market_id` integer
  - `strike_id` string

## Response `200`

OK

- MarketMakerCancelOrdersByMarketResponse
  - `data` V4CancelOrdersByMarketResponse
    - `success` boolean

## Other responses

- `400`: Bad request
- `401`: Unauthorized
- `404`: Your requested data is not found or order is cancelled
- `500`: Internal server error

## Changes

- **2026-11-03** `37e7808f6c3a`: 2 info
  - api tag `Order` added
  - api tag `order` removed

[Operation history](https://skmtc.dev/prophetx/apis/external-market-maker-api/changes/v4/mm/cancel_orders_by_market/post.md)

---

[API](https://skmtc.dev/prophetx/apis/external-market-maker-api.md) - [All operations](https://skmtc.dev/prophetx/apis/external-market-maker-api/llms.txt) - [OpenAPI document](https://skmtc.dev/prophetx/apis/external-market-maker-api/revisions/37e7808f6c3a?raw)
