Authorizations
Your API key ID
RSA-PSS signature of the request
Request timestamp in milliseconds
Body
application/json
An array of order IDs to cancel
Response
Batch order cancellation completed
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>",
"order": {
"order_id": "<string>",
"user_id": "<string>",
"client_order_id": "<string>",
"ticker": "<string>",
"side": "yes",
"action": "buy",
"type": "limit",
"status": "resting",
"yes_price": 123,
"no_price": 123,
"yes_price_dollars": "0.5000",
"no_price_dollars": "0.5000",
"fill_count": 123,
"remaining_count": 123,
"initial_count": 123,
"taker_fees": 123,
"maker_fees": 123,
"taker_fill_cost": 123,
"maker_fill_cost": 123,
"taker_fill_cost_dollars": "<string>",
"maker_fill_cost_dollars": "<string>",
"queue_position": 123,
"taker_fees_dollars": "<string>",
"maker_fees_dollars": "<string>",
"expiration_time": "2023-11-07T05:31:56Z",
"created_time": "2023-11-07T05:31:56Z",
"last_update_time": "2023-11-07T05:31:56Z",
"self_trade_prevention_type": "taker_at_cross",
"order_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancel_order_on_pause": true
},
"reduced_by": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"service": "<string>"
}
}
]
}Endpoint for cancelling up to 20 orders at once. Available to members with advanced access only.
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>",
"order": {
"order_id": "<string>",
"user_id": "<string>",
"client_order_id": "<string>",
"ticker": "<string>",
"side": "yes",
"action": "buy",
"type": "limit",
"status": "resting",
"yes_price": 123,
"no_price": 123,
"yes_price_dollars": "0.5000",
"no_price_dollars": "0.5000",
"fill_count": 123,
"remaining_count": 123,
"initial_count": 123,
"taker_fees": 123,
"maker_fees": 123,
"taker_fill_cost": 123,
"maker_fill_cost": 123,
"taker_fill_cost_dollars": "<string>",
"maker_fill_cost_dollars": "<string>",
"queue_position": 123,
"taker_fees_dollars": "<string>",
"maker_fees_dollars": "<string>",
"expiration_time": "2023-11-07T05:31:56Z",
"created_time": "2023-11-07T05:31:56Z",
"last_update_time": "2023-11-07T05:31:56Z",
"self_trade_prevention_type": "taker_at_cross",
"order_group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cancel_order_on_pause": true
},
"reduced_by": 123,
"error": {
"code": "<string>",
"message": "<string>",
"details": "<string>",
"service": "<string>"
}
}
]
}Your API key ID
RSA-PSS signature of the request
Request timestamp in milliseconds
An array of order IDs to cancel
Batch order cancellation completed
Show child attributes