Set stop and target
set_stop_targetSets the stop and/or target in force on the open position, as the stop/target form on the page does. Sent without preview_id, it changes nothing and returns a preview of the change with a preview_id; sent again with the same arguments and that preview_id, it makes the change.
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": {
"market": "<market>",
"ticker": "<ticker>"
},
"name": "set_stop_target"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | No | Stop price; null clears it. | |
| market | Yes | hk = Hong Kong, us = United States, cn = China A-shares. | |
| target | No | Target price; null clears it. | |
| ticker | Yes | For example 0700.HK or 700 (hk), AAPL (us), 600519.SS or 600519 (cn). | |
| preview_id | No | The preview_id that the same call without it returned. Without it, nothing is changed. |