feat: replace unofficial currency API with official Central Bank APIs#47
Merged
feat: replace unofficial currency API with official Central Bank APIs#47
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #43
Replace fawazahmed0/currency-api with official Central Bank APIs: - European Central Bank (ECB) via frankfurter.dev for most currencies - Central Bank of Russia (CBR) via cbr.ru for RUB rates Changes: - Update currency_api.rs to use Frankfurter API (ECB data) - Update all source references from fawazahmed0 to official sources - Add GitHub Actions workflow for weekly automated rate updates - Update EUR-CNY rate to use ECB source - Update documentation and tests Fixes #43 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit 537b087.
Contributor
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Replace the unofficial
fawazahmed0/currency-apiwith official Central Bank APIs:This ensures all exchange rate data comes from trusted, official sources with known data provenance.
Changes
API Migration
currency_api.rsto use the Frankfurter API (which sources data from ECB)fawazahmed0/currency-apitofrankfurter.dev (ECB)orcbr.ru (Central Bank of Russia)Automated Rate Updates
.github/workflows/update-currency-rates.yml)[skip ci]flagUpdated Files
src/currency_api.rs- New API implementationsrc/lib.rs- Updated doc commentssrc/types/currency.rs- Updated source examples in docssrc/wasm.rs- Updated test expectationstests/integration_test.rs- Updated test assertionsdata/currency/eur-cny.lino- Fixed source attributionweb/src/App.tsx- Updated footer source textweb/e2e/calculator.spec.ts- Updated commentdocs/case-studies/issue-18/README.md- Added note about API changeTest Plan
cargo test --all-features)cargo clippy --all-targets --all-features)cargo fmt --check)node scripts/check-file-size.mjs)Notes
.linofiles already use ECB/CBR sourcesFixes #43
🤖 Generated with Claude Code