get_trading_usage
Read all-time executed volume for the authenticated account and each API key.
Use for accounting, not market history (get_recent_trades) or one receipt
(get_swap_status). Bearer key required; no data package or credits consumed.
Returns available, totals and by_api_key. Successful swaps count once from
confirmed; finalization never adds them again. SOL/USDC amounts are decimal
strings; USD uses build-time prices. available=false means temporary
unavailability, not zero volume. Newly confirmed receipts may appear shortly later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | Aggregation period: all_time. | |
| totals | No | All-time executed account volume and count when available. | |
| message | No | Explanation when statistics are unavailable. | |
| available | Yes | False means statistics are temporarily unavailable, not that volume is zero. | |
| by_api_key | No | Per-key volume buckets. An unused key may have no bucket yet. | |
| counted_from | No | Earliest counted commitment: confirmed; finalization does not add volume again. |