Documents and the Library
Documents and reports
Section titled “Documents and reports”Every document is generated from the ledger when you ask for it, so it always matches the account’s activity. Reports come as JSON (to build your own views) and most as CSV or PDF too.
| Need | JSON | File |
|---|---|---|
| Statement for a period | GET /v1/accounts/{id}/reports/statement |
?format=csv |
| Cash statement for one currency | GET /v1/accounts/{id}/reports/cash-statement |
…/cash-statement.csv, …/documents/statement.pdf |
| Tax year | GET /v1/accounts/{id}/reports/tax |
?format=csv, …/documents/tax.pdf |
| Annual pack | GET /v1/accounts/{id}/reports/annual |
…/documents/annual.pdf |
| Holdings now | GET /v1/accounts/{id}/positions |
…/documents/holdings.pdf, …/documents/holdings.csv |
| Fees charged | GET /v1/accounts/{id}/fees |
…/documents/fees.pdf |
| Proof of account | …/documents/confirmation.pdf |
|
| One trade | GET /v1/orders/{id}/confirmation.pdf |
|
| One payment or transfer | GET /v1/instructions/{id}/receipt.pdf |
|
| Activity as a file | GET /v1/accounts/{id}/activity |
…/activity.csv, …/activity/report (PDF, CSV, Excel) |
Tax figures are estimates, not tax advice, and say so (estimated: true, notice). A firm key reads the same
documents for portfolios under its mandates.
Accounting exports
Section titled “Accounting exports”The accounting module turns an account’s ledger into a neutral accounting model (one row per event per portfolio) and into files for practice software: spreadsheets, Xero, MYOB, QuickBooks, Sage, Zoho Books, Class Super and BGL Simple Fund 360, and a supporting documents ZIP. See Export to accounting software.
The Library (firms)
Section titled “The Library (firms)”A firm’s Library keeps files: uploads, files given to AgentX in a chat, files AgentX made and research memos. Each
item has a name, folder, tags, type (pdf, image, sheet, doc, text), size, SHA-256, versions and optional
links to a client, an account, a proposal or a strategy. Files are kept in the firm’s own data region (region).
Everyone in the firm reads items that are not linked to a client; items linked to a client are seen only by team members who see that client. The Console API reads the Library: list and search, item details with versions and shares, previews and downloads. Uploading, sharing with clients and deleting happen in Console. Every view and download is audited. See Use the Library.
Endpoints
Section titled “Endpoints”- GET
/v1/accounts/{id}/reports/statementA statement for a period: opening, every movement, closing; ?format=csv for a spreadsheet - GET
/v1/accounts/{id}/reports/taxThe tax year in the account's country: sales lot by lot, and income; ?format=csv - GET
/v1/accounts/{id}/documents/annual.pdfThe annual pack as one PDF: the year's summary, the tax year and the statement - GET
/v1/firms/{firmId}/libraryThe firm's Library: files and AgentX's outputs you can see, and the folders - GET
/v1/firms/{firmId}/library/items/{id}One item with its versions and shares - GET
/v1/firms/{firmId}/library/items/{id}/fileDownload the current version (or versionId); a file kept in a regional store answers with a short-lived address - GET
/v1/firms/{firmId}/library/items/{id}/previewA spreadsheet's first rows, or a document's text, to show in the Library