Free & Offline currency exchange API with 25+ years of historical rates for 160+ currencies.
2.5K
Fast, Free Currency Exchange API with 25+ Years of Historical Data
A production-ready REST API that provides instant currency conversions and historical exchange rate data for 160+ currencies spanning from 1999 to present day. Built with .NET 8, this containerized solution loads 25 years of forex data into memory for millisecond-fast responses without requiring external databases.
Perfect for financial analysis, machine learning projects, forex applications, and educational purposes.
All historical data loads into memory at startup (~25 MB RAM). No PostgreSQL, MongoDB, or Redis needed—just pull and run.
/swaggerdocker pull mzeshawn/currencyarchiveapi:latest
docker run -d -p 8080:8080 --name currencyapi mzeshawn/currencyarchiveapi:latest
Access the API at http://localhost:8080 or explore the interactive documentation at http://localhost:8080/swagger.
version: '3.8'
services:
currencyapi:
image: mzeshawn/currencyarchiveapi:latest
container_name: currency-archive-api
ports:
- "8080:8080"
restart: unless-stopped
All endpoints are versioned (/api/v1/) except health.
GET /api/v1/convert - Convert between any two currencies
from, to, amount, date (optional, defaults to latest)GET /api/v1/currencies - Get available currencies for a specific date
dateGET /api/v1/historical - Get all exchange rates for a specific date
date, base (optional), symbols (optional)GET /api/v1/timeseries - Get rates over a date range
start_date, end_date, base (optional), symbols (optional)GET /api/v1/fluctuation - Analyze currency fluctuations between dates
start_date, end_date, base (optional), symbols (optional)GET /api/v1/rolling-metrics - Rolling window statistics
start_date, end_date, window_size, base (optional), symbols (optional)GET /api/v1/financial-metrics - Comprehensive financial analysis (volatility, returns, momentum)
start_date, end_date, base (optional), symbols (optional)GET /api/health - Service health and data load statusFull API documentation available at /swagger endpoint.
Financial Applications
Data Science & ML
Education & Research
Business Analytics
Real-world performance metrics (tested on 2 vCPU, 2 GB RAM):
Most currency APIs charge $20-$30/month for limited access. This project exists to provide free, unrestricted access to comprehensive historical forex data for developers, students, and researchers who need it most.
No API keys. No rate limits. No subscription fees.
If this container saves you time or money, consider starring the GitHub repository to support the project.
Keywords: currency converter, forex api, exchange rates, historical currency data, docker container, rest api, financial data, currency conversion, time series data, free forex api, exchange rate api, currency rates docker, financial analytics api, .net 8 api, open source currency api
Content type
Image
Digest
sha256:dfe830653…
Size
95.5 MB
Last updated
2 months ago
docker pull mzeshawn/currencyarchiveapi