# Binance Candles with Technical Indicators (x402)

> Binance Candles with Technical Indicators (x402) is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-02).

Fetches OHLCV candlestick data for a crypto trading pair from Binance with pre-computed technical indicators (RSI, EMA, ATR, trend zone), paid per-call via x402 USDC micropayment.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/api/v1/pm/binance/candles?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/binance-candles-with-technical-indicators-x402-964732e4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ep6OR2ztuWBoeLBTkHhq_

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 binance-candles-with-technical-indicators-x402-964732e4
```

Example prompt: Pull the last 100 hourly BTC candles from Binance and tell me the RSI, EMA20, EMA50, and whether BTC is currently in a support/resistance zone.

## When to prefer this

Choose this endpoint when your agent needs candlestick price history with technical indicators (RSI, EMA, ATR, trend zone) already computed server-side, avoiding the need to fetch raw OHLCV and run your own TA library. Ideal for trading agents or onchain bots that want a low-overhead, pay-per-call (no API key) approach to price analysis on Binance-listed pairs. Prefer alternatives if you need order book depth, funding rates, or real-time tick data rather than candle-based indicators.

## Known failure modes

- Invalid or unsupported symbol returns error (e.g. non-USDT pairs that aren't supported)
- interval not in enum ['1m','5m','15m','1h','4h','1d'] returns 400
- limit outside 10-500 range returns validation error
- x402 payment failure (insufficient USDC balance or wrong network) blocks the call
- Binance upstream downtime may cause 502/timeout
- Stale data if Binance feed is delayed

## How this service works

Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.

## Output

Returns an array of OHLCV candles (open, high, low, close, volume, timestamp) plus aggregate stats: last price, change percentage, source exchange, and a pre-computed indicators block containing RSI14, EMA20, EMA50, ATR14, ATR%, trend direction (up/down/sideways), and a price zone object (low bound, high bound, in_zone boolean). Also includes candle count, interval, and updated_at timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "maximum": 500,
       "minimum": 10,
       "description": "Number of candles (default 100)"
      },
      "symbol": {
       "type": "string",
       "examples": [
        "BTC",
        "ETH",
        "SOLUSDT"
       ],
       "description": "Base asset or pair (default BTC); quote is USDT"
      },
      "interval": {
       "enum": [
        "1m",
        "5m",
        "15m",
        "1h",
        "4h",
        "1d"
       ],
       "type": "string",
       "description": "Candle size (default 1h)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 100,
  "last": 80436.6,
  "source": "binance",
  "symbol": "BTCUSDT",
  "candles": [
   {
    "c": 80305.21,
    "h": 80418.67,
    "l": 79916,
    "o": 80058.01,
    "t": "2026-10-29T13:00:00Z",
    "v": 792.98
   }
  ],
  "interval": "1h",
  "change_pct": 1.8,
  "indicators": {
   "zone": {
    "low": 79900.9,
    "high": 80519.9,
    "in_zone": true
   },
   "atr14": 412.7,
   "ema20": 80210.4,
   "ema50": 79880.1,
   "rsi14": 58.3,
   "trend": "up",
   "atr14_pct": 0.51
  },
  "updated_at": "2026-10-29T14:20:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/binance-candles-with-technical-indicators-x402-964732e4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
