BlueGamma
  • Getting Started
  • Setting up your account
  • Features Overview
  • Interest Rate Swaps
    • Overview
    • Calculating a Swap Rate
    • Calculating the MtM of a Swap
    • Refinancing a Swap
    • Advanced
      • Download a Custom Table of Swap Rates
      • Benchmarking a Swap Rate with a Bank
    • FAQs
      • How Forward Rates Are Calculated
      • How Discount Factors Are Calculated
  • Forward Curves
    • Overview
    • Downloading a Forward Curve
    • Downloading Historic Forward Curves
    • Advanced
      • How to Access BRL Forward Curves and Download TLP Forecasts
    • FAQs
  • Government Bonds
    • Accessing Bond Yields
    • Accessing Forward Starting Bond Yields
  • Foreign Exchange
    • Downloading FX Forward Rates
  • Cross Currency
    • Overview
    • Pricing a Cross-Currency Swap
  • Integrations
    • Excel Add-in
      • Installation & Setup
      • Get Swap Rates
      • Get Discount Factors
      • Get Forward Rates
      • Get Swap Rate by ID
    • API
      • API Reference
      • How to Guides
        • Fetching a Swap Rate
        • Fetching Historical Swap Rates
        • Getting Forward Rates
        • Getting a Forward Curve
        • Getting Discount Factors
        • Validating BlueGamma API Data Against Bloomberg or Other Platforms
  • Accounts and Plans
    • Adding and removing seats
  • FAQs
    • Currency-Specific FAQs
    • Where does your data come from?
Powered by GitBook
On this page
  1. Integrations
  2. API
  3. How to Guides

Getting Forward Rates

PreviousFetching Historical Swap RatesNextGetting a Forward Curve

Last updated 1 month ago

Use the /forward_rate endpoint to retrieve an implied rate between any two future dates or tenors. For more details visit

url = "https://api.bluegamma.io/v1/forward_rate"
params = {
    "index": "SOFR",
    "start_date": "2025-06-01",
    "end_date": "2025-12-01"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())

📆 Example for a Historical Forward Rate

Add the valuation_time parameter (ISO format, UTC) to get the forward rate as it would have been at a specific timestamp.

params = {
    "index": "SOFR",
    "start_date": "2025-06-01",
    "end_date": "2025-12-01",
    "valuation_time": "2025-04-15T12:00:00Z"
}

🧠 Tips

  • start_date and end_date can be either tenors ("6M", "1Y") or full ISO dates ("2025-06-01")

  • valuation_time is optional — omit it for live data

  • Historical requests return the rate as it was known at that point in time

https://bluegamma.apidocumentation.com/reference