adjust_position
Adjust the size of an existing Pear Protocol position by specifying a percentage reduction or increase, with immediate market or limit execution.
Instructions
Reduce or increase an existing Pear Protocol position's size by 1-100 percent. executionType: MARKET (immediate) or LIMIT (provide limitRatio). WRITE: changes exposure on a real trade. Requires PEAR_TRADE_ENABLED=true.
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>",
"adjustmentType": "<adjustmentType>",
"adjustmentSize": "<adjustmentSize>",
"executionType": "<executionType>"
},
"name": "adjust_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| positionId | Yes | ||
| adjustmentType | Yes | ||
| adjustmentSize | Yes | ||
| executionType | Yes | ||
| limitRatio | No | ||
| referralCode | No |