Description Usage Arguments See Also
View source: R/SpreadToPriceFunctions.R
returns the clean price of a bond given via PriceTypes object given a spread and benchmark. market convention is to quote spread to a benchmark in basis points. Bond Lab follows the market convection. The user specified spread to the benchmark in basis points.
1 2 3 4 5 6 7 | SpreadToPriceBond(
bond.id,
rates.data,
settlement.date,
spread,
benchmark = NULL
)
|
bond.id |
a character or connection referencing an object of type BondDetails |
rates.data |
a character the referencing a curve object |
settlement.date |
a character the settlement.date |
spread |
the spread to the benchmark given in basis points. |
benchmark |
the pricing benchmark. The default is NULL in which case the function will determine the nearest pricing benchmark. The user override values are 1, 2, 3, 4, 5, 7, 10, 30 |
Other Pricing:
BenchMark,CurveSpreads-method
,
BillPriceToYield()
,
BillYieldToPrice()
,
CurveSpreads-class
,
CurveSpreads
,
SpreadToBenchmark,CurveSpreads-method
,
SpreadToCurve,CurveSpreads-method
,
SpreadToPriceMBS()
,
ZVSpreadToPriceBond()
,
ZVSpreadToPriceMBS()
,
ZeroVolSpread,CurveSpreads-method
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.