Get Income By Currency
get_income_by_currencyCurrency-split income (or expense) totals in ONE compact call: face totals grouped by each transaction currency (e.g. EUR face vs GBP face) PLUS the company functional-currency total for the same set. Use when the user asks "total income in EUR and in GBP", "how much came in in euros vs pounds", "income by currency", or wants face vs converted figures before an FX check. Do NOT page get_transactions to sum — this returns aggregates only (no transaction dump). Defaults to money-in (income); pass direction "out" for spend. Covers bank lines only: invoices and ledger revenue are NOT included, and a company with no bank account returns nothing here, which is not "no income". For income as the books record it, use get_profit_and_loss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | No | Which company to read, by name or id, when the account has more than one (see list_companies). Leave it out to use the only company, or the default. | |
| to_date | No | End date (YYYY-MM-DD), inclusive | |
| direction | No | in = income / money in (default); out = spend / money out | |
| from_date | No | Start date (YYYY-MM-DD), inclusive |