Prepare a leverage update
Authorizations
apikeystringRequired
API key for authentication
Body
Prepare a leverage/margin-mode update.
wallet_addressstringRequiredExample:
Wallet address on Hyperliquid
0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045coinstringRequiredExample:
Asset symbol
BTCleverageinteger · min: 1 · max: 200RequiredExample:
Leverage multiplier. The accepted maximum is per asset — read max_leverage from /api/v1/perp/meta, since a higher value is rejected by the exchange even when it passes this range check.
5is_crossbooleanOptionalDefault:
True for cross margin (the account's whole margin backs the position), false for isolated margin (only the margin committed to that position)
trueExample: trueResponses
200
Successful Response
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
422
Unprocessable Content
application/json
429
Too Many Requests
application/json
500
Internal Server Error
application/json
502
Bad Gateway
application/json
503
Service Unavailable
application/json
504
Gateway Timeout
application/json
post/api/v1/perp/leverage
Last updated
Was this helpful?