Model independent financial participants
Connect independently operated institutions through the versioned finsim/v1 HTTP contract while each participant retains ownership of its own account state.
Connect independent financial services over finsim/v1, inject timeouts and duplicate deliveries, and watch distributed payments reconcile safely.
bank-b credited $100.00, then its response dropped. FinSim isolates the transfer in UNKNOWN and blocks naive retries with 409 RECONCILIATION_REQUIRED.
A successful payment proves services can communicate. A failed payment tests whether the network can recover without losing money, duplicating credits, or guessing.
Connect independently operated institutions through the versioned finsim/v1 HTTP contract while each participant retains ownership of its own account state.
Experiment with controlled DELAY, TIMEOUT, DUPLICATE_DELIVERY, and RESPONSE_LOST_AFTER_PROCESSING rules, plus replayable finsim/scenario/v1 fixtures.
A timeout never proves a payment failed. FinSim isolates uncertain transactions in UNKNOWN, blocks unsafe retries with 409 RECONCILIATION_REQUIRED, and resolves outcomes forward through ADR 0001.
Inspect state transitions, participant calls, injected faults, and recovery queries through structured execution traces and the Simulation Cockpit.
Step through a $100 transfer from bank-a to bank-b to see how ADR 0001 resolves an ambiguous timeout without creating a duplicate credit.
FinSim submits the DEBIT leg to bank-a via POST /finsim/v1/payments with an Idempotency-Key. bank-a deducts $100.00 and returns 201 Created (200 OK on replay).
POST /finsim/v1/payments
Idempotency-Key: idem-9f2a-debit
{ "direction": "DEBIT", "accountReference": "acct-a-001", "money": { "amount": "100.00", "currency": "USD" }, "reference": "tx_9f2a", "provenance": "SYNTHETIC" }
-> 201 Created { "transactionId": "tx_9f2a", "direction": "DEBIT", "status": "COMPLETED", "provenance": "SYNTHETIC" }A timeout is not proof of failure. Establish the outcome before deciding what happens next.
Explore UNKNOWN ReconciliationImplement the four versioned finsim/v1 endpoints in any language and check conformance with finsim verify --url.
| Repository path | samples/bank-java/ |
| Stack | Java 21, Spring Boot |
| Runtime wiring | Default bank-a (:9001) and bank-b (:9002) in docker compose up |
| Authoritative spec | contract/finsim-v1.openapi.yaml |
finsim verify --url http://localhost:9001# Four required finsim/v1 participant endpoints
GET /finsim/v1/institution/health
GET /finsim/v1/institution/capabilities
POST /finsim/v1/payments # direction: "DEBIT" | "CREDIT"
GET /finsim/v1/payments/{transactionId}?leg=DEBIT|CREDIT
# Every simulated institution and balance carries:
"provenance": "SYNTHETIC"Run the Milestone 1 Simulation Cockpit (web/) with zero backend dependencies in Demo Mode, or toggle to Live API against Docker Compose.
| Stage | Participant | Offset | Span | Outcome |
|---|---|---|---|---|
| TRANSFER_ACCEPTED | FinSim Core | +0 ms | ACCEPTED | |
| DEBIT_REQUEST | bank-a | +14 ms | 200 OK | |
| CREDIT_REQUEST | bank-b | +38 ms | RESPONSE_LOST -> UNKNOWN | |
| RESOLVE_QUERY | bank-b | +92 ms | COMPLETED |
Experiment with idempotency, timeouts, duplicate deliveries, and reconciliation without touching production payment rails.
Teach distributed systems through financial transaction lifecycles, independent services, and reproducible lab exercises.
Study consistency, failure recovery, and deterministic scenario replay using synthetic data.
Build participant implementations, simulation modules, property-based tests, and declarative scenarios.
FinSim is Apache 2.0 open source. It does not move real money, connect to live banking rails, or certify regulatory compliance. Every simulated institution, account, and balance carries "provenance": "SYNTHETIC".
{
"project": "FinSim",
"license": "Apache-2.0",
"provenance": "SYNTHETIC",
"liveBankingRails": false
}