For the complete documentation index, see llms.txt. This page is also available as Markdown.

updateLeverage

Request Body

action.type: updateLeverage action.asset: number action.isCross: Boolean action.leverage: number nonce: timestamp(ms) signature: EIP-712 object

Returns

Status confirming leverage update.

Example

// Request
curl https://hyperliquid.blockpi.network/v1/exchange/your-api-key -X POST -H "Content-Type: application/json" --data '{"action":{"type":"updateLeverage"},"nonce":1720000000000,"signature":{}}'

// Result
{"status":"ok","response":{"type":"updateLeverage","data":{}}}

Was this helpful?