list_accounts
Retrieve a paginated, read-only account list filtered by group, code, status, block reason, positions, P&L, and trading connection; sort and page results to inspect account access and blocks.
Instructions
Return one page of accounts; each row is the account row of the REST account list, its block joined with its group's. Read-only - no secrets, no order-flow control. Filters: group (exact group code; an empty string selects accounts in no group), code (code or title) and blockReason (text match), status (active | blocked), position (open-position count range), pnl (P&L bounds in pnl.currency) with includeUnsetPnl and includeHaltedPnl; venue is the trading-connection filter: mode any (through at least one trading connection), none (through no connection) or connection (through the connection whose id is in connection). Sort columns: blockReason, code, group, positionCount, status, title, venueAccess. Paging: limit rows per page (default 50, capped at 500) and a 1-based page; total counts the matching rows before paging. An invalid value fails with a validation error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pnl | No | P&L bounds in one currency | |
| code | No | Account code or title match | |
| page | No | 1-based page number, default 1 | |
| sort | No | Sort order | |
| group | No | Exact group code; an empty string selects accounts in no group; omitted = any group | |
| limit | No | Rows per page, default 50, capped at 500 | |
| venue | No | Trading-connection filter on the account's own grants and its group's | |
| status | No | Effective block state: active | blocked; omitted = both | |
| position | No | Open-position count range | |
| blockReason | No | Effective block reason match | |
| includeUnsetPnl | No | Also keep accounts with no P&L yet; needs pnl.currency | |
| includeHaltedPnl | No | Also keep accounts whose P&L is halted; needs pnl.currency |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | ||
| accounts | Yes |