gdex_replay_trade
Replay a Hyperliquid perpetual trade from account records to verify submissions, fills, close reasons, fees, funding, net realized P&L, and whether the position is flat with TP/SL orders cleared.
Instructions
Private, verified replay of a Hyperliquid perp trade from the account's own records: what the agent submitted (local journal), what filled, why it closed (order history), fees incl. the GDEX builder fee, funding, net realized P&L, and whether the position is flat and linked TP/SL orders are gone (fresh reads). Missing data is reported as unknown, never guessed. "Replay my last trade" → latest: true. If several trades match without latest/closeId, returns candidates: ask the user which. Read-only: cannot place or cancel anything.
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": "gdex_replay_trade"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | No | Only trades in this market, e.g. ETH or xyz:TSLA | |
| latest | No | Replay the most recent trade | |
| closeId | No | A specific trade from the candidates list | |
| accountRef | No | From gdex_connect; may be omitted when exactly one account is connected | |
| lookbackDays | No | How far back to read fills (default 30) |