Skip to main content
DELETE
/
portfolio
/
orders
/
batched
Batch Cancel Orders
curl --request DELETE \
  --url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/batched \
  --header 'Content-Type: application/json' \
  --header 'KALSHI-ACCESS-KEY: <api-key>' \
  --header 'KALSHI-ACCESS-SIGNATURE: <api-key>' \
  --header 'KALSHI-ACCESS-TIMESTAMP: <api-key>' \
  --data '
{
  "ids": [
    "<string>"
  ],
  "orders": [
    {
      "order_id": "<string>",
      "subaccount": 0
    }
  ]
}
'
{
  "orders": [
    {
      "order_id": "<string>",
      "reduced_by_fp": "10.00",
      "error": {
        "code": "<string>",
        "message": "<string>",
        "details": "<string>",
        "service": "<string>"
      }
    }
  ]
}

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

Body

application/json
ids
string[]
deprecated

An array of order IDs to cancel

orders
object[]

An array of orders to cancel, each optionally specifying a subaccount

Response

Batch order cancellation completed

orders
object[]
required