Logo di Basel Rwa Market

Basel Rwa Market

Organizzazione
panaversity
basel-rwa-market

Activate for: FRTB, Fundamental Review of the Trading Book, market risk RWA, trading book capital, SA-TB, standardised approach trading book, sensitivities- based method, SBM, delta, vega, curvature, default risk charge, DRC, residual risk add-on, RRAO, internal models approach, IMA, expected shortfall, ES, P&L attribution, PLA, backtesting, GIRR, CSR, equity risk, commodity risk, FX risk, market risk capital, trading desk. NOT for: credit risk RWA under standardised or IRB approach (use basel-rwa-credit), capital adequacy ratios and buffer calculations (use basel-capital), IFRS 9 ECL provisioning (use ifrs9-ecl).

Panoramica

Pubblicato dapanaversity
Repositoryagentfactory-business-plugins
Nome della skillbasel-rwa-market
Stelle
37
Fork
19
File inclusi
Solo istruzioni
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da panaversity su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Basel Rwa Market in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/panaversity/agentfactory-business-plugins/tree/main/banking/skills/basel-rwa-market
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/panaversity/agentfactory-business-plugins.git /tmp/agentfactory-business-plugins
mkdir -p .claude/skills
cp -r /tmp/agentfactory-business-plugins/banking/skills/basel-rwa-market .claude/skills/basel-rwa-market
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Basel Rwa Market in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Basel Rwa Market non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Basel Rwa Market non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

CORE PRINCIPLE

Market risk capital under FRTB replaces the pre-2016 VaR-based framework with a risk-sensitive approach that distinguishes between the Standardised Approach (SA) and the Internal Models Approach (IMA). The SA is the default and fallback; IMA requires desk-level regulatory approval including P&L attribution and backtesting.

FRTB applies to all instruments in the regulatory trading book. The trading book boundary is defined by strict criteria (intent to trade, ability to hedge, daily fair-value accounting) -- not by the bank's internal designation alone.


STANDARDISED APPROACH (SA-TB) -- THREE COMPONENTS

Market Risk Capital (SA) = SBM + DRC + RRAO

Component 1: Sensitivities-Based Method (SBM)

The SBM captures delta, vega, and curvature risks across seven risk classes.

Seven Risk Classes
#Risk ClassKey Risk Factors
1GIRR (General Interest Rate Risk)Risk-free rates by tenor (3M, 6M, 1Y, 2Y, 3Y, 5Y, 10Y, 15Y, 20Y, 30Y), cross-currency basis
2CSR non-securitisationCredit spreads by issuer, sector, tenor
3CSR securitisation (CTP)Correlation trading portfolio credit spreads
4CSR securitisation (non-CTP)Non-correlation trading securitisation spreads
5EquityEquity spot prices, repo rates
6CommodityCommodity prices by type (energy, metals, agricultural, other) and tenor
7FXExchange rates against reporting currency
SBM Calculation Steps

Step 1 -- Net Sensitivities: Calculate net delta, vega, and curvature sensitivities per risk factor within each risk class.

Step 2 -- Weighted Sensitivities: Multiply each net sensitivity by the prescribed risk weight for that risk factor. Delta risk weights vary by risk class and tenor (e.g., GIRR: 1.5%-2.4% by tenor; Equity: 15%-70% by market cap and economy; FX: 15%). Vega risk weights: uniform within risk class, calibrated to stressed implied volatility.

Step 3 -- Aggregation Within Bucket: Aggregate weighted sensitivities within each bucket using prescribed intra-bucket correlations (rho). Kb = sqrt( sum_i sum_j rho_ij * WSi * WS_j ) where WS = weighted sensitivity, rho = intra-bucket correlation

Step 4 -- Aggregation Across Buckets: Aggregate across buckets using prescribed inter-bucket correlations (gamma). Capital = sqrt( sumb sum_c gamma_bc * Sb * S_c ) where S_b = net bucket-level capital, gamma = inter-bucket correlation

Step 5 -- Three Correlation Scenarios: Calculate SBM under three correlation scenarios: (a) Medium correlations (prescribed rho and gamma) (b) High correlations (rho _ 1.25, gamma _ 1.25, capped at 1) (c) Low correlations (rho _ 0.75, gamma _ 0.75) SBM = MAX(SBM_medium, SBM_high, SBM_low)

Curvature Risk

Curvature risk captures the non-linear risk that delta sensitivities miss. Calculate by shocking each risk factor up and down by a prescribed amount, revaluing the portfolio, and computing the curvature charge: CVRk = -min( V(x_k^up) - V(x_k) - s_k * deltak, V(x_k^down) - V(x_k) + s_k * delta_k, 0 ) where s_k = prescribed shock size for risk factor k.

Component 2: Default Risk Charge (DRC)

DRC captures jump-to-default risk for credit and equity instruments in the trading book -- the risk of an issuer defaulting between now and the next rebalancing period.

DRC Calculation: DRC = sumi ( LGD_i * Notionali * RW_i ) after hedging benefit Risk weights by credit quality: AAA 0.5%, AA 2%, A 3%, BBB 6%, BB 15%, B 30%, CCC 50%, Default 100% Hedging benefit: long-short offset within same issuer and seniority; partial offset across issuers in the same sector using prescribed hedge benefit ratios.

DRC is additive to SBM -- no diversification benefit between DRC and SBM.

Component 3: Residual Risk Add-On (RRAO)

RRAO is a simple gross notional charge for instruments with exotic risks not captured by SBM or DRC:

  • Instruments bearing exotic underlying risks (e.g., longevity, weather, natural disaster): 1.0% of gross notional
  • Other instruments with residual risks (e.g., gap risk, correlation risk, behavioural risk): 0.1% of gross notional

Instruments subject to RRAO include: barrier options, digital options, Asian options, basket options with non-standard payoffs, variance/volatility swaps, correlation products, weather derivatives.

RRAO is additive -- no diversification with SBM or DRC.


INTERNAL MODELS APPROACH (IMA)

IMA is approved on a desk-by-desk basis by the regulator. Any desk failing IMA eligibility reverts to SA for that desk.

IMA Capital Charge

IMA Capital = max( ES_t-1, m * ES_avg ) + DRC_IMA + SES where: ES = Expected Shortfall at 97.5% confidence m = multiplier (minimum 1.5, increased by regulator based on backtesting failures) ES_avg = 60-day weighted average ES DRC_IMA = internal default risk charge SES = stressed expected shortfall (calibrated to stressed period)

Expected Shortfall (ES) -- Calculation

ES replaces VaR as the primary risk measure under FRTB. ES is calculated at the 97.5th percentile (vs. VaR at 99th percentile). ES is coherent (satisfies sub-additivity); VaR is not.

Liquidity-Adjusted ES: ES = sqrt( sum_j ( ES_j(P_j) * sqrt(LH_j / 10) )^2 ) where LH_j = regulatory liquidity horizon for risk factor j: 10 days: Large-cap equity, FX (major currencies), GIRR (G7 currencies) 20 days: Small-cap equity, FX (other), credit investment grade 40 days: Credit high yield, emerging market sovereign 60 days: Securitised products, commodity (other) 120 days: Correlation trading, illiquid exotic

IMA Eligibility Tests (Desk-Level)

Test 1: P&L Attribution (PLA)

Compare the hypothetical P&L (from risk model) to the actual P&L (from front office). Two statistics: Spearman correlation: must be > 0.7 Kolmogorov-Smirnov (KS) test: KS statistic must be < 0.09 If either fails for 4+ quarters: desk reverts to SA.

Traffic light assessment: Green: Both metrics pass Amber: One metric in warning zone Red: Either metric fails -- desk loses IMA eligibility

Test 2: Backtesting

Compare daily VaR (at 99%) to actual P&L over the prior 250 trading days. Count exceptions (days where actual loss > VaR estimate): Green zone: 0-4 exceptions (multiplier = 1.5) Amber zone: 5-9 exceptions (multiplier = 1.5 + 0.1 per additional exception) Red zone: 10+ exceptions (multiplier >= 2.0; regulator may revoke IMA for desk)

Backtesting is performed at desk level AND at bank-wide level.


TRADING BOOK BOUNDARY

Assignment to Trading Book

Instruments must be assigned to the trading book if:

  • Held with intent to trade or to hedge trading book positions
  • Subject to daily fair value accounting under the relevant accounting framework
  • The bank has the ability to trade or hedge the risk

Instruments Presumed in Trading Book

  • Correlation trading
  • Instruments resulting from market-making activities
  • Listed equity holdings
  • Instruments arising from underwriting commitments
  • Positions in a CIU (collective investment undertaking) look through to underlying

Internal Risk Transfers (IRT)

Transfers of risk between banking book and trading book must be strictly documented. Capital relief is only granted if the IRT is properly hedged in the trading book and meets regulatory IRT documentation standards.


KEY RISK WEIGHT TABLES (SA -- SELECTED)

GIRR Delta Risk Weights by Tenor

TenorRisk Weight
0.25Y2.4%
0.5Y2.4%
1Y2.25%
2Y1.88%
3Y1.73%
5Y1.5%
10Y1.5%
15Y1.5%
20Y1.5%
30Y1.5%

Equity Delta Risk Weights

BucketDescriptionRisk Weight
1Large cap, emerging markets55%
2Large cap, advanced economies30%
3Small cap, emerging markets70%
4Small cap, advanced economies50%
5-8Sector-specific15%-70%
OtherIndices, ETFs15%

FX Delta Risk Weight

All currency pairs: 15% Specified liquid currency pairs (EUR/USD, USD/JPY, etc.): eligible for sqrt(2) reduction

DRC Risk Weights by Credit Quality

RatingRisk Weight
AAA0.5%
AA2%
A3%
BBB6%
BB15%
B30%
CCC50%
Unrated15%
Defaulted100%

FRTB IMPLEMENTATION STATUS

JurisdictionSA MandatoryIMA AvailableImplementation Date
EU (CRR3)YesYes (desk approval)January 2025
UK (PRA)YesYes (desk approval)Consultation ongoing
US (Basel III Endgame)ProposedProposedTBD (check Fed website)
Australia (APRA)ConsultingTBDTBD (check APRA)
Singapore (MAS)ConsultingTBDTBD (check MAS)

Always load jurisdiction overlay to confirm current FRTB implementation status.


NEVER DO THESE

  • NEVER use pre-FRTB VaR-based market risk capital for new calculations -- FRTB replaces VaR with ES
  • NEVER aggregate DRC with SBM using diversification -- DRC is additive
  • NEVER skip the three correlation scenarios in SBM -- capital = MAX of all three
  • NEVER assume IMA approval is bank-wide -- it is granted desk-by-desk
  • NEVER ignore P&L attribution test results -- 4 quarterly failures = mandatory reversion to SA
  • NEVER apply banking book risk weights to trading book positions -- FRTB has its own risk weight framework
  • NEVER forget the RRAO for exotic instruments -- it is a separate additive charge

OUTPUT FORMAT -- MARKET RISK CAPITAL SUMMARY

MARKET RISK CAPITAL SUMMARY (FRTB)
Entity:             [Bank / Group name]
Reporting Date:     [YYYY-MM-DD]
Approach:           [SA / IMA / Mixed (desk-level)]
Jurisdiction:       [Overlay applied: EU CRR3 / UK PRA / US Fed / etc.]

STANDARDISED APPROACH (SA):
  SBM (Sensitivities-Based Method):
    GIRR:                        [Amount]
    CSR non-sec:                 [Amount]
    CSR sec (CTP):               [Amount]
    CSR sec (non-CTP):           [Amount]
    Equity:                      [Amount]
    Commodity:                   [Amount]
    FX:                          [Amount]
    Total SBM:                   [Amount]
    Binding scenario:            [Medium / High / Low correlations]

  DRC (Default Risk Charge):    [Amount]
  RRAO (Residual Risk Add-On):  [Amount]

  SA TOTAL:                      [Amount]

IMA (if applicable):
  Desks on IMA:                  [List]
  ES (Expected Shortfall):      [Amount]
  DRC (IMA):                    [Amount]
  SES (Stressed ES):            [Amount]
  IMA multiplier:               [X.X]
  IMA TOTAL:                    [Amount]
  Desks reverted to SA:         [List + reason]

TOTAL MARKET RISK CAPITAL:      [Amount]

ALL OUTPUTS REQUIRE REVIEW BY A QUALIFIED PROFESSIONAL BEFORE USE IN REGULATORY FILINGS OR BUSINESS DECISIONS.

Domande frequenti

Cosa fa la skill IA Basel Rwa Market?

Activate for: FRTB, Fundamental Review of the Trading Book, market risk RWA, trading book capital, SA-TB, standardised approach trading book, sensitivities- based method, SBM, delta, vega, curvature, default risk charge, DRC, residual risk add-on, RRAO, internal models approach, IMA, expected shortfall, ES, P&L attribution, PLA, backtesting, GIRR, CSR, equity risk, commodity risk, FX risk, market risk capital, trading desk. NOT for: credit risk RWA under standardised or IRB approach (use basel-rwa-credit), capital adequacy ratios and buffer calculations (use basel-capital), IFRS 9 ECL provi...

Perché usare Basel Rwa Market su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Basel Rwa Market è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Basel Rwa Market in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/panaversity/agentfactory-business-plugins/tree/main/banking/skills/basel-rwa-market. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Basel Rwa Market?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Basel Rwa Market?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Basel Rwa Market: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Basel Rwa Market è gratuita?

Sì. È pubblicata su GitHub da panaversity con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇