Drupal is a registered trademark of Dries Buytaert

currencyapi

20 sites Security covered
View on drupal.org

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

  1. Add your currencyapi.com key (free tier available).
  2. Configure markup rules (flat fees, percentages, or tiered rates).
  3. Select currencies and refresh intervals.

Comparison to Alternatives

Feature CurrencyAPI (this) Currency Commerce Exchanger
Custom 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.

Activity

Total releases
15
First release
May 2025
Latest release
6 months ago
Release cadence
5 days
Stability
93% stable

Release Timeline

Releases

Version Type Release date
1.10.13 Stable Aug 11, 2025
1.10.12 Stable Jul 25, 2025
1.10.11 Stable Jul 17, 2025
1.0.10 Stable Jul 16, 2025
1.0.9 Stable Jul 16, 2025
1.0.8 Stable Jul 16, 2025
1.0.7 Stable Jul 11, 2025
1.0.6 Stable Jun 26, 2025
1.0.5 Stable Jun 24, 2025
1.0.4 Stable Jun 5, 2025
1.0.3 Stable Jun 4, 2025
1.0.2 Stable Jun 2, 2025
1.0.1 Stable Jun 2, 2025
1.0.0 Stable May 28, 2025
1.0.x-dev Dev May 27, 2025