RiskModels_API is the authoritative public reference repository for the RiskModels equity risk model API, maintained by Blue Water Macro Corp. The repository brings together model methodology, API documentation, the developer portal, code examples, and AI agent integration resources, aiming to provide developers, quantitative researchers, and AI agents with institutional-grade U.S. equity risk analysis capabilities.
In terms of purpose, the API is aimed at risk decomposition, return attribution, and hedge ratio calculation for U.S. equities. It provides split- and dividend-adjusted total return series, factor risk decomposition at the market/industry/sub-industry levels, return attribution, and USD-denominated ETF hedge ratios (L1/L2/L3), designed to be executable using liquid primary ETFs.
Main capabilities include: daily factor decomposition covering approximately the 3,000 largest U.S. equities by market cap at each month-end; hedge ratios providing USD-denominated ETF hedge amounts; historical time series, including adjusted returns (from 2006-01-04), rolling hedge ratios (from 2010-12-08), share of explained risk (from 2011-12-07), and L* residual levels (from 2013-01-01). The historical panel covers approximately 16,000 U.S. equities. Data is updated daily. The API supports REST, the Python SDK (riskmodels-py), and a built-in MCP server, facilitating integration with LLMs and AI agents. The MCP server provides 25 local tools and 26 hosted tools, covering stock snapshots, decomposition, comparison, returns, attribution, residuals, macro correlations, fundamentals, portfolio analysis, ranking, screening, peers, search, security identity resolution, and other functions.
Usage: Developers can call the REST API directly or use the Python SDK for more convenient integration. The SDK provides ticker resolution, semantic field normalization, validation with guiding errors, and LLM-friendly context formatting. For AI agents, the hosted MCP server (endpoint https://riskmodels.app/api/mcp,支持 Bearer token authentication) or the local MCP server (stdio transport, suitable for Cursor, Claude Desktop, Zed). In Cursor, the plugin can be installed by searching for RiskModels in the Marketplace; the plugin uses OAuth 2.1 with PKCE authentication, and tools are read-only. In addition, the repository also provides a command-line CLI (npm package riskmodels) and a Next.js developer portal.
Applicable scenarios include: quantitative investment research, portfolio risk analysis, ETF hedging strategy formulation, AI agent-driven financial data analysis, and teaching and example reference.
Limitations and notes: Use requires a RiskModels account; new accounts have a $20 prepaid credit, and billing is per tool call (most single-stock calls are $0.005, fundamentals $0.02, and a full portfolio exposure report $0.25). The public API and machine-readable documentation do not use the api.riskmodels.app hostname; use riskmodels.app instead. Model output has start-date limitations, and factor output requires a full regression window. Examples and documentation in the repository may be updated with versions; for specific rates and plans, refer to the official pricing page.