Skip to main content
DELETE
/
portfolio
/
orders
/
{order_id}
Cancel Order
curl --request DELETE \
  --url https://external-api.kalshi.com/trade-api/v2/portfolio/orders/{order_id} \
  --header 'KALSHI-ACCESS-KEY: <api-key>' \
  --header 'KALSHI-ACCESS-SIGNATURE: <api-key>' \
  --header 'KALSHI-ACCESS-TIMESTAMP: <api-key>'
{
  "order": {
    "order_id": "<string>",
    "user_id": "<string>",
    "client_order_id": "<string>",
    "ticker": "<string>",
    "yes_price_dollars": "0.5600",
    "no_price_dollars": "0.5600",
    "fill_count_fp": "10.00",
    "remaining_count_fp": "10.00",
    "initial_count_fp": "10.00",
    "taker_fill_cost_dollars": "0.5600",
    "maker_fill_cost_dollars": "0.5600",
    "taker_fees_dollars": "0.5600",
    "maker_fees_dollars": "0.5600",
    "expiration_time": "2023-11-07T05:31:56Z",
    "created_time": "2023-11-07T05:31:56Z",
    "last_update_time": "2023-11-07T05:31:56Z",
    "order_group_id": "<string>",
    "cancel_order_on_pause": true,
    "subaccount_number": 123,
    "exchange_index": 0
  },
  "reduced_by_fp": "10.00"
}

Documentation Index

Fetch the complete documentation index at: https://docs.kalshi.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

KALSHI-ACCESS-KEY
string
header
required

Your API key ID

KALSHI-ACCESS-SIGNATURE
string
header
required

RSA-PSS signature of the request

KALSHI-ACCESS-TIMESTAMP
string
header
required

Request timestamp in milliseconds

Path Parameters

order_id
string
required

Order ID

Query Parameters

subaccount
integer

Subaccount number (0 for primary, 1-32 for subaccounts). Defaults to 0.

exchange_index
integer

Identifier for an exchange shard. Defaults to 0 if unspecified. Note: currently only 0 supported.

Example:

0

Response

Order cancelled successfully

order
object
required
reduced_by_fp
string
required

String representation of the number of contracts that were successfully canceled from this order

Example:

"10.00"