currencyapi
CurrencyAPI Module for Drupal
Real-Time Exchange Rates with Custom Markup Capabilities
The CurrencyAPI module seamlessly integrates Drupal with currencyapi.com, providing real-time currency exchange rate data with a unique business advantage: the ability to expose custom exchange rate markups to customers (e.g., for FX fees or profit margins). Ideal for financial services, e-commerce, and multi-currency platforms.
Key Features
- Earnings via Dynamic Exchange Rate Tables with Custom Markup
- Apply fixed fees, percentage-based markups, or blended rates to buy/sell prices.
- Display customer-facing rate tables with your adjusted values (via Views, blocks, or templates).
- Enterprise-Grade API Integration
- Fetch real-time or historical rates via currencyapi.com’s REST API (JSON).
- Supports 150+ currencies with optional crypto/fiat pairs.
- Automated & Efficient
- Scheduled rate updates (cron-driven) with configurable intervals.
- Smart caching to reduce API calls and ensure performance.
- Flexible Display Options
- Embed rates anywhere: product pages, checkout flows, or financial dashboards.
- Customize formatting (decimals, rounding) and currency groupings.
- No Dependencies
- Lightweight standalone module, though compatible with Commerce modules.
Use Cases
- Financial Platforms: Show buy/sell rates with transparent fee structures.
- E-Commerce: Dynamic pricing with wholesale/retail exchange margins.
- Travel/Ticketing: Display customer rates inclusive of service fees.
Setup in Minutes
- Add your currencyapi.com key (free tier available).
- Configure markup rules (flat fees, percentages, or tiered rates).
- Select currencies and refresh intervals.
Comparison to Alternatives
Feature CurrencyAPI (this) Currency Commerce ExchangerCustom Rate Markup ✅ Yes ❌ No ❌ No Real-Time API ✅ Yes ⚠️ Limited ✅ Yes Commerce 2.x Support ✅ Manual ✅ Native ✅ Native
Unique selling point: This module empowers businesses to transparently apply and display exchange rate adjustments—perfect for FX brokers, import/export sites, or multi-currency marketplaces.
Contribute & Sponsor
This project welcomes collaboration! Developers, designers, and financial service providers are encouraged to:
- Submit PRs for new markup calculation models (e.g., spread-based pricing).
- Sponsor priority features like Commerce 2.x native integration.
Let’s build the most flexible currency tool for Drupal.
Why Choose This Module?
Unlike alternatives, CurrencyAPI puts you in control of how rates are presented to customers—whether adding a 2% margin for services or flat fees for conversions.