increase_collateral
Add more collateral to an open position to lower liquidation risk and prevent forced closure.
Instructions
Add more collateral to an existing position to reduce liquidation risk. Requires PRIVATE_KEY in .env.
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": {
"positionId": "<positionId>",
"amount": "<amount>",
"marketIndex": "<marketIndex>"
},
"name": "increase_collateral"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Collateral amount to add (raw integer with token decimals) | |
| positionId | Yes | The position ID to add collateral to | |
| marketIndex | Yes | The market index the position belongs to. Use get_positions to find the marketIndex for each position. |