{"uid":"cap__ttL0Gi9Kk2N5lJP6PEeq","slug":"delx-commerce-ohlc-aggregate-883dd45e","name":"Delx Commerce OHLC Aggregate","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/ohlc-aggregate?utm_source=zero.xyz","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_3WbpmbQ_NAMYMKD2jB8kt","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":"Computes OHLC (Open, High, Low, Close) statistics from an ordered array of price samples","exampleAgentPrompt":"Can you compute the OHLC values from this ordered list of prices: [10, 12, 9, 11]? I need the open, high, low, and close.","exampleUseCases":[{"title":"Trading bot candlestick generation","prompt":"I have a list of tick prices from the last hour: [101.5, 103.2, 100.8, 102.4, 99.7, 101.1] — can you turn that into a single OHLC candle so I can plot it on my chart?"},{"title":"Backtesting price bar computation","prompt":"For my backtesting engine, compute OHLC from these sampled prices in order: [55.0, 57.3, 54.1, 56.8, 53.9, 55.5]. I need the open, high, low, close, and count."},{"title":"Portfolio analytics price summarization","prompt":"Take this sequence of portfolio NAV readings from today and give me the OHLC summary: [1000.0, 1020.5, 985.3, 1010.7, 990.0, 1015.2]."}],"resultDescription":"Returns a JSON object with open (first sample), high (maximum), low (minimum), close (last sample), and count (number of samples), plus a schema identifier string 'delx/util-ohlc-aggregate/v1'.","failureModes":["Empty prices array returns undefined or error response","Non-numeric values in the prices array cause computation failure","Malformed request body (missing prices field) returns 400 error","Payment failure via x402 protocol blocks the call","Single-element array may return identical open/high/low/close values"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-use OHLC aggregation with no signup or account required, especially in agent workflows that already use USDC micropayments via the x402 protocol. Prefer it over maintaining your own OHLC computation logic when you want verifiable, stateless price summarization for any ordered price array without infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:01.490Z","isFirstParty":false,"canonicalSlug":"delx-commerce-ohlc-aggregate-883dd45e"}