Files
LifetimePD/config.yaml
Variet Agent 9fba224623 fix(ecos): correct all 6 ECOS API stat/item codes #task-292
- GDP: 111Y002/10111 -> 902Y015/KOR (international comparative stats)
- Unemployment: 901Y027/3 -> 901Y027/I61BC (correct item for rate)
- CD rate: 817Y002/010502000 -> 721Y001/2010000 (market interest rates)
- CPI: now computes YoY growth from level index (pct_change)
- Leading index: monthly (M) fetch + annual average (no annual data available)
- Fix DataFrame merge: dedup index, dropna before concat
- Fix NaN in scenario Z paths: fallback to z_scenario
- Update config.yaml with verified stat codes
2026-03-10 22:53:51 +09:00

52 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================
# Lifetime PD Model Configuration
# ============================================
# BOK ECOS API
ecos:
api_key: "C5220CGY8FYFDN43B7ON"
base_url: "https://ecos.bok.or.kr/api"
# 주요 통계코드 (검증 완료 2026-03-10)
stat_codes:
gdp_growth: "902Y015" # 국제 주요국 경제성장률 / ITEM: KOR
unemployment: "901Y027" # 경제활동인구 / ITEM: I61BC (실업률)
base_rate: "722Y001" # 한국은행 기준금리 / ITEM: 0101000
cd_rate: "721Y001" # 시장금리 / ITEM: 2010000 (CD 91일)
cpi: "901Y009" # 소비자물가지수 / ITEM: 0 (총지수, level→YoY% 변환)
composite_leading: "901Y067" # 경기종합지수 / ITEM: I16A (선행, 월별→연평균)
# 모형 파라미터
model:
# 자산상관계수 (Basel IRB 기준 0.12~0.24, 기업 평균 ~0.20)
rho: 0.20
# 신용등급 체계 (한국 3사 공통)
rating_grades: ["AAA", "AA", "A", "BBB", "BB", "B", "CCC", "D"]
# 시나리오 설정
scenarios:
upside:
name: "호황 (Upside)"
z_multiplier: 1.0 # Zt = μ + 1.0σ
weight: 0.20 # ECB 방식 확률가중치
base:
name: "중립 (Base)"
z_multiplier: 0.0
weight: 0.50
downside:
name: "불황 (Downside)"
z_multiplier: -1.5 # Fed DFAST 역사적 하위 5%
weight: 0.30
# 50년 수렴 메커니즘
convergence:
pit_horizon: 5 # PIT 적용 기간 (년)
transition_horizon: 10 # TTC로의 전환 완료 기간 (년)
mean_reversion_lambda: 0.3 # Mean-reversion 속도
total_horizon: 50 # 총 예측 기간 (년)
# 출력 설정
output:
save_dir: "results"
figure_dpi: 150
figure_format: "png"