Set position tracking
set_position_trackingChange Track all positions for YOUR account (requires api:account). Exactly one mode. track_all (true | false): turn the standing toggle on or off; on opens a Gambit on every held, trackable position that has none (up to the cap of 50) and answers the counts in sync (created, already_tracked, excluded, untrackable, capped), or sync null while automatic opening is switched off server-side; off stops nothing — the Gambits it opened stay. subject_id with tracked: true adds one position (it must be held; opens its Gambit or restores an archived one; 409 position_tracking_cap with cap at the limit; 404 position_not_held; 422 position_not_trackable when Hyperliquid does not list it); tracked: false removes it: every live Gambit on the asset is archived (restorable for 3 days with restore_gambit) and Track all positions never re-adds it until you add it again. Take subject_id from get_position_tracking. Confirm with the user before removing a position's Gambit. This places no order.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_position_tracking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracked | No | with subject_id: true adds it, false removes it (archives its Gambit) | |
| track_all | No | turn Track all positions on (true) or off (false); not with subject_id | |
| subject_id | No | a held asset's subject_id from get_position_tracking, e.g. asset:equity:AAPL; with tracked |