Appearance
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
| Property | Type | Required | Description |
|---|---|---|---|
| pairSymbol | string | Yes | - |
| leverageMultiple | integer (int32) | Yes | - |
| initialMarginFraction | number (double) | Yes | - |
| maintenanceMarginFraction | number (double) | Yes | - |
| autoCloseMarginFraction | number (double) | Yes | - |
| riskLimit | integer (int64) | Yes | - |
| riskLimitCurrency | string | Yes | - |
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