set_wallet_loss_cap
Add a loss cap to a Hyperliquid wallet, or lower the one it has. If the wallet loses maxLossPct from the balance at the moment the cap is set, FortFi cancels its open orders, closes its positions and blocks new trades on it until the owner resets the cap in the app. An API key can only add or tighten a cap: raising, removing or resetting it needs the owner's passkey in the app. The cap is also measured from when it is set, so set it before trading.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"walletId": "<walletId>",
"maxLossPct": "<maxLossPct>"
},
"name": "set_wallet_loss_cap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| walletId | Yes | hyperliquid-mainnet wallet id | |
| maxLossPct | Yes | Max loss in percent of the balance when set, 1 to 90 (whole numbers) |