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,
  "contracts_limit_fp": "10.00"
}
'
{
  "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<int64>

Specifies the maximum number of contracts that can be matched within this group over a rolling 15-second window. Whole contracts only. Provide contracts_limit or contracts_limit_fp; if both provided they must match.

Required range: x >= 1
contracts_limit_fp
string | null

String representation of the maximum number of contracts that can be matched within this group over a rolling 15-second window (whole contracts only). Provide contracts_limit or contracts_limit_fp; if both provided they must match.

Example:

"10.00"

Response

Order group created successfully

order_group_id
string
required

The unique identifier for the created order group