{"uid":"cap_OofSPfPo_1PvJYCm-j5Fi","slug":"delx-ohlc-aggregate-213e0c00","name":"Delx OHLC Aggregate","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 sear…","url":"https://api.delx.ai/api/v1/x402/ohlc-aggregate","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prices":{"type":"array","description":"Ordered price samples for OHLC aggregation."}}},"responseSchema":{"type":"json","example":{"low":9,"high":12,"open":10,"close":11,"count":4,"schema":"delx/util-ohlc-aggregate/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BVmf-hGM0Y5qnchqOrO8A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Aggregates an ordered list of price samples into open, high, low, and close (OHLC) values","exampleAgentPrompt":"Collapse this price list [12.5, 13.1, 11.8, 12.9, 14.0, 13.5] into OHLC values so I can use them as trading signal inputs.","exampleUseCases":[{"title":"Candlestick prep for trading bot","prompt":"I have a batch of price ticks from my strategy — [101.2, 103.5, 99.8, 102.4, 105.0, 104.1] — can you aggregate them into an OHLC candlestick for me?"},{"title":"Backtesting signal normalization","prompt":"Before I run my backtest, I need to convert these raw price samples [55.0, 57.3, 54.1, 56.8] into open, high, low, and close values. Can you do that?"},{"title":"Portfolio analytics dashboard prep","prompt":"Take these sampled prices for the session [200.1, 215.3, 198.7, 210.5, 212.0] and give me the OHLC breakdown so I can feed it into my analytics dashboard."}],"resultDescription":"A deterministic JSON object containing the computed open (first price), high (maximum price), low (minimum price), and close (last price) derived from the input price array.","failureModes":["Empty prices array returns an error or null OHLC values","Non-numeric values in the prices array cause a validation failure","Missing prices field in request body causes a 400 bad request","Payment failure or insufficient USDC balance blocks execution via x402"],"whenToPreferThis":"Choose this endpoint when you have caller-supplied price data (ticks, returns, or sampled prices) and need a deterministic, stateless OHLC aggregation without accessing a live market data feed. Ideal for backtesting pipelines, signal preparation, and analytics dashboards where you supply your own price array and want a cheap, fast, first-party transform at $0.003 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:59:19.484Z","isFirstParty":false}