tmval.Bond.sale_prem

Bond.sale_prem(t: float, gr: Union[float, tmval.rate.Rate]) → float[source]

Calculates the sale premium.

Parameters
  • t (float) – The valuation time.

  • gr (float, Rate) – The valuation yield.

Returns

The sale premium.

Return type

float