reconcile_perp_order
Reconcile ONE Hyperliquid order from direct venue evidence (order status plus user fills) and record it durably. Signs nothing, submits nothing, and is idempotent: replaying it re-records the same evidence instead of double counting fills. Execution is never inferred from portfolio or balance deltas. Call this after any order whose final state is unknown, and after cancel_perp_order reports accepted.
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": {
"agentAddress": "<agentAddress>",
"coin": "<coin>",
"orderId": "<orderId>"
},
"name": "reconcile_perp_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Hyperliquid market symbol, for example ETH. | |
| orderId | Yes | Venue order id to reconcile. Reconcile one order id at a time. | |
| intentHash | No | Optional lowercase 32-byte hex intent hash from the original preparation, when known. | |
| agentAddress | Yes | Recovered/verified L1 signer address that owns the order context. | |
| accountAddress | No | Venue-verified equity owner (master/subaccount) when agentAddress is a delegated API wallet. | |
| controlActionId | No | Optional control-action id when reconciling a cancellation or protective order. |