You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context: MarketX aims for global reach, meaning a buyer in London may want to see prices in GBP even if the seller is in New York listing in USD.
Problem: Prices are currently hardcoded to a single currency, alienating international customers.
Acceptance Criteria:
Standardize all database prices to USD at the "source of truth" layer.
Integrate a real-time exchange rate API (like Fixer.io or Frankfurter).
Build a @Cron() job that fetches and updates exchange rates in Redis every 4 hours.
Develop a CurrencyInterceptor or Service that dynamically converts prices in the API response based on an X-Currency header or user profile preference.
@Cron()job that fetches and updates exchange rates in Redis every 4 hours.CurrencyInterceptoror Service that dynamically converts prices in the API response based on anX-Currencyheader or user profile preference.