Updated on 2026-05-12 NovaDataHub Engineering

Currency Exchange API

Realtime exchange rates, historical time series, and instant currency conversion โ€” three focused endpoints returning compact, consistent JSON for dashboards, ETL pipelines, and financial applications. All use the same x-api-key authentication.

Authentication

Pass your service API key in the x-api-key HTTP header. Obtain your key from the Dashboard after enabling Currency Exchange.

x-api-key: YOUR_API_KEY
๐Ÿงช
New to APIs? Test this instantly โ€” no tools needed.

After enabling Currency Exchange on the Dashboard, click the Playground button next to your key. Enter a base currency and target symbols, click Run request, and see live exchange rates in the browser.

Endpoints

Latest rates
GET /api/fx/rates
Historical time series
GET /api/fx/timeseries
Convert an amount
GET /api/fx/convert

Query parameters

GET /api/fx/rates โ€” latest exchange rates

  • base string โ€” Base currency (ISO 4217). Default: EUR
  • symbols string โ€” Comma-separated target currencies. e.g. USD,INR,GBP. Omit for all available.

GET /api/fx/timeseries โ€” historical date range

  • base string โ€” Base currency. Default: EUR
  • symbols string โ€” Comma-separated target currencies.
  • start string โ€” Start date (YYYY-MM-DD).
  • end string โ€” End date (YYYY-MM-DD).

GET /api/fx/convert โ€” instant conversion

  • from string โ€” Source currency. e.g. USD
  • to string โ€” Target currency. e.g. INR
  • amount decimal โ€” Amount to convert. Default: 1

Response fields โ€” /rates & /timeseries

ok base date rates.{CURRENCY: value}

Response fields โ€” /convert

ok from to amount rate result date

Sample responses

/api/fx/rates

{
  "ok": true,
  "base": "USD",
  "date": "2025-01-15",
  "rates": {
    "EUR": 0.9215,
    "INR": 83.21,
    "GBP": 0.7842
  }
}

/api/fx/convert

{
  "ok": true,
  "from": "USD",
  "to": "INR",
  "amount": 100,
  "rate": 83.21,
  "result": 8321.0,
  "date": "2025-01-15"
}

Error responses

HTTPerrorMeaning
401invalid_keyAPI key missing or invalid.
400from and to are requiredRequired params omitted on /convert.
400rate not found for {CUR}Currency symbol not supported or unavailable.
500data_source_failedInternal data source error.

cURL examples

Latest rates โ€” USD base, selected symbols
curl -s -H "x-api-key: YOUR_API_KEY" \
  "https://novadatahub.com/api/fx/rates?base=USD&symbols=EUR,INR,GBP"
Historical time series โ€” EUR/USD for a full year
curl -s -H "x-api-key: YOUR_API_KEY" \
  "https://novadatahub.com/api/fx/timeseries?base=EUR&symbols=USD&start=2024-01-01&end=2024-12-31"
Convert 100 USD to INR
curl -s -H "x-api-key: YOUR_API_KEY" \
  "https://novadatahub.com/api/fx/convert?from=USD&to=INR&amount=100"

Postman guide

  1. Open Postman → New → HTTP Request.
  2. Set method to GET. URL: https://novadatahub.com/api/fx/rates
  3. Headers tab → add row โ€” Key: x-api-key / Value: YOUR_API_KEY
  4. Params tab → add: base=USD   symbols=EUR,INR,GBP
  5. Click Send. For conversion, switch URL to /api/fx/convert and use params from, to, amount instead.
C# HttpClient โ€” convert 100 USD to INR
using System.Net.Http.Json;
using System.Text.Json;

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");

var result = await http.GetFromJsonAsync<JsonElement>(
    "https://novadatahub.com/api/fx/convert?from=USD&to=INR&amount=100");

var rate   = result.GetProperty("rate").GetDecimal();
var output = result.GetProperty("result").GetDecimal();
Console.WriteLine($"1 USD = {rate} INR  |  100 USD = {output} INR");
C# HttpClient โ€” fetch latest rates
using System.Net.Http.Json;
using System.Text.Json;

using var http = new HttpClient();
http.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");

var rates = await http.GetFromJsonAsync<JsonElement>(
    "https://novadatahub.com/api/fx/rates?base=USD&symbols=EUR,INR,GBP");

foreach (var rate in rates.GetProperty("rates").EnumerateObject())
    Console.WriteLine($"{rate.Name}: {rate.Value.GetDecimal()}");
Popular workflows

Use-case pages for this API

Exchange rate API

Fetch current rates for reporting, product pricing, and global finance workflows.

Open use case

Currency conversion API

Convert amounts directly inside quoting, billing, and multi-currency UX flows.

Open use case

Historical exchange rate API

Retrieve time-series currency data for analytics, reporting, and reconciliation work.

Open use case
Related reading

Pages that support FX buyers and implementers

Currency Exchange API landing page

A commercial overview page for rates, conversion, and historical FX data in structured JSON.

Open landing page

FX workflow use cases

Explore pages for exchange rates, conversion, historical data, fintech, and multi-currency pricing.

Open use cases

Best API for multi-currency pricing

Compare the buying criteria for checkout conversions, pricing logic, and historical-reporting support.

Open comparison

Developer docs

Use the docs hub for shared onboarding patterns, error handling, and code examples.

Open docs
Endpoint detail

Long-tail docs for conversion and historical FX workflows

FX buyers and implementers often search for very specific tasks rather than a generic currency API. Some teams need direct amount conversion for quoting and checkout flows, while others need historical time-series data for finance reporting or reconciliation. The public docs now split those tasks into narrower pages so the site can rank for more specific developer intent.

FX conversion endpoint

See how to use from, to, and amount for direct converted-value workflows.

Open endpoint docs

Historical FX time series

Read the time-series page for date ranges, symbol filtering, and reporting-oriented historical retrieval.

Open endpoint docs

Invalid API key debugging

Use the auth troubleshooting guide when environment configuration or service-key selection causes avoidable 401 errors.

Open guide

Multi-currency checkout logic

Read the checkout guide for base-currency design, fallback handling, rounding consistency, and audit-ready conversion context.

Open guide

Historical FX reporting workflows

Use the reporting guide for period-aware time-series handling, normalization, and finance-oriented downstream workflows.

Open guide

Historical FX reporting tutorial

Follow a concrete workflow for turning historical FX responses into reporting-ready rows and period-aware outputs.

Open tutorial
Related links

Continue with connected pages

All APIs

Open the related NovaDataHub page for deeper documentation, comparisons, or implementation guidance.

Documentation hub

Open the related NovaDataHub page for deeper documentation, comparisons, or implementation guidance.

Solutions

Open the related NovaDataHub page for deeper documentation, comparisons, or implementation guidance.

Tutorials

Open the related NovaDataHub page for deeper documentation, comparisons, or implementation guidance.