Headers
Body
application/json
Limit: 5 requests per 60 second per user
POST /v1/client/leverage
Allow users to customize leverage for each symbol or choose maximum leverage for account’s futures mode.
Validation Logic:
Check the leverage range is eligible
Check if the position notional under the updated leverage is acceptable
max_notional = (1 / (symbol_leverage * imr_factor)) ^ (1/0.8)
symbol_leverage_max = round down to int → min(1 / (imr_factor * notional ^ 0.8), 1/base_imr)
Check if the margin is enough