{
  "format": "delx/intent-card/v1",
  "id": "pairs-hedge-ratio-api",
  "intent": "Pairs Hedge Ratio OLS for an agent workflow",
  "title": "Pairs Hedge Ratio OLS API for agents",
  "description": "OLS hedge ratio beta of y on x (no intercept). Call when sizing the short leg in a pairs trade offline. Returns beta and n as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.",
  "keywords": [
    "Pairs Hedge Ratio OLS API",
    "Pairs Hedge Ratio OLS for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-23",
  "canonical_url": "https://commerce.delx.ai/intents/pairs-hedge-ratio-api",
  "machine_url": "https://commerce.delx.ai/intents/pairs-hedge-ratio-api.json",
  "recommendation": {
    "tool_name": "util_pairs_hedge_ratio",
    "service_name": "Pairs Hedge Ratio OLS",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/pairs-hedge-ratio",
    "price_usdc": "0.001",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "x": {
          "type": "array",
          "description": "Independent series for OLS hedge ratio"
        },
        "y": {
          "type": "array",
          "description": "Dependent series for OLS hedge ratio"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "x": [
        1,
        2,
        3,
        4,
        5
      ],
      "y": [
        2,
        4,
        5.5,
        8.1,
        10
      ]
    },
    "example_output": {
      "schema": "delx/util-pairs-hedge-ratio/v1",
      "beta": 1.9800000000000002,
      "n": 5
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/pairs-hedge-ratio -m POST -H 'x-delx-source: intent-card-pairs-hedge-ratio-api' --max-amount 0.001 -b '{\"x\":[1,2,3,4,5],\"y\":[2,4,5.5,8.1,10]}'",
      "max_amount_usdc": "0.001"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-pairs-hedge-ratio-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/pairs-hedge-ratio"
  }
}
