{"uid":"cap_s55scaLr2WJMp2qvMt5Tk","slug":"signalharness-candles-resample-e157d17e","name":"SignalHarness Candles Resample","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/candles_resample/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"candle_resample_request":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Missing source intervals remain gaps and are not fabricated."],"service_id":"candles_resample","evidence_scope":"caller_supplied_data","resampled_candles":"{\"candles\":[{\"close\":\"11\",\"high\":\"12\",\"low\":\"9\",\"open\":\"10\",\"source_candle_count\":1,\"timestamp_ms\":1699999920000,\"volume\":\"100\"},{\"close\":\"12\",\"high\":\"13\",\"low\":\"10\",\"open\":\"11\",\"source_candle_count\":1,\"timestamp_ms\":1700000040000,\"volume\":\"120\"}],\"interval_ms\":120000}"},"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":"candles_resample","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"ae7b28dab8e062668d220c95b4550a4bf2fb2852cdd85c465ef3481e9cbbb336","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IGyBp1nbIWdD6Pid0dMfo","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resamples OHLCV candlestick data to a different time interval (e.g., 1m → 5m, 1h → 4h)","exampleAgentPrompt":"I have a series of 1-minute OHLCV candles for BTC/USD and I need them resampled into 15-minute candles — can you run that through SignalHarness and give me the aggregated bars?","exampleUseCases":[{"title":"Downsample intraday data for strategy backtesting","prompt":"I've got a bunch of 1-minute crypto candles and need to test a strategy on the 4-hour timeframe — can you resample them to 4h bars for me?"},{"title":"Build multi-timeframe chart overlay","prompt":"I have minute-level OHLCV data for ETH/USDT and I want to display a 1-hour candlestick chart alongside it — please resample the 1m candles into 1h candles."},{"title":"Aggregate exchange tick data to daily bars","prompt":"I pulled raw 5-minute candles from the exchange for the past month and need daily OHLCV bars to feed into my portfolio dashboard — can you aggregate them up to daily candles?"}],"resultDescription":"Returns a JSON object containing resampled OHLCV candle bars at the requested interval, along with any processing warnings, a service ID confirmation, evidence scope label, and a full receipt including payment details, execution timing, request/execution IDs, and a SHA-256 result hash for verification.","failureModes":["Malformed or empty candle_resample_request JSON string returns a validation error","Candle data with mismatched timestamps or gaps may produce warnings in the warnings array","Request payload exceeding 65536 characters is rejected","Invalid target interval specification results in processing failure","Payment failure via x402 prevents execution and returns a 402 response"],"whenToPreferThis":"Choose this endpoint when you have raw lower-timeframe OHLCV candlestick data and need it aggregated to a higher timeframe without running your own resampling logic. It is particularly well-suited for agent workflows that receive tick or minute-level market data from an exchange and need to produce standard chart timeframes (5m, 15m, 1h, 4h, 1d) on the fly. The pay-per-call pricing at $0.01 USDC makes it cost-effective for on-demand resampling tasks without a subscription commitment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:55:25.942Z","isFirstParty":false}