Skip to content

Update Python SDK queries#33

Open
fragment-pr-bot[bot] wants to merge 3 commits intodevfrom
update-sdk-queries/23762889756
Open

Update Python SDK queries#33
fragment-pr-bot[bot] wants to merge 3 commits intodevfrom
update-sdk-queries/23762889756

Conversation

@fragment-pr-bot
Copy link
Copy Markdown
Contributor

@fragment-pr-bot fragment-pr-bot bot commented Mar 30, 2026

This PR is auto-generated by github action.

Changes in this version

  • GetLedgerAccountBalance now returns total balance (self + children) instead of ownBalance.
  • GetLedgerAccountBalanceWithChildRollup has been removed.
  • ListLedgerAccountBalances and ListMultiCurrencyLedgerAccountBalances now accept consistencyMode on childBalance, childBalances, balance, and balances fields.

How to Upgrade

  1. Upgrade your schema to use total balance consistency.
  2. Edit your schema JSON. Change ownBalanceUpdates to totalBalanceUpdates in a ledger account's consistency config.
  3. Change ownBalance to totalBalance in entry conditions.
  4. Ensure the schema has only one of ownBalanceUpdates or totalBalanceUpdates.
  5. Deploy the new schema.
  6. You can now set consistencyConfig.totalBalanceUpdates: strong on any account in the tree, and its balance will be strongly consistent.
  7. Upgrade your Fragment SDK to the latest version.
  8. GetLedgerAccountBalance now returns total balance (self + children) instead of ownBalance.
  9. Change $ownBalanceConsistencyMode to $balanceConsistencyMode.
  10. Use GetLedgerAccountBalance instead of GetLedgerAccountBalanceWithChildRollup.

snoble and others added 3 commits March 30, 2026 19:14
Mark the query update as a major semver change so the release matches the breaking API surface.

Made-with: Cursor
Document the breaking SDK changes and upgrade path so the release notes ship with the package.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants