# Crypto Derivatives Market Data

> Crypto Derivatives Market Data is a paid API for AI agents from crypto-market-data.zafermemon87.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-29).

Returns funding rate per 8 hours, futures premium, open interest with 1h/24h change, and long/short account ratio for up to 50 crypto coins.

## Facts

- Endpoint: GET https://crypto-market-data.zafermemon87.workers.dev/v1/derivatives?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-derivatives-market-data-df3c9b54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MFDXmXEc5EHMaANYsslpC

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-derivatives-market-data-df3c9b54
```

Example prompt: What are the current funding rates, futures premium, open interest changes, and long/short ratios for BTC, ETH, and SOL right now?

## When to prefer this

Use this endpoint when you need derivatives-specific metrics — funding rates, futures premium, open interest, and long/short ratios — rather than spot price data. Prefer this over generic price feeds when assessing leveraged market sentiment, carry costs, or basis trade conditions. It covers up to 50 coins simultaneously, making it efficient for portfolio-level derivatives screening.

## Known failure modes

- Invalid ticker symbols result in missing or empty rows
- Requesting more than 50 tokens may be truncated or rejected
- Data may be up to 60 seconds stale (data_age_s field indicates staleness)
- Network or upstream Binance API outage may result in a 5xx error
- Malformed query parameters (e.g. bad comma formatting) may return an error or empty result

## How this service works

Funding rate per 8 hours, futures premium, open interest with 1-hour and 24-hour change, and long/short account ratio per coin.

## Output

A JSON array of per-coin derivatives metrics including: funding_8h_pct (funding rate per 8 hours as a percentage), futures_premium_pct (spot vs futures premium/discount), open_interest_usd (total open interest in USD), open_interest_change_1h_pct, open_interest_change_24h_pct, and long_short_account_ratio. Also includes a plain-English summary, snapshot timestamp, and data age in seconds. Data is refreshed every minute.

## 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": {
      "tokens": {
       "type": "string",
       "description": "Comma-separated tickers, e.g. BTC,ETH,SOL (up to 50). Empty means all top 50."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Public market data, refreshed every minute. Not financial advice.",
  "rows": [
   {
    "token": "BTC",
    "funding_8h_pct": 0.0093,
    "open_interest_usd": 7557774664,
    "futures_premium_pct": -0.0377,
    "long_short_account_ratio": 2.132,
    "open_interest_change_1h_pct": -1.12,
    "open_interest_change_24h_pct": -2.76
   },
   {
    "token": "ETH",
    "funding_8h_pct": 0.0029,
    "open_interest_usd": 5574031222,
    "futures_premium_pct": -0.0432,
    "long_short_account_ratio": 3.296,
    "open_interest_change_1h_pct": -0.54,
    "open_interest_change_24h_pct": -1.1
   }
  ],
  "tool": "derivatives",
  "as_of": "2026-10-23T20:03:00+05:30",
  "plain": "2 coins. Highest funding BTC +0.0093%, lowest ETH +0.0029% per 8 hours.",
  "engine": "data-1.0",
  "charged": true,
  "price_usd": null,
  "data_age_s": 60,
  "snapshot_seal": "eb08dce6d854951431a0fb2732282227e1d954ec072422c9bfc5bee2f3ed695f"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-derivatives-market-data-df3c9b54/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-market-data.zafermemon87.workers.dev](https://www.zero.xyz/host/crypto-market-data.zafermemon87.workers.dev/llms.txt)
