CRYPTYX · Triggers Custom

by CRYPTYX

POSTBase

$0.25

per call · USD Coin on Base

Arbitrary trigger definition — POST any {type: z_score|z_differential|composite, ...} predicate and get the full institutional evidence envelope back. 5-year backtest, Sortino, max drawdown, profit factor, walk-forward IS/OOS, regime context, rolling hit rates. Enterprise tier because every request runs a live backtest (no cache). The extensibility endpoint: anything expressible in Metric Slicer becomes a triggerable institutional-grade primitive. Backtests run over the CRYPTYX 200+ tracked digital assets — BTC, ETH, SOL, top-cap + long-tail coverage.

Endpoint

POST https://cryptyx.ai/api/triggers/custom

1

Calls / 30d

1

Unique payers / 30d

Sep 5

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://cryptyx.ai/api/triggers/custom", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "asset": "",
    "definition": {},
    "horizon": ""
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://cryptyx.ai/api/triggers/custom" \
  -H "Content-Type: application/json" \
  -d '{"asset":"","definition":{},"horizon":""}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "_cache": {
    "hit": false
  },
  "backtest_evidence": {
    "hit_rate": 0.615,
    "max_drawdown": -0.515,
    "profit_factor": 2.97,
    "sample_size": 117,
    "sharpe_ratio": 0.4,
    "sortino_ratio": 0.72
  },
  "ok": true,
  "trigger": {
    "asof_day": "2026-07-10",
    "asset": "BTC",
    "confidence": 0.8,
    "expression": {
      "conditions": [
        {
          "metric_id": "TR_ROC_7D",
          "operator": "abs_gt",
          "threshold": 1.5
        },
        {
          "metric_id": "VOL_RV_7D",
          "operator": "lt",
          "threshold": 1
        }
      ],
      "logic": "AND",
      "type": "composite"
    },
    "fires_now": true,
    "horizon": "14d"
  }
}

Payment details

Pay to0x0cd2c9724f185a029101b4aeacf3f114415c394f
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Market Data and the homepage with a featured placement.

Get featured →

More from CRYPTYX & similar services