Skip to main content
Glama
wanxinwanxin

riskprism

by wanxinwanxin

riskprism

미국 주식 포트폴리오 리스크를 팩터 스펙트럼으로 분해합니다.

탐색기: https://risk-prism-production.up.railway.app · Agent 모델 카드: /model.md

AI 에이전트가 바로 사용할 수 있도록 설계된 오픈소스 Barra 스타일 기초 팩터 리스크 모델입니다. Python 라이브러리, MCP 서버, 그리고 대부분의 유동성 있는 미국 보통주를 다루는 주간 배포 모델 아티팩트를 포함합니다.

  • 7가지 스타일 팩터 (규모, 가치, 모멘텀, 변동성, 유동성, 품질, 레버리지) + 12개 산업 (Fama-French 방식) + 시장 팩터

  • 무료 배포 가능한 데이터 체인: SEC EDGAR(공개 도메인)의 재무 데이터와 SIC 코드, 플러그형 공급자의 가격 데이터

  • 하이브리드 배포: 사전 계산된 아티팩트(익스포저, 팩터 공분산, 특이 리스크)가 주간 일정으로 게시되며, 전체 파이프라인도 공개되어 누구나 재현하거나 확장할 수 있습니다

면책 조항: 연구용 소프트웨어이며 있는 그대로 제공됩니다. 이 문서의 내용은 투자 조언이 아닙니다.

AI 에이전트용 (MCP)

{
  "mcpServers": {
    "riskprism": {
      "command": "riskprism-mcp",
      "env": { "RISKPRISM_ARTIFACTS": "/path/to/artifacts" }
    }
  }
}

노출된 도구: get_model_info, get_portfolio_risk, get_factor_exposures, stress_test, check_coverage. 가중치는 포트폴리오 가중치(매도 포지션은 음수)이며, 변동성은 연간 환산 소수점입니다.

Related MCP server: Portfolio Rotation MCP Server

인간용 (Python)

from riskprism import RiskModel

model = RiskModel.load("artifacts")
report = model.portfolio_risk({"AAPL": 0.4, "MSFT": 0.3, "XOM": 0.3})
print(report["total_vol"], report["factor_var_contributions"])

model.stress_test({"AAPL": 1.0}, {"market": -0.10, "momentum": -0.05})

모델 직접 빌드하기

pip install -e ".[dev]"
export RISKPRISM_EDGAR_UA="your-project (you@example.com)"   # SEC fair-access policy
riskprism-build --max-names 3000 --out artifacts             # yahoo prices, no key needed
riskprism-build --prior artifacts_prev --out artifacts       # append new weeks to a prior build
riskprism-build --provider tiingo ...                        # licensed data, needs TIINGO_API_KEY

주간 GitHub Action이 정확히 이 작업을 실행하고 아티팩트 디렉토리를 게시합니다; .github/workflows/build-model.yml을 참조하세요.

탐색기

모델 탐색을 위한 백엔드 없는 정적 사이트(Railway에서 서비스되며, 매주 빌드될 때마다 다시 렌더링됨)입니다: 누적 팩터 수익률, 팩터 변동성 및 상관관계, 스트레스 테스트 슬라이더가 포함된 클라이언트 사이드 포트폴리오 리스크 샌드박스, 주식별 팩터 프로필, 그리고 시각적 방법론 안내를 제공합니다. 모든 계산은 임베디드 아티팩트를 기반으로 브라우저에서 실행됩니다.

에이전트는 모든 빌드의 일반 마크다운 미러를 /model.md ( /llms.txt로 인덱싱)에서 얻을 수 있습니다: 모델 카드, 팩터 정의, 상관관계, 전체 커버리지 목록 — DOM 파싱 없이 제공됩니다.

모든 것을 로컬에서 렌더링:

riskprism-site --artifacts artifacts --out site   # index.html + model.md + llms.txt

모델 요약

구성 요소

선택

기간

중기 (주간 수익률, 연환산 출력)

추정

횡단면 WLS (√cap 가중치), cap 가중 산업 제약

팩터 공분산

EWMA — 변동성 반감기 26주, 상관관계 반감기 26주, PSD 복구됨

특이 리스크

EWMA 잔여 변동성과 구조적(특성 기반) 사전 분포를 이력 길이에 따라 혼합

유니버스

추정: 주가 ≥ $2, ADV ≥ $1M, 26주 이상 이력 · 커버리지: 살아있는 모든 $1 이상, 격차는 사전 분포로 채움

히스토리

캡처 전방 방식: 주간 빌드가 이전 릴리스를 이어받음; 상장 폐지는 대체 처리, 생존 편향은 시간이 지나며 소멸

전체 방법론은 docs/METHODOLOGY.md에, 설계 결정 및 근거는 docs/DECISIONS.md에 있습니다.

라이선스

코드는 MIT 라이선스입니다. 게시된 모델 아티팩트는 SEC EDGAR(공개 도메인) 및 타사 가격 제공업체에서 구축된 파생 데이터로, 데이터 라이선스 논의는 docs/DECISIONS.md를 참조하세요.

A
license - permissive license
Not graded
quality - not tested
Not graded
maintenance - not tested

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Portfolio risk analytics MCP server — VaR, Monte Carlo simulation, stress testing, portfolio optimization, options Greeks, and correlation analysis. Real market data via Yahoo Finance. Free tier available, Pro at $29/mo.
    10
    138
    2
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    A quantitative finance MCP server providing 24 tools for option pricing, portfolio optimization, risk measurement, fixed income analysis, and utility functions, enabling AI clients to perform professional financial calculations.
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    MCP server providing portfolio analytics tools: beta to a benchmark, sector correlation, and FIFO trade matching with realized/unrealized P&L using Yahoo Finance prices.
    3

View all related MCP servers

Related MCP Connectors

  • Portfolio risk analytics — VaR, Monte Carlo, optimization, options Greeks, stress testing.

  • HPSILab Quant finance MCP for US stocks, ETFs, options, Monte Carlo, backtesting, and risk analysis.

  • 7-factor stock scoring MCP server. US/HK/CN, 74 stocks. Free + Premium (USDC/Base). x402 ready.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wanxinwanxin/risk-prism'

If you have feedback or need assistance with the MCP directory API, please join our Discord server