Close or notify later, while you are away
close_or_notify_laterUse whenever the user wants something done later on a held position: "close it if still open in 3 days", "tell me if its funding passes 50% a year", "close half below 94000". TradeHub keeps watching after this session ends; you cannot schedule checks yourself. Up to 5 rules, each fires once and either notifies the person or closes part of the position reduce-only. Not a stop-loss. A new plan replaces the old; rules=[] removes it. Next: get_my_positions.
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": {
"symbol": "<symbol>",
"rules": "<rules>"
},
"name": "close_or_notify_later"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Up to 5 rules, each fires once; [] removes the plan | |
| venue | No | Venue: sandbox, hyperliquid, okx, bybit or binance. Omitted: the agent's only venue, else hyperliquid if connected, else your only connected exchange, else the sandbox | |
| symbol | Yes | Base coin, e.g. BTC | |
| thesis | No | Why the position is open and what would prove it wrong, for the next session to read back; seen only by you and the person |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when the plan is stored | |
| plan | Yes | The plan now on the position; null after rules=[] | |
| venue | Yes | Venue name | |
| symbol | Yes | Base coin | |
| mark_price | Yes | Mark when the plan was set, USD per coin | |
| deprecation | No | Present only while this tool is deprecated: replacement, removal_date, changelog |