Skip to content

Leverage settings updated

SEND Server to Client on wss://api.valr.com/ws/account

Sent when the leverage settings for a futures pair have been updated. Includes the new leverage multiple, margin fractions, and risk limit.

Authentication

This operation requires API key authentication (HMAC-SHA512 via query parameters or in-band AUTHENTICATE message).

Message

Event type: LEVERAGE_UPDATED

Payload Schema

PropertyTypeRequiredDescription
pairSymbolstringYes-
leverageMultipleinteger (int32)Yes-
initialMarginFractionnumber (double)Yes-
maintenanceMarginFractionnumber (double)Yes-
autoCloseMarginFractionnumber (double)Yes-
riskLimitinteger (int64)Yes-
riskLimitCurrencystringYes-

Example

json
"{\n    \"type\": \"LEVERAGE_UPDATED\",\n    \"data\": {\n        \"pairSymbol\": \"BTCUSDTPERP\",\n        \"leverageMultiple\": 25,\n        \"initialMarginFraction\": 0.04,\n        \"maintenanceMarginFraction\": 0.0125,\n        \"autoCloseMarginFraction\": 0.0083,\n        \"riskLimit\": 250000,\n        \"riskLimitCurrency\": \"USDT\"\n    }\n}"

Channel

Channel: account Address: wss://api.valr.com/ws/account