{"uid":"cap_MfM95HoQ-_9ZDmS4QaqgX","slug":"signalharness-trades-to-candles-converter-6f5b3688","name":"SignalHarness Trades-to-Candles Converter","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/trades_to_candles/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"trade_candle_request":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Output covers only supplied trades and interval boundaries."],"service_id":"trades_to_candles","evidence_scope":"caller_supplied_data","generated_candles":"{\"candles\":[{\"close\":\"11\",\"high\":\"11\",\"low\":\"10\",\"open\":\"10\",\"timestamp_ms\":1699999980000,\"trade_count\":2,\"volume\":\"5\"}],\"interval_ms\":60000}"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"trades_to_candles","executionId":"example-execution","startedAtMs":0,"amountAtomic":"15000","resultSha256":"0894933bcddaf53ee690e45fe57c904fb9e5ee0139f97da61643e5e586451702","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RCM6SYfmhboePAWsjmYZT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts raw trade tick data into OHLCV candlestick (bar) data for a specified time period","exampleAgentPrompt":"Take this list of raw trades and convert them into 5-minute OHLCV candlestick bars so I can run technical analysis on them.","exampleUseCases":[{"title":"Backtesting strategy on tick data","prompt":"I have a CSV of raw trade executions from a DEX — can you aggregate them into 1-hour candles so I can backtest my moving average strategy?"},{"title":"Real-time chart data from trade feed","prompt":"I'm getting a stream of individual trade events from my exchange — convert the last hour of trades into 5-minute candlestick bars so I can display them on a chart."},{"title":"Reconstructing candles from historical trades","prompt":"I downloaded raw trade history for ETH/USDC from an on-chain source — transform it into daily OHLCV candles so I can analyze price action over the past month."}],"resultDescription":"Returns a JSON object containing generated OHLCV candlestick data, a list of any warnings encountered during aggregation, the service ID, and an evidence scope indicator. Also includes a full receipt with payment details, request and execution IDs, network info, latency metrics, and a SHA-256 hash of the result for verification.","failureModes":["Invalid or malformed trade_candle_request JSON string returns an error","Input exceeds 65536 character limit causes rejection","Empty or too-short input (below 2 characters) is rejected","Payment failure or insufficient USDC balance prevents execution","Malformed trade records with missing timestamps or prices may produce warnings or incomplete candles"],"whenToPreferThis":"Choose this endpoint when you have raw trade tick data (individual buy/sell events) and need to aggregate them into OHLCV candlestick bars for charting, backtesting, or technical analysis. Prefer this over pre-built chart data APIs when you have custom or non-standard trade data sources (e.g., on-chain DEX trades, proprietary execution logs) that aren't available via standard market data providers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:07:22.196Z","isFirstParty":false}