Skip to content

feat: Add IDR Rate Aggregator with Frankfurter API and Strategy Pattern#218

Open
thasyalarasuci wants to merge 5 commits into
allobankdev:mainfrom
thasyalarasuci:feat/idr-rate-aggregator
Open

feat: Add IDR Rate Aggregator with Frankfurter API and Strategy Pattern#218
thasyalarasuci wants to merge 5 commits into
allobankdev:mainfrom
thasyalarasuci:feat/idr-rate-aggregator

Conversation

@thasyalarasuci
Copy link
Copy Markdown

Integrates Frankfurter API for latest IDR rates, historical IDR→USD, and supported currencies.
Uses Strategy Pattern for clean and extensible resource handling without conditional logic.
All data is loaded once at application startup and stored in a thread-safe immutable in-memory cache (no external API calls on request).
Exposes a single REST endpoint: /api/finance/data/{resourceType}.
Personalizes USD spread factor using GitHub username (thasyalarasuci).
Includes proper error handling for external API failures and unit tests using Mockito.
Follows clean architecture principles, separation of concerns, and all assignment requirements.

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