Logotipo de Basel Rwa Market

Basel Rwa Market

Organización
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).

Descripción general

Editorpanaversity
Repositorioagentfactory-business-plugins
Nombre de la habilidadbasel-rwa-market
Estrellas
37
Forks
19
Archivos incluidos
Solo instrucciones
LicenciaApache-2.0
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por panaversity en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Basel Rwa Market en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/panaversity/agentfactory-business-plugins/tree/main/banking/skills/basel-rwa-market
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese 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
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Basel Rwa Market en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Basel Rwa Market automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Basel Rwa Market no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo 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.

Preguntas frecuentes

¿Qué hace la habilidad de 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...

¿Por qué usar Basel Rwa Market en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Basel Rwa Market está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Basel Rwa Market en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/panaversity/agentfactory-business-plugins/tree/main/banking/skills/basel-rwa-market. TypingMind lee el archivo SKILL.md de esa carpeta e instala su contenido como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Basel Rwa Market?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Basel Rwa Market?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Basel Rwa Market con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Basel Rwa Market?

Sí. panaversity la ha publicado en GitHub bajo la licencia Apache-2.0. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇