cURL
curl --request POST \ --url https://api.elections.kalshi.com/trade-api/v2/portfolio/order_groups/create \ --header 'Content-Type: application/json' \ --data '{ "contracts_limit": 123 }'
{ "order_group_id": "<string>" }
Creates a new order group with a contracts limit. When the limit is hit, all orders in the group are cancelled and no new orders can be placed until reset.
The response is of type object.
object