exchange-rates
SKILL.md
Exchange Rate Service
Overview
Complete implementation guide for fetching and using Bitcoin exchange rates from Coinbase API. Includes caching strategies, conversion utilities, and React hooks for displaying rates in wallet UIs.
Core Capabilities:
- Fetch BTC exchange rates from Coinbase API
- Module-level caching to reduce API calls
- Convert between BTC, sats, and fiat currencies
- React hooks for real-time rate display
- Error handling with stale cache fallback
- Support for all major fiat currencies
Key Architecture Pattern: Module-level cache with configurable duration prevents excessive API calls while ensuring fresh data.
Prerequisites
No additional packages required - Uses native fetch API.