# Kimchi Premium Oracle (x402)

> Kimchi Premium Oracle (x402) is a paid API for AI agents from kimchi-x402.pn-26f.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-15).

Returns real-time kimchi premium percentages for Korean crypto markets on both official USD/KRW FX basis and USDT/KRW tradeable basis, across two Korean exchanges.

## Facts

- Endpoint: GET https://kimchi-x402.pn-26f.workers.dev/v1/kimchi/premium?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/kimchi-premium-oracle-x402-19ed1dac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sjPPgAVL4sAE3MX1nqJ5Z

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 kimchi-premium-oracle-x402-19ed1dac
```

Example prompt: What's the current kimchi premium for BTC and ETH — give me both the official FX basis and the USDT-tradeable basis from Upbit?

## When to prefer this

Choose this endpoint when you need dual-basis kimchi premium data (both official FX and USDT-tradeable) in a single call, paid per-use with no subscription. Ideal for agents doing arbitrage analysis, Korean market monitoring, or FX-adjusted crypto pricing — especially when you want the USDT/KRW spread alongside per-coin premiums. Prefer over generic crypto price APIs when Korean exchange pricing and kimchi premium specifically are the target.

## Known failure modes

- Payment not received or invalid x402 USDC payment header — returns 402 Payment Required
- Symbol not found or unsupported on Korean exchanges — that symbol may be omitted or return null values
- Too many symbols requested (over 20) — returns validation error
- Exchange API downstream outage — may return stale or partial data
- Malformed symbols query parameter — returns 400 Bad Request

## How this service works

Dual-basis KRW market intel for agents: kimchi premium on official-FX and USDT-KRW tradeable basis, two Korean exchanges, plain HTTPS JSON. Pay-per-call USDC on Base via x402 v2.

## Output

A JSON object containing: the basis block with official USD/KRW FX rate, USDT/KRW rate on Upbit, and the USDT/KRW premium percentage; plus a symbols array where each entry has the coin symbol, its KRW price on Upbit, its global USD price, the kimchi premium on official FX basis (%), and the kimchi premium on USDT tradeable basis (%).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "symbols": {
       "type": "string",
       "description": "Comma-separated symbols, max 20 (default BTC,ETH,XRP,SOL,DOGE)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "basis": {
    "upbitUsdtKrw": 1351,
    "officialUsdkrw": 1358.97,
    "usdtKrwPremiumPct": -0.586
   },
   "symbols": [
    {
     "symbol": "BTC",
     "upbitKrw": 114078000,
     "globalUsd": 84336.1,
     "upbitPremiumOfficialPct": -0.496,
     "upbitPremiumUsdtBasisPct": 0.091
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/kimchi-premium-oracle-x402-19ed1dac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kimchi-x402.pn-26f.workers.dev](https://www.zero.xyz/host/kimchi-x402.pn-26f.workers.dev/llms.txt)
