Skip to main content
UWSuws.kraken.com/v2/privateset_preference
Use set_preference to change the authenticated account’s preferences. Each preference is supplied in its own object within params. Currently, leverage_mode is the supported preference and applies to derivatives markets. Send a numeric max_leverage to set fixed leverage, or explicitly send null to restore cross margin. The permitted leverage depends on the market’s margin schedule and the account’s position and available margin. A requested change can be rejected if it exceeds the permitted leverage, leaves insufficient margin, or would cause liquidation.
string
required
Value: set_preference
object
required
integer
Optional client request identifier echoed in the response. Must be a non-negative integer less than 18446744073709551616.

Examples

Errors

A rejected change returns success: false and an error string. Leverage-specific errors include:
  • Leverage exceeds the market's margin schedule
  • Leverage change would cause liquidation
  • Insufficient margin for the requested leverage
  • Leverage is outside the permitted range for this market
  • Leverage change rejected
Unknown markets return Unknown 'params.leverage_mode.symbol'. Authentication, maintenance, rate limits, or temporary exchange unavailability can also prevent a change.