factor_hl_vault_realized_pnl
Calculate realized PnL for a HyperLiquid FACTOR vault by summing closedPnl from closing fills, with gross/net fee totals and coin/dex attribution over optional Unix-ms windows.
Instructions
Realized PnL aggregation over a time window for a HyperLiquid FACTOR vault. Sums closedPnl across closing fills (gross + net of fees), with attribution by coin and by dex. Optional startTime/endTime in unix ms — without a window the call considers all recent fills. HyperEVM (chain 999) only. Read-only.
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": {
"vault": "<vault>"
},
"name": "factor_hl_vault_realized_pnl"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Vault contract address. | |
| endTime | No | Unix ms — latest fill to include (optional). | |
| startTime | No | Unix ms — earliest fill to include (optional). |