R/PU_LTN_BR.R

#' Function for pricing ``Letras do Tesouro Nacional'' 
#' Zero Coupon Brazilian government bonds, also known as ``Tesouro Prefixado''
#'
#' @param .dataEval - Date when the pricing is to be made. If NULL, it is priced in the current working day
#' @param .maturity - Maturity - as a string or a date (Date or POSIXct)
#' @param .YTM - Yield to Maturity (in decimals per year with 252 working days)
#'
#' @return Bond Price
#' @export
#' 
PU_LTN_BR <- function(.dataEval=NULL, .maturity, .YTM) {

  PU<-PU_BRbond(dataEval = .dataEval,maturity=.maturity, coupon_rate = NULL, VF = 1000,
                             YTM=.YTM, months_coupon = NULL)
  
  
}
claudiolucinda/FixedIncomeBR documentation built on May 23, 2019, 4:05 a.m.