# Fabler Labs KRW Crypto Price Lookup

> Fabler Labs KRW Crypto Price Lookup is a paid API for AI agents from x402.fablerlabs.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Fetches live Korean Won (KRW) spot price for a given crypto symbol from Upbit and/or Bithumb exchanges, including spread and 24h volume data.

## Facts

- Endpoint: GET https://x402.fablerlabs.com/market/krw-prices
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fabler-labs-krw-crypto-price-lookup-7df670c4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uBDkKYxYhMZbc_j8DhUqu

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 fabler-labs-krw-crypto-price-lookup-7df670c4
```

Example prompt: What's the current BTC price in Korean Won — pull from both Upbit and Bithumb so I can see if there's a spread between them.

## When to prefer this

Use this endpoint when you need live KRW-denominated crypto spot prices from South Korean exchanges (Upbit, Bithumb), especially when comparing prices across both exchanges or calculating the kimchi premium spread. Prefer this over USD-priced endpoints when the use case specifically requires Korean Won pricing or cross-exchange Korean market analysis.

## Known failure modes

- Missing or invalid 'symbol' query parameter returns an error (symbol is required)
- Symbol not listed on requested exchange returns source status 'error' in sources array
- Exchange API upstream timeout may result in partial data (one exchange succeeds, other fails)
- Invalid exchange enum value returns a validation error
- Unpaid request returns HTTP 402 with empty body and base64-encoded PAYMENT-REQUIRED header containing challenge details

## How this service works

Machine-payable endpoints for AI agents, over x402 protocol v2. Unpaid requests to a paid endpoint return `402 Payment Required` with an empty `{}` body and a typed challenge (price, network, asset, pay-to address) in a base64-encoded `PAYMENT-REQUIRED` response header; decode it, pay the USDC, and replay with a base64 `PAYMENT-SIGNATURE` header to get the result. Built and operated by an autonomous AI agent, filmed for transparency. Live status and prices are authoritative in https://fablerlabs.com/products.json.

## Output

Returns a JSON object with the requested symbol, KRW quote, per-exchange prices (Upbit and/or Bithumb) including 24h volume in tokens and notional KRW, price change rate and basis, upstream timestamp, and a spread object showing absolute KRW difference, midpoint percentage, and which exchange is higher vs lower.

## 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",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "pattern": "^[A-Za-z0-9]{1,10}$",
       "description": "Required market symbol, such as BTC or ETH. Normalized to uppercase."
      },
      "exchange": {
       "enum": [
        "all",
        "upbit",
        "bithumb"
       ],
       "type": "string",
       "description": "Optional exchange filter. Defaults to all (both exchanges)."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "symbol",
      "quote",
      "requested_exchange",
      "sources",
      "exchanges",
      "spread",
      "fetched_at",
      "scope"
     ],
     "properties": {
      "quote": {
       "type": "string",
       "const": "KRW"
      },
      "scope": {
       "type": "string"
      },
      "spread": {
       "type": [
        "object",
        "null"
       ]
      },
      "symbol": {
       "type": "string"
      },
      "sources": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "exchanges": {
       "type": "object"
      },
      "fetched_at": {
       "type": "string",
       "format": "date-time"
      },
      "requested_exchange": {
       "enum": [
        "all",
        "upbit",
        "bithumb"
       ],
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "quote": "KRW",
  "scope": "Public exchange ticker data for one Korean-won spot market; not financial advice.",
  "spread": {
   "absolute_krw": 20000,
   "midpoint_pct": 0.0214,
   "lower_exchange": "bithumb",
   "higher_exchange": "upbit"
  },
  "symbol": "BTC",
  "sources": [
   {
    "status": "ok",
    "exchange": "upbit"
   },
   {
    "status": "ok",
    "exchange": "bithumb"
   }
  ],
  "exchanges": {
   "upbit": {
    "price_krw": 93500000,
    "change_rate": 0.0123,
    "change_basis": "previous_close",
    "upstream_as_of": "2026-07-10T13:00:00.000Z",
    "notional_24h_krw": 115430000000,
    "volume_24h_token": 1234.5678
   },
   "bithumb": {
    "price_krw": 93480000,
    "change_rate": 0.0119,
    "change_basis": "rolling_24h",
    "upstream_as_of": "2026-07-10T13:00:00.000Z",
    "notional_24h_krw": 92310000000,
    "volume_24h_token": 987.6543
   }
  },
  "fetched_at": "2026-07-10T13:00:00.000Z",
  "requested_exchange": "all"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fabler-labs-krw-crypto-price-lookup-7df670c4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.fablerlabs.com](https://www.zero.xyz/host/x402.fablerlabs.com/llms.txt)
