Module security
Expand description
Products on a security: a bondOption, a term repo, and a European
equityOption.
A bond comes from the caller’s security master, never from the terms a
document restates: the bond’s instrumentIds are looked up in turn, and a
stated coupon or maturity that disagrees with the master’s is refused. The
corpus states a coupon as a decimal (0.014) or in percent (7.875);
either agrees with a master coupon it equals in its own unit.
Functions§
- bond 🔒
- The master’s bond for a
bondelement, its restated terms checked. - built 🔒
- product_
bond 🔒 - The product’s
bond, followed fromassetReferencewhere the product points at it. - product_
read 🔒 - read_
bond_ 🔒option - Reads a
bondOption: a European option on the master’s bond at the stated strike price, its quantity the stated notional over the bond’s face, its premium a fee. - read_
equity_ 🔒option - Reads a European
equityOptionon one share or index: the option on the stated number of options times the entitlement, sold where we sell, its premium a fee. - read_
repo 🔒 - Reads a term
repoon the master’s bond: the cash the near leg states, at the stated fixed rate or a compounded overnight rate, with the reporting party lending cash where it buys the collateral. - read_
return_ 🔒swap - Reads a
returnSwapon equities: the total return on its shares against its interest leg’s funding. - unsupported 🔒
- with_
premiums 🔒