Fetching FX Forward Rates

Use the /fx_forward endpoint to get forward exchange rates for any supported currency pair, enabling FX hedging, cash flow forecasting, and valuation models.

The /fx_forward endpoint returns the forward exchange rate for a specific currency pair and future date. Use this for hedging foreign currency exposure, forecasting cash flows, or building financial models that require future FX rates.


Basic Example

import requests

url = "https://api.bluegamma.io/v1/fx_forward"
headers = {"x-api-key": "your_api_key"}

params = {
    "currency_pair": "EURUSD",
    "date": "2026-06-15"
}

response = requests.get(url, headers=headers, params=params)
data = response.json()
forward_rate = data["rate"]

Response:

{
  "currency_pair": "EURUSD",
  "date": "2026-06-15",
  "rate": 1.1687296324050924
}
Field
Description

currency_pair

The currency pair requested

date

The future date for the forward rate

rate

The forward exchange rate for the specified date


Parameters

Parameter
Required
Description

currency_pair

Yes

Currency pair in ISO format (e.g., EURUSD, GBPUSD, USDJPY)

date

Yes

Future date for the forward rate (ISO 8601 format: YYYY-MM-DD)

valuation_time

No

Historical timestamp (ISO 8601) for reproducibility


Currency Pair Format

Currency pairs follow the ISO standard format:

  • Base currency (first 3 letters) + Quote currency (last 3 letters)

  • Example: EURUSD means EUR is the base, USD is the quote

  • The forward rate represents how many units of quote currency equal 1 unit of base currency

Common Currency Pairs:

  • EURUSD - Euro to US Dollar

  • GBPUSD - British Pound to US Dollar

  • USDJPY - US Dollar to Japanese Yen

  • AUDUSD - Australian Dollar to US Dollar

  • USDCAD - US Dollar to Canadian Dollar

  • EURGBP - Euro to British Pound

For the full list of supported currency pairs, see Available Indices.


When to Use FX Forward Rates

Use Case
Example

FX hedging

Lock in forward rates for foreign currency debt service payments

Cash flow forecasting

Project future revenue or expenses in different currencies

Valuation models

Discount foreign currency cash flows back to home currency

Risk management

Assess FX exposure across a portfolio of foreign assets

Financial planning

Model capital expenditures or investments in foreign currencies


Building an FX Forward Curve

To build a complete forward curve, make multiple calls with different dates:

EURUSD forward curve showing expected exchange rates over time

Reproducibility with valuation_time

For reproducible valuations, use valuation_time to lock in the market state at a specific point in time:

Without valuation_time, you get the latest data. With it, you get the forward rate exactly as it was at that timestamp—essential for reproducing valuations months later or for audit trails.


Practical Example: Cash Flow Forecasting

If you have revenue or expenses in EUR but report in USD, you can forecast the USD equivalent using forward rates:

circle-check

If you need...
Use

Current spot rate

Multiple forward rates at once

Loop through /fx_forward

Interest rate forwards


Error Handling


Need an API key? 📩 support@bluegamma.ioenvelope | 📅 Book a callarrow-up-right

Last updated

Was this helpful?