{
  "format": "delx/intent-card/v1",
  "id": "ohlc-aggregate-api",
  "intent": "OHLC Aggregate for an agent workflow",
  "title": "OHLC Aggregate API for agents",
  "description": "Aggregate a bounded price list into open, high, low, and close — call when collapsing a price list into open/high/low/close. Use on caller-supplied ticks/returns when agents need signal prep without a licensed live market feed (ottoai-class demand, first-party transform). Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.",
  "keywords": [
    "OHLC Aggregate API",
    "OHLC Aggregate for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/ohlc-aggregate-api",
  "machine_url": "https://commerce.delx.ai/intents/ohlc-aggregate-api.json",
  "recommendation": {
    "tool_name": "util_ohlc_aggregate",
    "service_name": "Delx OHLC Aggregate",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/ohlc-aggregate",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "prices": {
          "description": "Ordered price samples for OHLC aggregation.",
          "type": "array"
        }
      },
      "required": [
        "prices"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "prices": [
        10,
        12,
        9,
        11
      ]
    },
    "example_output": {
      "schema": "delx/util-ohlc-aggregate/v1",
      "count": 4,
      "open": 10,
      "high": 12,
      "low": 9,
      "close": 11
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/ohlc-aggregate -m POST -H 'x-delx-source: intent-card-ohlc-aggregate-api' --max-amount 0.003 -b '{\"prices\":[10,12,9,11]}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-ohlc-aggregate-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/ohlc-aggregate"
  }
}
