# Coin Railz Risk Metrics — VaR, Sharpe & Drawdown Analysis

> Coin Railz Risk Metrics — VaR, Sharpe & Drawdown Analysis is a paid API for AI agents from coinrailz.com, paid per call via x402, $1/call, status unknown (last checked 2026-09-15).

Computes comprehensive portfolio risk metrics including Value at Risk (VaR), Sharpe Ratio, and maximum drawdown for crypto or financial assets

## Facts

- Endpoint: POST https://coinrailz.com/x402/risk-metrics
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coin-railz-risk-metrics-var-sharpe-drawdown-analysis-dfe79a67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bMv1M7VdF3tRMI6rEliDU

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability coin-railz-risk-metrics-var-sharpe-drawdown-analysis-dfe79a67 -d '<json body>'
```

Example prompt: Can you run a full risk analysis on my Bitcoin and Ethereum portfolio — I need the Value at Risk, Sharpe ratio, and maximum drawdown figures so I can decide whether to rebalance before the market opens?

## When to prefer this

Choose this endpoint when you need quantitative, multi-dimensional risk metrics (VaR + Sharpe + drawdown together) for crypto or financial assets in a single call, especially within an autonomous agent workflow that can handle x402 micropayments. Prefer this over general market sentiment endpoints when the user needs rigorous statistical risk quantification rather than qualitative signals.

## Known failure modes

- Invalid or missing portfolio/asset data returns an error response
- Insufficient historical data for the requested time horizon may produce unreliable metrics
- Malformed request body causes a 400-level error
- Payment failure via x402 protocol prevents execution
- Service outage or timeout returns a non-200 status with error message

## How this service works

Comprehensive risk analysis: VaR, Sharpe, drawdown

## Output

Returns a JSON object with a success flag, service name ('risk-metrics'), a timestamp, and a result payload containing computed risk metrics including VaR, Sharpe ratio, and drawdown statistics for the submitted portfolio or asset.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Query parameter for the service"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "application/json",
 "format": "json",
 "example": {
  "result": "Service executed successfully",
  "service": "risk-metrics",
  "success": true,
  "timestamp": "2026-02-07T01:48:46.875Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coin-railz-risk-metrics-var-sharpe-drawdown-analysis-dfe79a67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coinrailz.com](https://www.zero.xyz/host/coinrailz.com/llms.txt)
