# Stock Bloc Quant Sim – Strategy Performance Simulator

> Stock Bloc Quant Sim – Strategy Performance Simulator is a paid API for AI agents from stockbloc.ai.studio, paid per call via x402, $0.1/call, status unknown (last checked 2026-10-12).

Runs a quantitative simulation of a trading strategy and returns performance metrics including Sharpe ratio, alpha, max drawdown, annualized return, and benchmark comparison.

## Facts

- Endpoint: POST https://stockbloc.ai.studio/api/v1/agent/quant-sim?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stock-bloc-quant-sim-strategy-performance-simulator-3d6b782f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2fIjHJuGniYFVZVL6Yhje

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 stock-bloc-quant-sim-strategy-performance-simulator-3d6b782f -d '<json body>'
```

Example prompt: Run a quant simulation on my momentum trading strategy and give me the Sharpe ratio, alpha, max drawdown, and annualized return compared to the benchmark.

## When to prefer this

Choose this endpoint when you need quantitative performance metrics (Sharpe ratio, alpha, max drawdown, annualized return) for a trading strategy simulation. It is distinct from SEC filing analysis or real-time market data endpoints on the same platform — use this specifically for strategy backtesting and risk-adjusted performance computation. Best for AI agents evaluating or comparing trading models before deployment.

## Known failure modes

- Missing required 'input' object causes validation error
- Invalid method enum value (not POST/PUT/PATCH) returns 400
- Invalid bodyType enum (not json/form-data/text) returns 400
- Malformed strategy parameters in body may produce empty or error response
- Payment failure via x402/USDC results in 402 Payment Required
- Network timeout if simulation is computationally intensive

## How this service works

Financial research API for AI agents: Stock Bloc SEC Analyst (10-K/10-Q/8-K filing analysis), market data, MCP tools, and x402 USDC payments on Base.

## Output

Returns a JSON object with: status (success/error), evaluatedAt (ISO timestamp), sharpeRatio (risk-adjusted return metric), alpha (excess return vs benchmark), maxDrawdown (largest peak-to-trough loss as a decimal), annualizedReturn (annualized % return), and benchmarkReturn (benchmark comparison return).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "alpha": 0.116,
  "status": "success",
  "evaluatedAt": "2026-09-29T00:00:00.000Z",
  "maxDrawdown": -0.092,
  "sharpeRatio": 2.65,
  "benchmarkReturn": 0.312,
  "annualizedReturn": 0.428
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stock-bloc-quant-sim-strategy-performance-simulator-3d6b782f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stockbloc.ai.studio](https://www.zero.xyz/host/stockbloc.ai.studio/llms.txt)
