PriceTypes-class: An S4 class representating bond price

Description Slots

Description

This class is used to create and pass the price types reported to investors and used in analytics. For example price is often reported as decimal or fractions 32nds to investors but price basis (price/100) is used to calculate proceeds and compute metrics like yield, duration, and partial durations.

Slots

PriceDecimal

A numeric value the price using decimal notation

Price32nds

A character the price using 32nds notation

PriceBasis

A numeric value price decimal notation in units of 100

PriceDecimalString

A character the price using decimal notation


glennmschultz/BondLab documentation built on May 11, 2021, 5:29 p.m.