Skip to content

feat(account): add fetchAccountBalance for GET /accounts/{id}/balance - #180

Open
MrNinso wants to merge 1 commit into
pluggyai:masterfrom
MrNinso:master
Open

MrNinso wants to merge 1 commit into
pluggyai:masterfrom
MrNinso:master

Conversation

@MrNinso

@MrNinso MrNinso commented Sep 21, 2026 •

Copy link
Copy Markdown

Adds support for the real-time account balance endpoint GET /accounts/{id}/balance, returning the AccountBalance model (balance, optional blockedBalance/automaticallyInvestedBalance, currencyCode, updateDateTime).

  • New AccountBalance type in src/types/account.ts
  • fetchAccountBalance(id) method on PluggyClient, reusing the existing createGetRequest / auth / error-handling path
  • Unit tests covering full and minimal responses plus error propagation

🤖 Generated with Claude Code

Adds support for the real-time account balance endpoint
GET /accounts/{id}/balance, returning the AccountBalance model
(balance, optional blockedBalance/automaticallyInvestedBalance,
currencyCode, updateDateTime).

- New AccountBalance type in src/types/account.ts
- fetchAccountBalance(id) method on PluggyClient, reusing the
  existing createGetRequest / auth / error-handling path
- Unit tests covering full and minimal responses plus error propagation

Co-Authored-By: Claude Code <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

1 participant