MoneyHub.SpendingAnalysis (MoneyHub v1.0.0)

Copy Markdown View Source

Aggregated spending and income statistics over arbitrary date ranges, grouped by category - useful for "this month vs last month" comparisons without manually summing transactions client-side.

See Spending and Income Analysis.

Summary

Functions

Fetches aggregated spending/income stats for the given date range.

Functions

get(config, token, opts)

@spec get(MoneyHub.Config.t(), String.t(), keyword()) ::
  {:ok, map()} | {:error, MoneyHub.Error.t()}

Fetches aggregated spending/income stats for the given date range.

Options

  • :from_date / :to_date - required, ISO 8601 date strings.
  • :account_id - restrict the analysis to a single account.
  • :category_type - :personal (default) or :business.