Module bond_readings
Expand description
The bond readings a desk takes over an instrument and a market, spelled
and ordered as the Python bonds module spells them.
Each verb here does three things the binding used to do for Python alone:
it takes the product its reading is about out of the AnyInstrument,
refusing any other product with the typed error naming the verb; it lifts,
views and resolves the market through the same seam a valuation walks; and
it calls the view-level body — the _with form a caller holding a
resolved view uses directly. A Rust reader therefore writes
callable_oas(&instrument, &market, 98.5) where a Python reader writes
bonds.callable_oas(instrument, market, 98.5).
Enums§
- Bond
Reading Error - Why a callable’s curve-free yield could not be read.
Functions§
- accreted_
face - A payment-in-kind bond’s face on
date: the par face grown by every capitalisation on or before it. - accreted_
redemption - A payment-in-kind bond’s redemption per 100 of par face.
- bond_
future_ option_ diagnostics - The quantities an option on a bond future is priced from, per 100 — the quoted futures price, the vol and its convention, the time, the discount factor, the European value, the early-exercise premium and the critical futures price where Barone-Adesi–Whaley applies.
- bond_
option_ diagnostics - A bond option’s pricing diagnostics against
market, under the yield-vol engine. - callable_
oas - The option-adjusted spread of a callable bond at
clean_priceagainstmarket, solved passively. A callable loan is quoted per 100 of its outstanding at the valuation, once drawn and untagged. - capitalisations
- A payment-in-kind bond’s capitalisations as a table:
date,rate,year_fraction,face_before,face_afterandamount, one row per capitalisation in order. - clean_
price_ at_ oas - The clean price of a callable bond at
oasagainstmarket, or of a callable loan per 100 of its outstanding. - discount_
margin - A floating-rate note’s discount margin at
quoted_cleanagainstmarket. - effective_
risk - The callable’s price and its first two sensitivities to a parallel
continuous shift of the discounting at
oas, from one lattice pass. - fair_
margin - A bond total return swap’s fair funding margin against
market. - forward_
price - A fixed-rate bond’s forward price on
forward_dateagainstmarket, clean or dirty bybasis, carried on the repo curve underrepo_keyor on the discount curve itself. - note_
dirty_ price - A structured note’s dirty price per 100 against
market. - note_
z_ spread - A structured note’s z-spread at
dirty_priceagainstmarket. - package_
value - A repo’s value with its collateral: the cash leg plus the bond received, less the bond returned at its repo forward, less — classic — the coupons manufactured back.
- repo_
margin - A repo’s margin position against
market: exposure, collateral value on the margin basis, what the margin ratio requires, the excess, and the haircut. The collateral is priced off its curves, or atpriceper 100 when the desk marks it from a screen. - resolved_
bond_ 🔒view - The curves a fixed-rate bond reads for a spread measure: its currency’s
discount, overlaid by the security spread under
security_spreadwhere one is named, or financed on the repo curve underrepo_key. - settlement_
date - The date a payment-in-kind bond traded on
trade_datesettles on: its settlement lag walked from it, never before issue. - simple_
margin - A floating-rate note’s simple margin at
quoted_cleanonsettlement: the closed form, no curve and no solve. - spread_
duration - A floating-rate note’s spread duration against
market. - yield_
to_ call - The yield to the exercise entry on
dateatdirty_price, under the basisconventionresolves to on the bond’s frequency, re-based onday_countwhere one is given. - yield_
to_ maturity_ scenario - The yield of the redemption-at-par-on-maturity scenario at
dirty_price. - yield_
to_ worst - The lowest yield over the maturity scenario and every exercise after
settlement, with the date attaining it. - z_
spread - A fixed-rate bond’s z-spread at
price(clean or dirty bybasis) over its currency’s discount curve onmarket, overlaid by the security spread undersecurity_spreadwhere one is named. - zero_
coupon_ quotes - A zero’s five quotes: price, discount yield, money-market yield, bond-equivalent yield and the yield its market quotes.