Set the leverage for a specific market on Hyperliquid.
cURL
curl --request POST \ --url https://api.example.com/v1/perps/hyperliquid/leverage \ --header 'Content-Type: application/json' \ --data ' { "symbol": "<string>", "leverage": 123, "wallet": "<string>", "signature": "<string>", "nonce": 123 } '
POST /exchange
updateLeverage
curl -X POST -H "X-API-Key: $API_KEY" \ -H "Content-Type: application/json" \ https://api.perps.studio/v1/perps/hyperliquid/leverage \ -d '{ "symbol": "BTC", "leverage": 10, "wallet": "0x1234...", "signature": "0xabcdef...", "nonce": 1712000000000 }'
MAX_LEVERAGE_EXCEEDED