# Crypto Global Market Context

> Crypto Global Market Context 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-10-31).

Returns a single-call snapshot of the entire crypto market: market cap, volume, BTC/ETH dominance, DeFi TVL, stablecoin supply flows, Fear & Greed index, and a RISK_ON/NEUTRAL/RISK_OFF regime label with reasons.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/global-market?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-global-market-context-64f5f335
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QRjX2zQNOESRxYQyoZVON

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 crypto-global-market-context-64f5f335
```

Example prompt: Give me the full crypto market snapshot right now — total market cap, BTC and ETH dominance, DeFi TVL, stablecoin flows, Fear and Greed score, and whether the market is risk-on, neutral, or risk-off.

## When to prefer this

Choose this endpoint when you need a broad, macro-level crypto market snapshot in a single call rather than assembling separate calls for dominance, TVL, stablecoin data, and sentiment. It is ideal for pre-trade regime checks, automated market briefings, risk filters, and any agent workflow that needs to decide whether market conditions are favorable before taking action. Prefer it over piecing together individual CoinLore or DeFiLlama calls when the regime label and stablecoin flow metrics are specifically needed.

## Known failure modes

- Upstream data provider outage (CoinLore, DeFiLlama, Alternative.me) may return stale or partial data
- Payment not made or x402 header missing returns 402 Payment Required
- Rate-limit or worker timeout returns 5xx error
- Stale data if upstream APIs are slow to refresh — check updated_at timestamp
- Regime classification may lag sudden market moves if upstream data has propagation delay

## 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

A JSON object containing: total crypto market cap in USD with 24h percent change, 24h trading volume, BTC dominance %, ETH dominance %, altcoin share %, DeFi TVL in USD, stablecoin supply in USD with 1d and 7d percent change, stablecoin share of market cap %, Fear & Greed index value and label, a regime string (RISK_ON, NEUTRAL, or RISK_OFF), a list of human-readable reasons for that regime, data source URLs, and an updated_at ISO timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "regime": "NEUTRAL",
  "reasons": [
   "market cap -0.98% 24h",
   "stablecoin supply -0.35% 1d (outflow)",
   "BTC dominance 60.6% (alts weak)"
  ],
  "sources": [
   "https://api.coinlore.net/api/global/",
   "https://api.llama.fi/v2/chains",
   "https://stablecoins.llama.fi/stablecoins",
   "https://api.alternative.me/fng/"
  ],
  "fear_greed": {
   "label": "Fear",
   "value": 34
  },
  "updated_at": "2026-10-30T04:30:00Z",
  "defi_tvl_usd": 89040661805,
  "altcoin_share_pct": 28.65,
  "btc_dominance_pct": 60.64,
  "eth_dominance_pct": 10.71,
  "total_market_cap_usd": 2661472949373,
  "total_volume_24h_usd": 107406481755,
  "stablecoin_supply_usd": 301482740887,
  "volume_change_24h_pct": 20.32,
  "stablecoin_change_1d_pct": -0.35,
  "stablecoin_change_7d_pct": 0.4,
  "market_cap_change_24h_pct": -0.98,
  "stablecoin_share_of_mcap_pct": 11.33
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-global-market-context-64f5f335/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)
