This repository was archived by the owner on Jun 19, 2026. It is now read-only.
[Bounty $500] Bank Sync Connector Architecture — pluggable bank integrations - #1057
Open
zhangyei1976-dotcom wants to merge 8 commits into
Open
zhangyei1976-dotcom wants to merge 8 commits into
zhangyei1976-dotcom wants to merge 8 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bank Sync Connector Architecture — Issue #75
Implements a pluggable bank integration system for FinMind.
Architecture
Connector Interface (
base.py)BankConnector— Abstract base class with three required methods:fetch_transactions(user_id, from_date, to_date, **credentials)→list[BankTransaction]refresh_connection(**credentials)→boolget_connection_status()→dictBankTransaction— Normalized dataclass withto_expense_dict()for DB insertionMock Connector (
mock.py)Connector Manager (
manager.py)register(connector)/unregister(name)— dynamic connector registryimport_transactions(name, user_id, ...)— fetch + normalizerefresh(name, user_id, ...)— verify connection + re-importget_connector_manager()API Routes (
routes/connectors.py)GET /api/connectors/— list all registered connectorsGET /api/connectors/<name>/status— connection healthPOST /api/connectors/<name>/import— import transactionsPOST /api/connectors/<name>/refresh— refresh + re-importAdding a Real Bank
Closes #75