engines.macro.observables Engines observed

Macro — 핵심 Observable 5 축 (observables)

매크로 답변의 indicator 5 축 (CPI/PMI/금리/환율/유동성) 단일 카탈로그 — 각 축의 source · 갱신 주기 · 단위 · interpretation 정의. cycle/regime/scenario 분류의 1 차 입력 데이터 SSOT.

이 스킬

Macro — 핵심 Observable 5 축 (observables)

매크로 답변의 indicator 5 축 (CPI/PMI/금리/환율/유동성) 단일 카탈로그 — 각 축의 source · 갱신 주기 · 단위 · interpretation 정의. cycle/regime/scenario 분류의 1 차 입력 데이터 SSOT.

Engines observed engines.macro.observables

이어 가기

절차

실행 순서

  1. 1

    name : str

  2. 2

    value : float

  3. 3

    unit : str # %/bp/index/...

  4. 4

    dateRef : str # YYYY-MM 또는 YYYY-MM-DD

  5. 5

    source : str # KOSIS / 한은 / OECD / ...

  6. 6

    모든 indicator 의 단위 enum (%/bp/index/원/달러/조원/...) 안.

  7. 7

    dateRef YYYY-MM 또는 YYYY-MM-DD 형식.

  8. 8

    source 가 신뢰 source 카탈로그 (한은/Fed/OECD/KOSIS/BLS/...) 안.

  9. 9

    동일 axis × market 재호출 시 indicators list 안정 (sort 순서 동일).

  10. 10

    [engines.macro](/skills/engines.macro) — base SKILL (12 axis)

  11. 11

    [engines.macro.cycles](/skills/engines.macro.cycles) — PMI/CLI 가 cycle phase 1 차 입력

  12. 12

    [engines.macro.regimes](/skills/engines.macro.regimes) — liquidity/rates 가 regime 분류 입력

엔진 역할

macro 엔진의 핵심 indicator 카탈로그 SSOT sub-spec. base SKILL engines.macro 의 12 axis 가 사용하는 indicator 5 축의 source · 갱신 주기 · 단위 · interpretation 단일 정의. cycle/regime/scenario 분류의 1 차 입력.

공개 호출 방식

import dartlab

# 1. 단일 indicator 시계열 (axis 자동 분기)
cpi = dartlab.macro("inflation", market="KR")
# → CPI YoY 시계열

pmi = dartlab.macro("cycle", market="KR")
# → PMI / OECD CLI 등 cycle indicator

rates = dartlab.macro("rates", market="KR")
# → 기준금리 / 국고채 curve

fx = dartlab.macro("exchange", market="KR")
# → USD/KRW 시계열

liquidity = dartlab.macro("liquidity", market="KR")
# → M2 / 신용 / 유동성 indicator

호출 동작

본 sub-spec 은 카탈로그 — 실제 호출은 base SKILL engines.macro 의 12 axis. 본 sub-spec 은 각 axis 가 어떤 indicator 를 어디서 가져와 어떻게 해석하는지 정의.

5 축 카탈로그

1. 인플레이션 (inflation)

indicatormarketsource단위갱신 주기
CPI YoYKR통계청 KOSIS%
Core CPIKR통계청%
PPIKR한국은행%
CPI YoYUSBLS%
Core PCEUSBEA%

interpretation: CPI > 3% 인플레이션, < 1% 디플레이션 우려. Core 가 본 신호 (식료품/에너지 제외).

2. 경기 (cycle)

indicatormarketsource단위갱신 주기
OECD CLIKR/US/GlobalOECDindex (100 분기점)
한은 BCIKR한국은행index
ISM Manufacturing PMIUSISMindex (50 분기점)
Markit PMIKRS&P Globalindex
산업생산 YoYKR/US통계청/Fed%

interpretation: PMI > 50 확장, < 50 수축. CLI > 100 호황, < 100 침체. 1 차 미분 부호로 phase 전환 (engines.macro.cycles SSOT).

3. 금리 (rates)

indicatormarketsource단위갱신 주기
기준금리KR한국은행%금통위
FFRUSFed%FOMC
국고채 1Y/3Y/5Y/10YKRKOFIA%
US Treasury 1M~30YUSTreasury%
회사채 (AAA/AA/A/BBB)KRKIS평가%
TED spreadUSFedbp

interpretation: 10Y - 3M 또는 10Y - 2Y 가 yield curve 역전 신호 (recession 1~2 년 선행). 스프레드 확대 = 신용 위험 ↑.

4. 환율 (exchange)

indicatormarketsource단위갱신 주기
USD/KRWKR한국은행
USD/JPYglobalBOJ
USD/CNYglobalPBOC위안
DXYUSICEindex
EUR/USDglobalECB달러
실효환율 (NEER/REER)KRBISindex

interpretation: KRW 절하 (USD/KRW ↑) = 수출주 alpha + 수입물가 ↑. DXY ↑ = 신흥국 위험 ↑.

5. 유동성 (liquidity)

indicatormarketsource단위갱신 주기
M2 YoYKR/US한은/Fed%
신용잔액 (가계+기업)KR한국은행조원
Fed 자산 (BS)USFed조달러
ECB 자산EUECB조유로
한은 본원통화KR한국은행조원
Repo / SOFRUSFedbp

interpretation: M2 YoY 가속 = 유동성 확대 → regime “expansion/recovery”. 급감 = “contraction/crisis”.

대표 반환 형태

dartlab.macro(<axis>, market="KR")
→ dict
   axis : str                # "inflation" / "cycle" / "rates" / "exchange" / "liquidity"
   market : str              # "KR" / "US" / "global"
   indicators : list[dict]   # 본 sub-spec 카탈로그 표의 indicator
     - name : str
     - value : float
     - unit : str            # %/bp/index/...
     - dateRef : str         # YYYY-MM 또는 YYYY-MM-DD
     - source : str          # KOSIS / 한은 / OECD / ...
   interpretation : str      # 본 sub-spec 의 해석 룰 적용 결과
   dateRef : str             # 최신 indicator dateRef

evidence 기준

매크로 답변은 indicator 단위 (% / bp / index) + 정확한 dateRef + source 명시. 단위 누락 또는 dateRef 누락 시 답변 거부 (base SKILL engines.macro forbidden 룰).

기본 검증

  • 모든 indicator 의 단위 enum (%/bp/index/원/달러/조원/…) 안.
  • dateRef YYYY-MM 또는 YYYY-MM-DD 형식.
  • source 가 신뢰 source 카탈로그 (한은/Fed/OECD/KOSIS/BLS/…) 안.
  • 동일 axis × market 재호출 시 indicators list 안정 (sort 순서 동일).

본 spec 은 공개 실행 문서다. 5 축 카탈로그 또는 indicator source 가 변경되면 본 파일을 같은 변경에서 갱신한다.

관련

런타임

실행 환경별 호환성

환경상태비고 / 제한
Local Python supported·
Server supported·
MCP supported·
Web AI supported·
Pyodide limited·