get_history
Retrieve an account's ledger records (fills, funding, deposits, withdrawals, or transfers) for PnL review and audits, filtered by coin and time window.
Instructions
Get the account's ledger, one kind per call. kind=fills (default): executed trades with price, size, side, fee and closed PnL, the latest fills by default, narrowed by coin and limit; start_time and end_time cut a time window (for another wallet, within its newest 2000 fills, the venue's cap). kind=funding: funding paid or received per coin between start_time and end_time. kind=deposits, withdrawals or transfers: money in, out and between perp, spot, sub-accounts and vaults since start_time; withdrawal_id checks one withdrawal's settlement. pathiel cannot move funds (its API wallet can trade, never withdraw), so these are records only. address reads any wallet. Rows come oldest first; limit (default 100, max 2000) keeps the newest. Use for PnL review and audits; for resting or cancelled orders use get_orders. Needs a configured account or an address; with neither it returns {error, no_account: true}. Returns {count, fills[]} for fills and {count, rows[]} for the other kinds.
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": "get_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | No | kind=fills or funding: only this coin. | |
| kind | No | Which ledger. | fills |
| limit | No | Most rows to return. | |
| address | No | Any 0x address to read instead of the configured account (read-only; needs no key). | |
| end_time | No | Until this time (fills and funding). Unix time in milliseconds. | |
| start_time | No | From this time. Unix time in milliseconds. | |
| withdrawal_id | No | kind=withdrawals: the tx hash of one withdrawal to check. |