Skip to content
P-03
  • BACKEND
  • FINTECH

FinStack

Credit-card reward optimisation from bank statements

YEAR
2026
STATUS
LOCAL BUILD
Bank statement parsers
4
Merchant mappings
450+
Cards compared
6
Tests passing
49

[01] Overview

A reward optimisation engine that parses bank statements, categorises transactions, calculates rewards across multiple cards and recommends which card to use to maximise cashback and points.

[02] Architecture

FIG. P-03 Architecture

[03] Reward engine

  • Composable pipeline stages: rule matching, per-rule cap enforcement (monthly, quarterly, annual), reward composition and aggregation.
  • Composition modes: exclusive (highest-priority rule), additive (rules stack) and multiplicative.
  • Milestones and tiers, multi-card allocation simulation, and annual projections with break-even analysis.

[04] Security

  • Statements processed in memory and never stored.
  • Fernet encryption for transaction data, JWT authentication, per-endpoint rate limits and audit logging.

[05] Design

Pipeline, strategy, repository and adapter patterns with dependency injection, so bank parsers and rule evaluators are pluggable and testable.

  • Python
  • FastAPI
  • PostgreSQL
  • SQLAlchemy
  • pdfplumber
  • pytest
P-02 ICD-11 Note CoderP-04 ScanHub