.. ipython:: python :suppress: from rateslib import * ************** FixedRateBond ************** USD **** .. _spec-us-gb: Government Bonds ------------------ Aliases: **"ust"** Uses Street convention. Similar to *"uk_gb"* except long stub periods have linear proportioning only in the segregated short stub part. .. ipython:: python defaults.spec["us_gb"] from rateslib.instruments.bonds import US_GB US_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="us_gb", fixed_rate=2.5).kwargs US Treasury convention. Reprices examples in federal documents: Section 31-B-ii). .. ipython:: python defaults.spec["us_gb_tsy"] from rateslib.instruments.bonds import US_GB_TSY US_GB_TSY.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="us_gb_tsy", fixed_rate=2.5).kwargs EUR ******** .. _spec-de-gb: Government Bonds ----------------- **Germany** Uses ICMA conventions. Similar to *"uk_gb"*, except in the last period simple interest rate and money-market yield is used. .. ipython:: python defaults.spec["de_gb"] from rateslib.instruments.bonds import DE_GB DE_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="de_gb", fixed_rate=2.5).kwargs .. _spec-fr-gb: **France** Uses ICMA conventions. Similar to *"uk_gb"*. .. ipython:: python defaults.spec["fr_gb"] from rateslib.instruments.bonds import FR_GB FR_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="fr_gb", fixed_rate=2.5).kwargs .. _spec-it-gb: **Italy** Coupons are semi-annual but yield convention is annual yield. In last coupon period simple yield is applied. .. ipython:: python defaults.spec["it_gb"] from rateslib.instruments.bonds import IT_GB IT_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="it_gb", fixed_rate=2.5).kwargs .. _spec-nl-gb: **Netherlands** Street convention is used, except when the bond is in the final coupon period simple interest yield is used. .. ipython:: python defaults.spec["nl_gb"] from rateslib.instruments.bonds import NL_GB NL_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="nl_gb", fixed_rate=2.5).kwargs GBP ******** .. _spec-uk-gb: Government Bonds ----------------- Aliases: **"ukt"** and **"gilt"** Calculations performed with the DMO method. Accrued is on ActAct linearly proportioned basis. Yield is compounded in all periods including any front and back stubs. .. ipython:: python defaults.spec["uk_gb"] from rateslib.instruments.bonds import UK_GB UK_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="uk_gb", fixed_rate=2.5).kwargs SEK ***** .. _spec-se-gb: Government Bonds ----------------- Aliases: **"sgb"** Calculation performed with Swedish DMO method, using 30e360 for accrued calculations and for back stubs. .. ipython:: python defaults.spec["se_gb"] from rateslib.instruments.bonds import SE_GB SE_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="se_gb", fixed_rate=2.5).kwargs NOK **** .. _spec-no-gb: Government Bonds ---------------- Using annualised yield calculation under ICMA compounding convention. Stub periods use ACT365 day fraction. Accrual is calculated with ACT365F. .. ipython:: python defaults.spec["no_gb"] from rateslib.instruments.bonds import NO_GB NO_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="no_gb", fixed_rate=2.5).kwargs CAD **** .. _spec-ca-gb: Government Bonds ------------------ Aliases **"cadgb"** Canadian government bond convention. Accrued is calculated using an ACT365F convention. Yield calculations are still derived with linearly proportioned compounded coupons. .. ipython:: python defaults.spec["ca_gb"] from rateslib.instruments.bonds import CA_GB CA_GB.kwargs FixedRateBond(dt(2000, 1, 1), "10y", spec="ca_gb", fixed_rate=2.5).kwargs