|
| | DynamicCreditXvaCalculator (const QuantLib::ext::shared_ptr< Portfolio > portfolio, const QuantLib::ext::shared_ptr< Market > market, const string &configuration, const string &baseCurrency, const string &dvaName, const string &fvaBorrowingCurve, const string &fvaLendingCurve, const bool applyDynamicInitialMargin, const QuantLib::ext::shared_ptr< DynamicInitialMarginCalculator > dimCalculator, const QuantLib::ext::shared_ptr< NPVCube > tradeExposureCube, const QuantLib::ext::shared_ptr< NPVCube > nettingSetExposureCube, const QuantLib::ext::shared_ptr< NPVCube > &cptyCube, const Size tradeEpeIndex=0, const Size tradeEneIndex=1, const Size nettingSetEpeIndex=0, const Size nettingSetEneIndex=1, const Size cptySpIndex=0, const bool flipViewXVA=false, const string &flipViewBorrowingCurvePostfix="_BORROW", const string &flipViewLendingCurvePostfix="_LEND") |
| virtual const Real | calculateCvaIncrement (const string &tid, const string &cid, const Date &d0, const Date &d1, const Real &rr) override |
| virtual const Real | calculateDvaIncrement (const string &tid, const Date &d0, const Date &d1, const Real &rr) override |
| virtual const Real | calculateNettingSetCvaIncrement (const string &nid, const string &cid, const Date &d0, const Date &d1, const Real &rr) override |
| virtual const Real | calculateNettingSetDvaIncrement (const string &nid, const Date &d0, const Date &d1, const Real &rr) override |
| virtual const Real | calculateFbaIncrement (const string &tid, const string &cid, const string &dvaName, const Date &d0, const Date &d1, const Real &dcf) override |
| virtual const Real | calculateFcaIncrement (const string &tid, const string &cid, const string &dvaName, const Date &d0, const Date &d1, const Real &dcf) override |
| virtual const Real | calculateNettingSetFbaIncrement (const string &nid, const string &cid, const string &dvaName, const Date &d0, const Date &d1, const Real &dcf) override |
| virtual const Real | calculateNettingSetFcaIncrement (const string &nid, const string &cid, const string &dvaName, const Date &d0, const Date &d1, const Real &dcf) override |
| virtual const Real | calculateNettingSetMvaIncrement (const string &nid, const string &cid, const Date &d0, const Date &d1, const Real &dcf) override |
| | ValueAdjustmentCalculator (const QuantLib::ext::shared_ptr< Portfolio > portfolio, const QuantLib::ext::shared_ptr< Market > market, const string &configuration, const string &baseCurrency, const string &dvaName, const string &fvaBorrowingCurve, const string &fvaLendingCurve, const bool applyDynamicInitialMargin, const QuantLib::ext::shared_ptr< DynamicInitialMarginCalculator > dimCalculator, const QuantLib::ext::shared_ptr< NPVCube > tradeExposureCube, const QuantLib::ext::shared_ptr< NPVCube > nettingSetExposureCube, const Size tradeEpeIndex=0, const Size tradeEneIndex=1, const Size nettingSetEpeIndex=1, const Size nettingSetEneIndex=2, const bool flipViewXVA=false, const string &flipViewBorrowingCurvePostfix="_BORROW", const string &flipViewLendingCurvePostfix="_LEND") |
|
virtual void | build () |
| | Compute cva along all paths and fill result structures.
|
|
virtual const vector< Date > & | dates () |
|
virtual const Date | asof () |
|
const map< string, Real > & | tradeCva () |
| | CVA map for all the trades.
|
|
const map< string, Real > & | tradeDva () |
| | DVA map for all the trades.
|
|
const map< string, Real > & | nettingSetCva () |
| | CVA map for all the netting sets.
|
|
const map< string, Real > & | nettingSetDva () |
| | DVA map for all the netting sets.
|
|
const map< string, Real > & | nettingSetSumCva () |
| | Sum CVA map for all the netting sets.
|
|
const map< string, Real > & | nettingSetSumDva () |
| | Sum DVA map for all the netting sets.
|
|
const Real & | tradeCva (const string &trade) |
| | CVA for the specified trade.
|
|
const Real & | tradeDva (const string &trade) |
| | DVA for the specified trade.
|
|
const Real & | tradeFba (const string &trade) |
| | FBA for the specified trade.
|
|
const Real & | tradeFba_exOwnSp (const string &trade) |
| | FBA (excl own survival probability) for the specified trade.
|
|
const Real & | tradeFba_exAllSp (const string &trade) |
| | FBA (excl all survival probability) for the specified trade.
|
|
const Real & | tradeFca (const string &trade) |
| | FCA for the specified trade.
|
|
const Real & | tradeFca_exOwnSp (const string &trade) |
| | FCA (excl own survival probability) for the specified trade.
|
|
const Real & | tradeFca_exAllSp (const string &trade) |
| | FCA (excl all survival probability) for the specified trade.
|
|
const Real & | tradeMva (const string &trade) |
| | MVA for the specified trade.
|
|
const Real & | nettingSetSumCva (const string &nettingSet) |
| | Sum of trades' CVA for the specified netting set.
|
|
const Real & | nettingSetSumDva (const string &nettingSet) |
| | Sum of trades' DVA for the specified netting set.
|
|
const Real & | nettingSetCva (const string &nettingSet) |
| | CVA for the specified netting set.
|
|
const Real & | nettingSetDva (const string &nettingSet) |
| | DVA for the specified netting set.
|
|
const Real & | nettingSetFba (const string &nettingSet) |
| | FBA for the specified netting set.
|
|
const Real & | nettingSetFba_exOwnSp (const string &nettingSet) |
| | FBA (excl own survival probability) for the specified netting set.
|
|
const Real & | nettingSetFba_exAllSp (const string &nettingSet) |
| | FBA (excl all survival probability) for the specified netting set.
|
|
const Real & | nettingSetFca (const string &nettingSet) |
| | FCA for the specified netting set.
|
|
const Real & | nettingSetFca_exOwnSp (const string &nettingSet) |
| | FCA (excl own survival probability) for the specified netting set.
|
|
const Real & | nettingSetFca_exAllSp (const string &nettingSet) |
| | FCA (excl all survival probability) for the specified netting set.
|
|
const Real & | nettingSetMva (const string &nettingSet) |
| | MVA for the specified netting set.
|
XVA Calculator base with dynamic credit.
XVA is calculated using survival probability from each path