cURL
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>" } } ] }
Endpoint for cancelling up to 20 orders at once.
Your API key ID
RSA-PSS signature of the request
Request timestamp in milliseconds
An array of order IDs to cancel
An array of orders to cancel, each optionally specifying a subaccount
Show child attributes
Batch order cancellation completed