# SignalHarness Candles Resample

> SignalHarness Candles Resample is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Resamples OHLCV candlestick data to a different time interval (e.g., 1m → 5m, 1h → 4h)

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/candles_resample/invoke
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/signalharness-candles-resample-e157d17e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s55scaLr2WJMp2qvMt5Tk

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability signalharness-candles-resample-e157d17e -d '<json body>'
```

Example prompt: 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?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "candle_resample_request": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/signalharness-candles-resample-e157d17e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
