Main Content

rc

Calculate complete replacement cost (RC) for each portfolio

Since R2024a

Description

outRCResults = rc(saccrObject) computes the complete replacement cost (RC) for each portfolio using the saccr object. In addition, you can use the rcChart function to create a chart of portfolio RC values. For more information, see Replacement Cost.

example

Examples

collapse all

Use a saccr object and the rc function to calculate complete replacement cost for each portfolio.

Define the foreign exchange (FX) spot currency exchange rate table.

format("default");
Base = ["EUR";"GBP";"GBP"];
Quote = ["USD";"USD";"EUR"];
SpotRate = [1.0543;1.2195;1.1567];
FXSpotTable = table(Base,Quote,SpotRate)
FXSpotTable=3×3 table
    Base     Quote    SpotRate
    _____    _____    ________

    "EUR"    "USD"     1.0543 
    "GBP"    "USD"     1.2195 
    "GBP"    "EUR"     1.1567 

Define the SA-CCR CRIF file.

SACCRCRIF = "SACCR_CRIF_Ports_7_8_9.csv";

Create a saccr object using the data in the SA-CCR CRIF file.

mySACCR = saccr(SACCRCRIF, DomesticCurrency="USD", FXSpot=FXSpotTable)
mySACCR = 
  saccr with properties:

                         CRIF: [42×19 table]
                NumPortfolios: 3
                 PortfolioIDs: [3×1 string]
              CounterpartyIDs: [3×1 string]
                   Portfolios: [3×1 saccr.Portfolio]
                   Regulation: "Basel_CRE52"
             DomesticCurrency: "USD"
                        Alpha: [3×1 double]
                  FXSpotRates: [3×3 table]
          TradeDecompositions: [5×2 table]
           CollateralHaircuts: [200×6 table]
        SupervisoryParameters: [19×7 table]
    MaturityBusinessDaysFloor: 10
          NumBusinessDaysYear: 250

You can then use the rc function with the saccr object. For more information, see Replacement Cost.

outRCResults = rc(mySACCR)
outRCResults = 
  RCResults with properties:

         NumPortfolios: 3
          PortfolioIDs: [3×1 string]
       CounterpartyIDs: [3×1 string]
            Regulation: "Basel_CRE52"
      DomesticCurrency: "USD"
    RCUncollateralized: [3×1 double]
      RCCollateralized: [3×1 double]

Input Arguments

collapse all

SA-CCR object, specified as a saccr object. You create a saccr object using saccr.

Data Types: object

Output Arguments

collapse all

Replacement cost results, returned as a RCResults object. The RCResults object has the following properties:

  • NumPortfolios

  • PortfolioIDs

  • CounterpartyIDs

  • Regulation

  • DomesticCurrency

  • RCUncollateralized

  • RCCollateralized

More About

collapse all

References

[1] Bank for International Settlements. "CRE52 — Standardised Approach to Counterparty Credit Risk." June 2020. https://www.bis.org/basel_framework/chapter/CRE/52.htm.

[2] Bank for International Settlements. "CRE22 — Standardised Approach: Credit Risk Migration." November 2020. https://www.bis.org/basel_framework/chapter/CRE/22.htm.

[3] Bank for International Settlements. "Basel Committee on Banking Supervision: The Standardised Approach for Measuring Counterparty Credit Risk Exposures." April 2014. https://www.bis.org/publ/bcbs279.pdf.

Version History

Introduced in R2024a