# ByKaranteli Venue Markets History

> ByKaranteli Venue Markets History is a paid API for AI agents from bykaranteli.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Retrieves historical crypto derivatives data including liquidations, funding rates, open interest, options gamma, ETF flows, and CFTC positioning across six major venues.

## Facts

- Endpoint: GET https://bykaranteli.com/api/x402/venue-markets-history
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bykaranteli-venue-markets-history-71d4089c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__g1Dh1Ylu3LLjsbFOO1My

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 bykaranteli-venue-markets-history-71d4089c
```

Example prompt: Pull the last 500 rows of venue market history for BTCUSDT on Binance from the ByKaranteli derivatives dataset, including liquidation prints and funding rates, from January 1 to January 31 2025.

## When to prefer this

Choose this endpoint when you need historical multi-venue crypto derivatives data — especially liquidation prints, funding rates, open interest, or CFTC positioning — with flexible filtering by symbol, exchange, and date range. Prefer this over generic market data APIs when the use case involves derivatives-specific metrics like liquidation cascades, funding sentiment, or options gamma across major venues including Binance, Bybit, and Hyperliquid.

## Known failure modes

- Empty rows array if no data matches the given symbol/exchange/date filters
- Invalid exchange venue ID returns no results or error
- Date range with no available data returns count:0
- Exceeding limit of 20000 may be capped or rejected
- Malformed ISO date strings in from/to params may cause query failure
- Payment failure (402) if USDC payment not included

## How this service works

Ten-minute snapshots of price, 24h volume, open interest and 8h-equivalent funding per venue and symbol across 56 feeds on 43 exchanges (24 perpetual, 32 spot), recorded since 2026-08-21: the raw rows behind the exchange coverage table, total-OI and DEX-share metrics.

## Output

Returns a JSON object with an 'ok' boolean, a 'rows' array of historical venue market records (liquidations, funding rates, open interest, gamma, ETF flows, CFTC data), a 'count' of returned rows, and the dataset name 'venue-markets-history'. Rows can be filtered by symbol, exchange, and date range, up to a maximum of 20,000 records per call.

## 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": {
      "to": {
       "type": "string",
       "description": "iso, optional"
      },
      "from": {
       "type": "string",
       "description": "iso, optional"
      },
      "limit": {
       "type": "number",
       "description": "number, optional, max 20000"
      },
      "symbol": {
       "type": "string",
       "description": "string, optional"
      },
      "exchange": {
       "type": "string",
       "description": "string, optional, venue id e.g. binance|bybit|hyperliquid"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "rows": [],
  "count": 500,
  "dataset": "venue-markets-history"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bykaranteli-venue-markets-history-71d4089c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bykaranteli.com](https://www.zero.xyz/host/bykaranteli.com/llms.txt)
