The document distinguishes a financial instrument from a financial product in its stricter usage. A financial instrument, such as a share, bond, or option, represents legal rights held by its owner; ownership and those rights can be transferred through…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
5,701 documents
The document clarifies two distinct ways to obtain a fixed-rate bond's dirty price in QuantLib. One method passes a yield, day-count convention, compounding rule, and payment frequency directly to the calculation. This route computes a price from the…
The document examines why two semiannual swaps with the same start date can produce different August payment dates when schedules are generated backward from their respective maturities. A leap-year February date creates ambiguity about whether the schedule…
The document outlines a practical estimate for the yield on a US Treasury bond hedged into euros. For a quarterly hedge, the notional is set slightly above the bond’s current value to reflect the expected increase in bond value over the hedge period. The…
This answer outlines a state-space approach to estimating latent default intensity from observed credit default swap quotes across maturities. It models risk-neutral default probability through an intensity process and presents the Cox–Ingersoll–Ross process…
This discussion explains how to infer delta and gamma for a swaption portfolio from its profit-and-loss response to rate shocks. Using a second-order Taylor approximation, gamma comes from the centered difference between up-shock and down-shock values…
The document presents a mental-math estimate for a bond priced away from par after its yield changes. It starts from the par case, where coupon rate and yield match, then uses the first-order relationship between price change and yield change. For the…
Jamshidian’s trick expresses a payer swaption price as a sum of options on zero-coupon bonds. The approach first finds a critical short rate at which the discounted value of the swap’s cash flows reaches the exercise threshold. In the Vasicek example,…
The discussion compares two ways for a bank to fund a one-year liability: issuing a zero-coupon bond or creating an uncollateralized derivative that provides an upfront premium and requires a later payment. The bond’s economic value reflects the issuer’s…
The document explains why term structure models often specify short-rate or state-price dynamics instead of assigning separate price processes to bonds at each maturity. Independently modeling bond prices can produce inconsistencies that permit arbitrage.…
The note considers the foreign-exchange exposure of a basis swap denominated in a currency different from an investor’s reporting currency. It clarifies that the swap can carry second-order FX risk through changes in its mark-to-market, even when the initial…
The note explains how to represent a bond whose final coupon date precedes maturity using QuantLib’s standard schedule and bond construction. Its workaround is to create the regular schedule, provide a coupon-rate entry for every period, and set the final…
A short-rate model specifies the evolution of the instantaneous rate over time. The response explains that this modeled rate can be used to derive zero-coupon bond prices by taking the expected discount factor over the life of each bond. The bond price is…
The discussion explains how a six-month LIBOR forward rate can be derived from a three-month reference curve when valuing a fixed-for-floating interest rate swap. First, a three-month LIBOR curve is constructed from market instruments such as futures and…
The document asks whether government bonds in major currencies trade as curve flies, rather than only as individual securities. A fly combines positions across three maturities to express a view on the curve's relative shape. The question also raises whether…
The document examines an apparent contradiction between the claim that swap rates are below LIBOR borrowing rates and a textbook example that derives a two-year borrowing rate below the stated swap rate. It explains that a direct comparison is problematic:…
The note explains the conversion-factor term in a Treasury futures wild card option inequality. The question concerns when a short futures holder should exercise promptly and sell the remaining bond position, comparing the gross basis cost with the price…
The document explains why the historical return advantage of equities over government bonds is called a puzzle, rather than a risk-free arbitrage opportunity. Stocks and bonds both carry risk, and equity’s higher expected return is commonly understood as…
The document explains an apparent rate arbitrage: the effective federal funds rate can be below the interest paid on reserve balances at the Federal Reserve. The answer attributes the gap to differences in which institutions can earn interest on reserves and…
The document explains how to represent an overnight benchmark in QuantLib when the library does not provide a dedicated class for it. The proposed workaround is to instantiate the general OvernightIndex type and supply the index name, settlement lag,…
The document discusses how to set the fixed rate on a hypothetical derivative used to assess a cash flow hedge of a foreign currency liability with a cross-currency swap. The hypothetical derivative should start at zero fair value and have cash flows that…
The document investigates why a market-neutral mutual fund appears to have many days with no price change. The proposed explanation is price rounding: when published fund prices are shown to only two decimal places, small daily moves may disappear in the…
The document examines a European callable bond with a call date two years ahead and a five-year remaining term. Its textbook decomposition combines the callable bond with a receiver swaption to replicate a non-callable bond. The response qualifies that…
The document asks how the Fixed Income Clearing Corporation (FICC) handles a temporary cash gap in a Treasury delivery-versus-payment settlement. In its example, two members trade a Treasury note; after novation, the seller delivers the note to FICC and…