Skip to Content
ImplementationsBondCalc Switches

BondCalc Switches


General

SwitchDescription
-debug resultsOutput data
-debug verbose_loggingGeneral Output
-debug BONDCALCGeneral Output
-spdb rSTDOUTOutput data
-debug CFSCHEDULEPRINTDisplays Cashflow Schedule
-debug COREPrevents BondCalc from truncating file outputs
-debug CFCALCDisplays spot rates discounts and alphas for each cf date
-debug STATICSCENARIOSDisplays entries used in static_scenarios
-debug CARRYCALCshows inputs into carry calculation
-debug SHOWALLDISCOSshows monthly spaced discounts and spot/par/fwd rates
-debug FLEXPREPAYfor the flexible prepay chassis
-debug HISTCPNRATEshows output on how coupons are calculated
-debug OPTIONCALCshows output for option related calculations
-debug IRATEBASECheck which curve is called from IRATE ORACLE
-debug IRATESHOCKCurve Shocks
-debug DISCFUNC.SWAP_FIT_WITH_CAGet implied vol from convexity correction
-debug OADMULTCALC._BQL_LOAD_MULTS OADMULTCALC.load_featureFind out what multipliers are being applied
-debug OADMULTCALC._INTERPOLATE_MULTSThis is to look at the new logic that linerarly interpolates between values in group_coefficients
-debug CALCOAS.PV_CFOAS adjusted cashflows
-debug IRATEENUM.FIND_ENUMEnum/cashflows being called
-debug PARAMETERIZEDFUNCLOADERShows which IR model coeff is being used
-debug BONDFACTORYshows the security data map being read in by BondCalc
-debug BONDFACTORY.CREATEBONDSecurity setup info - these are all the fields available to BC.

May print out security several times, if so, BC runs with the latest security info

OptionTypeDescription
-debug AICALCShows useful information for AI calculation such as dates, cpn, etc.
-debug PYCALCShows alphas being used for discounting
-debug BQLEvaluatorAssetBucketeer.get_dataEvaluates the BQL in your .mb file for the security you are running
-debug LOADOAS.LOAD DISCFUNC.CALC_FWDdebugging for stub payments (see lib/liboas/src/LoadOAS.C:710)
-debug VARIANCESWAP.COMPUTE_CASH_FLOWshows StoRM daily returns that go into the accumulated variance, plus other useful info
-debug CALCOAS.PATHVALS COREShows OAVs for each simulation path
-debug CALCOAD.CALCDURATIONCONVEXITY
-debug CREDURATIONCALC.CREATESHOCK

IR Vol

OptionTypeDescription
-debug verbose_logging BONDCALC.GETAUTOVOLLots of good option auto vol info. Good for swaptions
-debug SWAPTION.GENCFEnum/cashflows being called
-debug CAPFLRLETVOLSURFACE.REPRICESee Vol Surface used for CAPs/floors run via caplet stripping
Mortgages
-debug BRSPREPAY.MTGWac/wam/wala info
-debug BRSPREPAY.CALCPREPVECTdumps out all the CPR vectors
-debug PPM_RATES_DEBUG=“PMMS30YR,PMMS15YR” -scenario forwardMortgage rates from 30 eyar and 15 year model.
-debug PREPMODEL.SHOULD_APPLY_SSTo see how BondCalc is decidigng what scen_type to apply for static scenarios
-load_speeds -debug CFGENTREPPBASE.PRINT_LOAN_CFTo compare loan outcome between the model and 0/0 for CMBS
-debug COFIMODELshows output for derived rates (such as cofi, mta etc)
-debug BONDCALC.Intex.GET_ICMOP_VERBOSEshows information about ABS deal from INTEX
-debug SSRECORDSshows query used to retrieve static scenarios
-debug BONDCALC.Intex.RAWvisualize raw cashflows passed on by Intex
-debug BONDCALC.Intex.RATESvisualize different interest rates passed by BondCalc to Intex
-debug BONDCALC.Intex.INPUTSvisualize CPR/CDR etc. passed on by BondCalc for Intex
-debug STATICSCENARIOS.GET_FROM_DBvisualize static scenarios read from db. Be cautious, as these static scenarios are only meant for scen_type ‘prep/dflt’ rtc

CMM

OptionTypeDescription
-debug IRATECURVE.GEN_TS_CMMCMM curve data

FX

OptionTypeDescription
-debug IMPFWDFXshows fwd fx curve
-debug FORWARDFXlatest switch for Forward FX curve construction debugging
-debug CURRSWAPshows the interpolated fwd fx rates and basis adjustments for each cf date
-debug CFGENBLKFX information
-debug DISCFUNC.GEN_DF_TS_FROM_FWD_FXdiscount function

FX Vol

OptionTypeDescription
-debug OPTIONCALC.VALUE_CUR_OPTFX option data
-debug VOLSURFACE.INTERPdumps out info about interpolation / extrapolation
-debug FXVOLSURFACEWITHINTERP.FXVOLSURFACEWITHINTERPmore detailed info
-debug FXVOLSURFACE.FXVOLSURFACEshows FX vols read in from the database

Futures

OptionTypeDescription
-debug FUTURE FOPTERKRW and AUD future info
-debug FOPTER.COMPBASKETVALUESCTD basket data
-debug FOPTER.CALCAVGYLDprint the average basket bond yield for AUD Tsy Futures (~/liboas/src/Fopter.C)
-debug TSYFUTURE.READTSYSECSPrint query for deliverable basket

Credit

OptionTypeDescription
-debug verbose_loggingShows indicative data (like the reference obligation…)
-debug ABSBOND.ISSUER_CDS_CUShows reference_entity, doc clause, tier (including the subordination level used if the tier does not map to a CDS curve)
-debug CDSSPREADS.GETShows the full CDS curve plus the queries that were used to get the curve
-debug RISKYCURVE.GET_CDS_SPREADSShows the full CDS curve broken down by CF date
-debug RISKYREDUCED._INITTells you if it is using single name convention bootstrap or basket convention bootstrap
-debug CDSWAP.BRS_TIERTier information. Tier is taken from new_issue_info.structure
-debug CDSWAPTCALCShows all CD Swaption valuation and greeks related information

Inflation

OptionTypeDescription
-debug SIMPLEILFACTORS
-debug CFGENBLK.GEN_CF_IBNDCash flows as off the IBnds accrual date not the analysis date
-debug ILFACTORSFactor at settlement
-debug IAMODELDump out forward inflation curve projections as well as historical observations. Tons and tons of data
-debug IAMODEL.PROJECT_SWAP
-retro inf_seasonalityRetro out inflation seasonality for swaps.

Lattice

OptionTypeDescription
-debug OPTLATTICE.INITExercise dates on the lattice
-debug IRATETREE3.PRINTCMATDump out tree nodes
-debug RATETREE3._CALC_PROBSextract the transition probabilities with corresponding values of the nodes
-debug RATETREE3._CALC_LEVELSTo get a mapping of levels to dates
-debug SLNTREE3.DUMP_RATESto get the corresponding short rates, cumulative probabilities, and ad prices (this will only work with build.BondCalc)

Carry

OptionTypeDescription
-debug CARRYCALCshows inputs into carry calculation
-debug BONDCALC.CALCCARRY/u1/build/dev/lib/liboas/src/CalcCarry.C
-debug EXPECTEDRETURN.CALC_ER/u1/build/dev/lib/liboas/src/ExpectedReturn.C
-debug IRATETRAJ/u1/build/dev/lib/libcrv/src/IRateTraj.C
-debug EXPECTEDRETURN.FV_TRAJshow CFs used to compute horizon OAV
-debug ed_futprint the Xm fwd rate on futures date from constructed curve
-debug FOPTER.CALCAVGYLDprint the average basket bond yield for AUD Tsy Futures (~/liboas/src/Fopter.C)

LSM

OptionTypeDescription
-debug LSMCALC.VALUEExercise dates + cash flow info
-debug LSMCALC.VALUE_DETAILSLots of detail

VAR

OptionTypeDescription
-debug var_bclGeneral VAR output
-debug corp_globaluseful for corporate securities - calculations that are done in corp_global.bcl
-debug AssetExposure.AESectorBreakdown.leaf_sectorTo see how a security is classified in BC breakdown

Equity Derivatives

OptionTypeDescription
-debug VARIANCESWAP.COMPUTE_CASH_FLOWShows StoRM daily returns that go into the accumulated variance, plus other useful info

Munis

OptionTypeDescription
-debug LIBOAS.DEMINCALCDe Minimis Calculations

Client Curve

OptionTypeDescription
-debug DISCFUNC.GEN_PX_CLIENTShows how bondcalc is parsing client curve. Useful for checking formatting

BCalcShell

OptionTypeDescription
cat >HELLO
dump_rates_x EDT=11/7/06 DFTYPE=LIBOR_BOOT_GBP CRVTYPE=spot SAMPLE_FREQ=monthly SAMPLES=500 COMP_FREQ=semiannually DCB=ACT360
Ctrl-C
BCalcShell -batch < HELLO> -debug SHOW_DATES & < savefile.txt >

Mortgage Servicing Rights (MSRs)

OptionTypeDescription
-debug MTGSERVDisplays all servicing details used
-debug MTGSERV.CALCCOSTOFSERVDisplays cost of servicing details
-debug MTGSERV.CALCCOSTOFSERV_ADVDisplays cost of servicer advance details
-debug MTGSERV.CALCPIFLOATDisplays P&I float details
-debug MTGSERV.CALCINTLOSTDisplays interest lost details
-debug MTGSERV.CALCRECALVALUEDisplays recapture value details
-debug MTGSERV.CALCANCILDisplays ancillary income details
-debug MTGSERV.CALCTIFLOATDisplays T&I float details
-debug MTGSERV.CALCTIEXPENSEDisplays T&I expense details
-debug MTGSERV.STOREREINVRATESDisplays reinvestment rates
-debug MTGSERV.ADJREINVRATESDisplays reinvestment adjustment rates
-debug MTGSERV.GENCFDisplays net servicing cashflow components
-debug MTGSERV.LOANFACTORDisplays loan factor calculation
-debug MTGSERV.LOADMTGSERVPARAMSLoads servicing assumptions from database

Risk Soap (Capping and Flooring post processing)

OptionTypeDescription
-debug RISKSOAPReturns all debug output from risksoap.bcl
-debug RISKSOAP.MAINIndicates whether risksoap is activated or not
-debug RISKSOAP.SET_DECODESDisplays decode names that will be queried from database
-debug RISKSOAP.LOAD_DECODESDumps decodes loaded from database
-debug RISKSOAP.VALUESDisplays original and override values  for each soap input
-debug RISKSOAP.SET_PARAMSDisplays resolved parameters - the cap/floor values for each risk field
Last updated on