The PNL currency preference is used to determine which currency to pay out when realizing PNL gains. Calling this API can result in the following error codes:
87: Contract does not exist
88: Contract not a multi-collateral futures contract
89: Currency does not exist
90: Currency is not enabled for multi-collateral futures
41: Would cause liquidation
curl --request PUT \
--url https://futures.kraken.com/derivatives/api/v3/pnlpreferences \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"serverTime": "2022-06-28T14:48:58.711Z"
}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 full access
Authentication string
The symbol for the PnL preference.
The asset in which profit will be realised for the specific symbol.
curl --request PUT \
--url https://futures.kraken.com/derivatives/api/v3/pnlpreferences \
--header 'APIKey: <api-key>' \
--header 'Authent: <api-key>'{
"result": "success",
"serverTime": "2022-06-28T14:48:58.711Z"
}