This endpoint adds an assignment program preference
curl --request POST \
--url https://futures.kraken.com/derivatives/api/v3/assignmentprogram/add \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"id": 123,
"participant": {
"contractType": "flex",
"contract": "PF_BTCUSD",
"maxPosition": 10,
"maxSize": 10,
"acceptLong": true,
"acceptShort": true,
"timeFrame": "weekdays",
"enabled": true
},
"result": "success",
"serverTime": "2020-08-27T17:03:33.196Z"
}Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
General API key with at least read-only access
Authentication string
Type of contract for the assignment program preference. Options can be found in the 'accounts' structure in the Get Wallets /accounts response
A specific contract for this assignment program preference. Required for "flex" contracts if base/quote currencies are not included.
The maximum size for an assignment
The maximum position
Accept to take long positions
Accept to take short positions
When is the program preference valid
enabled assignment
Show child attributes
{
"contractType": "flex",
"contract": "PF_BTCUSD",
"maxPosition": 10,
"maxSize": 10,
"acceptLong": true,
"acceptShort": true,
"timeFrame": "weekdays",
"enabled": true
}success "success"
Server time in Coordinated Universal Time (UTC)
"2020-08-27T17:03:33.196Z"
curl --request POST \
--url https://futures.kraken.com/derivatives/api/v3/assignmentprogram/add \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"id": 123,
"participant": {
"contractType": "flex",
"contract": "PF_BTCUSD",
"maxPosition": 10,
"maxSize": 10,
"acceptLong": true,
"acceptShort": true,
"timeFrame": "weekdays",
"enabled": true
},
"result": "success",
"serverTime": "2020-08-27T17:03:33.196Z"
}