Skip to main content
POST
/
portfolio
/
order_groups
/
create
Create Order Group
curl --request POST \
  --url https://api.elections.kalshi.com/trade-api/v2/portfolio/order_groups/create \
  --header 'Content-Type: application/json' \
  --header 'KALSHI-ACCESS-KEY: <api-key>' \
  --header 'KALSHI-ACCESS-SIGNATURE: <api-key>' \
  --header 'KALSHI-ACCESS-TIMESTAMP: <api-key>' \
  --data '{
  "contracts_limit": 2
}'
{
  "order_group_id": "<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
contracts_limit
integer
required

Specifies the maximum number of contracts that can be matched within this group.

Required range: x >= 1

Response

Order group created successfully

order_group_id
string

The unique identifier for the created order group

I