cURL
curl --request PUT \ --url https://api.elections.kalshi.com/trade-api/v2/portfolio/subaccounts/netting \ --header 'Content-Type: application/json' \ --header 'KALSHI-ACCESS-KEY: <api-key>' \ --header 'KALSHI-ACCESS-SIGNATURE: <api-key>' \ --header 'KALSHI-ACCESS-TIMESTAMP: <api-key>' \ --data ' { "subaccount_number": 123, "enabled": true } '
{ "code": "<string>", "message": "<string>", "details": "<string>", "service": "<string>" }
Updates the netting enabled setting for a specific subaccount. Use 0 for the primary account, or 1-32 for numbered subaccounts.
Your API key ID
RSA-PSS signature of the request
Request timestamp in milliseconds
Subaccount number (0 for primary, 1-32 for subaccounts).
Whether netting is enabled for this subaccount.
Netting setting updated successfully