How-To Guides

Use these guides to learn how to fetch swap rates, forward curves, and other interest rate data using the BlueGamma API.

Each guide includes a code example and tips for getting accurate, production-ready results — whether you're powering internal tools, pricing models, or dashboards.

Get a complete swap curve across all tenors for any index — includes guidance on which index to use for each currency.

Retrieve government bond yields (US Treasuries, UK Gilts, German Bunds, etc.) and build yield curves.

Get forward exchange rates for any supported currency pair to model FX exposure and hedge foreign currency risk.

Get a live or historical par swap rate for SOFR, EURIBOR, SONIA, and more.

Use the /swap_pricer endpoint to price vanilla or amortizing swaps with full cashflow analysis. Get the mid swap rate (fair rate) or mark-to-market (MTM) for existing swaps. Supports custom amortization schedules and first payment dates for loan hedging.

Price forward starting swaps where the effective date is in the future. Uses EURIBOR examples with tenor and date inputs.

Retrieve published fixing rates for overnight and term benchmarks like SOFR, SONIA, and EURIBOR.

Calculate compounded overnight rates (realised rates) for SOFR, SONIA, ESTR, and other RFR indices.

Loop through valuation_time to analyze intraday rate movements (e.g. over the past 24h).

Calculate implied forward rates between two future tenors, like 6M → 9M.

Generate full forward rate curves for pricing, forecasting, and cash flow projection — includes guidance on when to fetch vs. store curves.

Retrieve individual or full curves of discount factors for DCF models and risk systems.

Get zero-coupon rates for discounting cash flows, building DCF models, and valuing loan portfolios.

Compare BlueGamma results to Bloomberg or other providers using consistent conventions.


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

Last updated

Was this helpful?