POST
/
portfolio
/
orders
/
batched
Batch Create Orders
curl --request POST \
  --url https://api.elections.kalshi.com/trade-api/v2/portfolio/orders/batched \
  --header 'Content-Type: application/json' \
  --data '{
  "orders": [
    {
      "action": "buy",
      "buy_max_cost": 123,
      "client_order_id": "<string>",
      "count": 123,
      "expiration_ts": 123,
      "no_price": 50,
      "no_price_dollars": "0.2300",
      "order_group_id": "<string>",
      "post_only": true,
      "self_trade_prevention_type": "<string>",
      "sell_position_capped": true,
      "sell_position_floor": 123,
      "side": "yes",
      "ticker": "<string>",
      "time_in_force": "fill_or_kill",
      "type": "limit",
      "yes_price": 50,
      "yes_price_dollars": "0.2300"
    }
  ]
}'
{
  "orders": [
    {
      "client_order_id": "<string>",
      "error": {
        "code": "<string>",
        "details": "<string>",
        "message": "<string>",
        "service": "<string>"
      },
      "order": {
        "action": "<string>",
        "client_order_id": "<string>",
        "created_time": "<any>",
        "expiration_time": "<any>",
        "no_price": 123,
        "no_price_dollars": "0.2300",
        "order_group_id": "<string>",
        "order_id": "<string>",
        "self_trade_prevention_type": "<string>",
        "side": "<string>",
        "status": "<string>",
        "ticker": "<string>",
        "type": "<string>",
        "user_id": "<string>",
        "yes_price": 123,
        "yes_price_dollars": "0.2300"
      }
    }
  ]
}

Body

application/json

Response

201 - application/json

The response is of type object.