> For the complete documentation index, see [llms.txt](https://bluegamma.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bluegamma.io/documentation/integrations/api/how-to-guides.md).

# How-To Guides

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

#### [Fetching a Swap Curve](/documentation/integrations/api/how-to-guides/fetching-a-swap-curve.md)

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

#### [Fetching a Government Bond Curve](/documentation/integrations/api/how-to-guides/fetching-a-government-bond-curve.md)

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

#### [Fetching FX Forward Rates](/documentation/integrations/api/how-to-guides/fetching-fx-forward-rates.md)

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

#### [Fetching a Swap Rate](/documentation/integrations/api/how-to-guides/fetching-a-swap-rate.md)

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

#### [How to Price a Swap Using the API](/documentation/integrations/api/how-to-guides/how-to-price-a-swap-using-the-api.md)

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.

#### [How to Price a Swaption Using the API](/documentation/integrations/api/how-to-guides/how-to-price-a-swaption-using-the-api.md)

Use the `/swaption_price` endpoint to price European payer and receiver swaptions with NPV, delta, and vega. Supports 20+ indices including SOFR, SONIA, and EURIBOR.

#### [Pricing an Interest Rate Cap](/documentation/integrations/api/how-to-guides/pricing-an-interest-rate-cap.md)

Use the `/cap_floor_price` endpoint to price caps and floors with caplet-level breakdowns, volatility smile controls, and multi-strike POST requests.

#### [Fetching Forward Starting Swap Rates](/documentation/integrations/api/how-to-guides/fetching-forward-starting-swap-rates.md)

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

#### [Fetching Fixing Rates](/documentation/integrations/api/how-to-guides/fetching-fixing-rates.md)

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

#### [Fetching Compounded RFR Rates](/documentation/integrations/api/how-to-guides/fetching-compounded-rfr-rates.md)

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

#### [Building a Historical Time Series](/documentation/integrations/api/how-to-guides/building-a-historical-time-series.md)

Pull daily history via `/historical_swap_rates` or build an intraday series with `/swap_rate` + `valuation_time`.

#### [Getting Forward Rates](/documentation/integrations/api/how-to-guides/getting-forward-rates.md)

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

#### [Fetching Forward Curves](/documentation/integrations/api/how-to-guides/getting-a-forward-curve.md)

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

#### [Getting Discount Factors](/documentation/integrations/api/how-to-guides/getting-discount-factors.md)

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

#### [Fetching Zero Rates](/documentation/integrations/api/how-to-guides/fetching-zero-rates.md)

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

#### [Validating BlueGamma API Data Against Bloomberg or Other Platforms](/documentation/integrations/api/how-to-guides/validating-bluegamma-api-data-against-bloomberg-or-other-platforms.md)

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

***

**Need an API key?**\
📩 <support@bluegamma.io> | 📅 [Book a call](https://app.lemcal.com/@alivohra/website-demo?back=1)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bluegamma.io/documentation/integrations/api/how-to-guides.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
