curl --request PUT \
--url 'https://api.sandbox.services.payward.com/v1/accounts/WVSD33HRMGSZUBM7/leverage-settings/perpetual/PF_ETHUSD' \
--header "API-Key: $PWS_API_KEY" \
--header "API-Timestamp: $PWS_API_TIMESTAMP" \
--header "API-Sign: $PWS_API_SIGN" \
--header 'Content-Type: application/json' \
--data '{"max_leverage":"5.25"}'Set leverage settings
Available only for the International/EEA offering.
A request for a user of the US offering returns 403 with the code forbidden and a cause on account_id: “Leverage settings are not supported for this offering.”
Set the maximum leverage for an instrument in a specific account.
For each open position’s current effective leverage, see effective_leverage in List open positions.
Changing leverage, including switching between isolated and cross margin, recalculates the margin required for existing positions and open orders.
For the user’s leverage limit, see max_leverage in Get user instrument or List user instruments. A setting within this limit may still be rejected by margin or risk checks.
For an explanation of isolated and cross margin, see Managing margin & liquidations in Multi-M trading.
curl --request PUT \
--url 'https://api.sandbox.services.payward.com/v1/accounts/WVSD33HRMGSZUBM7/leverage-settings/perpetual/PF_ETHUSD' \
--header "API-Key: $PWS_API_KEY" \
--header "API-Timestamp: $PWS_API_TIMESTAMP" \
--header "API-Sign: $PWS_API_SIGN" \
--header 'Content-Type: application/json' \
--data '{"max_leverage":"5.25"}'Authorizations
Path Parameters
Body
Response
The leverage settings were updated.