A 2025#

a. 2025-01

#

Batch historical balance queries

The LedgerAccount type now exposes balancesDuring and balanceChangesDuring fields for efficiently querying multiple historical balances. These can be used to display portfolio charts or generate trial balance reports.

Get monthly balances for a year
query GetBalanceHistory(
  $ledgerAccount: LedgerAccountMatchInput!
) {
  ledgerAccount(ledgerAccount: $ledgerAccount) {
    # Get monthly balances for a year
    yearlyBalances: balancesDuring(
      startTime: "2021"
      duration: 12
      granularity: monthly
    ) {
      startTime
      endTime
      granularity
      nodes {
        at
        amount {
          currency {
            code
          }
          amount
        }
      }
    }
  }
}

Learn more in the documentation.

Small Improvements

  • Started enforcing that static parameters in the Schema cannot have an empty string key or value