# QuantX402 Stock Forecast

> QuantX402 Stock Forecast is a paid API for AI agents from quantx402.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-20).

Returns multi-timeframe directional forecasts (15m, 1h, 4h, 1d) for major US stocks and ETFs using a seeded bootstrap baseline model, including direction, probability-of-up, 80% range, invalidation level, and per-step percentiles.

## Facts

- Endpoint: GET https://quantx402.app/api/v1/stocks/forecast?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/quantx402-stock-forecast-ddec29ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sanwf7u150qqsqYwmTOFD

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 quantx402-stock-forecast-ddec29ef
```

Example prompt: What's the 1-hour directional forecast for NVDA right now — direction, probability of going up, and the 80% price range?

## When to prefer this

Use this endpoint when you need a quick, structured probabilistic price forecast for one of the 11 supported major US stocks or ETFs across standard candle timeframes. It is best suited for agents or traders wanting a statistical directional signal with confidence ranges rather than a qualitative summary. Prefer this over sentiment or news endpoints when you need a quantitative, model-derived forecast with explicit probability and range outputs. Not appropriate for unsupported symbols, crypto, or production trading systems requiring calibrated probabilistic outputs.

## Known failure modes

- Unsupported symbol (only SPY, QQQ, AAPL, NVDA, TSLA, MSFT, AMZN, META, GOOGL, IWM, DIA are supported) returns an error
- Invalid or unsupported timeframe value returns a validation error
- Missing required 'symbol' query parameter returns a 400 error
- Payment failure or insufficient USDC balance prevents call from completing
- Model may not reflect real-time market conditions as it relies on a scheduled candle store

## How this service works

Stock Forecast: next-session and 5-day forecast for US stocks/ETFs (SPY, QQQ) from our own candle store and a seeded bootstrap baseline model: direction, probability-of-up share of sampled paths, 80% range, invalidation level, per-step percentiles. Experimental, not calibrated. Not financial advice.

## Output

Returns a JSON object containing the forecasted price direction (up/down), probability-of-up as a share of sampled bootstrap paths, an 80% confidence price range, an invalidation level (price at which the forecast is considered failed), and per-step percentile statistics across the forecast horizon for the requested symbol and timeframe.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "tf": {
       "enum": [
        "15m",
        "1h",
        "4h",
        "1d"
       ],
       "type": "string",
       "description": "Candle timeframe (default 1d)"
      },
      "symbol": {
       "type": "string",
       "description": "US stock/ETF symbol (SPY, QQQ, AAPL, NVDA, TSLA, MSFT, AMZN, META, GOOGL, IWM, DIA)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/quantx402-stock-forecast-ddec29ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from quantx402.app](https://www.zero.xyz/host/quantx402.app/llms.txt)
