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' \
  --data '{
  "ids": [
    "<string>"
  ]
}'
{
  "orders": [
    {
      "error": {
        "code": "<string>",
        "details": "<string>",
        "message": "<string>",
        "service": "<string>"
      },
      "order": {
        "action": "<string>",
        "client_order_id": "<string>",
        "created_time": "<any>",
        "expiration_time": "<any>",
        "fill_count": 123,
        "initial_count": 123,
        "last_update_time": "<any>",
        "maker_fees": 123,
        "maker_fill_cost": 123,
        "no_price": 123,
        "order_group_id": "<string>",
        "order_id": "<string>",
        "queue_position": 123,
        "remaining_count": 123,
        "self_trade_prevention_type": "<string>",
        "side": "<string>",
        "status": "<string>",
        "taker_fees": 123,
        "taker_fill_cost": 123,
        "ticker": "<string>",
        "type": "<string>",
        "user_id": "<string>",
        "yes_price": 123
      },
      "order_id": "<string>",
      "reduced_by": 123
    }
  ]
}

Body

application/json

Response

200 - application/json

The response is of type object.