Intelligence · quant.forecast

Quant Forecast

Calibrated direction, price range, levels and trade setup for a horizon

Request
POST /v1/quant/forecast
Price
$0.05 USDC / fUSD
Typical latency
~900 ms
Settles on
Hedera testnet · x402
Try it in the browser

Data sources

  • Binance

    Primary OHLCV candles with volume

  • Bybit

    Candles cross-check, funding rate, open interest

  • OKX

    Candles cross-check and fallback

  • Finality quant engine

    Indicators, levels, calibrated forecasts, backtests

Input

JSON body (content-type: application/json). Add ?format=compact to get numbers only.

FieldTypeRules
preparedIdstringOptional readiness snapshot id from /v1/quant/prepare
symbol*string—
horizonMinutesinteger≥ 5 · ≤ 1440 · default 30
intervalstringone of 1m, 5m, 15m, 1h, 4h, 1d
riskProfilestringone of conservative, balanced, aggressive · default "balanced"
contextbooleandefault true

Code

import { x402Client } from '@x402/core/client'
import { wrapFetchWithPayment, decodePaymentResponseHeader } from '@x402/fetch'
import { ExactHederaScheme } from '@x402/hedera/exact/client'
import { createClientHederaSigner } from '@x402/hedera'
import { PrivateKey } from '@hiero-ledger/sdk'

// Your Hedera account pays USDC (0.0.429274 on testnet); Blocky402 pays the network fee.
const signer = createClientHederaSigner(process.env.HEDERA_ACCOUNT_ID!, PrivateKey.fromStringECDSA(process.env.HEDERA_PRIVATE_KEY!), { network: 'hedera:testnet' })
const client = x402Client.fromConfig({ schemes: [{ network: 'hedera:testnet', client: new ExactHederaScheme(signer) }] })
const paidFetch = wrapFetchWithPayment((input, init) => globalThis.fetch(input, init), client)

const res = await paidFetch('https://finality.accuracy.wtf/api/x402/v1/quant/forecast', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({"symbol":"HBAR","horizonMinutes":30,"riskProfile":"balanced"}),
})
const { data, meta } = await res.json()           // $0.05 USDC, paid only if the call succeeds
const receipt = decodePaymentResponseHeader(res.headers.get('PAYMENT-RESPONSE')!)
console.log(data, meta.sources, receipt.transaction)

Illustrative response

{
  "success": true,
  "operationId": "quant.forecast",
  "requestId": "example",
  "data": {
    "symbol": "HBAR",
    "horizonMinutes": 30,
    "direction": "long",
    "confidence": "medium",
    "actionable": false,
    "probability": {
      "up": 0.48,
      "model": 0.56,
      "edge": false
    },
    "expectedRange": {
      "p10": 0.0678,
      "median": 0.0683,
      "p90": 0.0687
    },
    "setup": {
      "entry": 0.0683,
      "stopLoss": 0.0679,
      "takeProfits": [
        0.0688,
        0.0692
      ],
      "rewardRisk": 1.5
    }
  },
  "meta": {
    "sources": [
      "binance",
      "bybit",
      "okx",
      "engine"
    ],
    "asOf": "2026-11-07T00:00:00.000Z",
    "synthetic": true
  }
}