# ByKaranteli Jupiter History (DeFi Perpetuals Metrics)

> ByKaranteli Jupiter History (DeFi Perpetuals Metrics) 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).

Returns historical on-chain metrics for Jupiter perpetuals (SOL, ETH, BTC, JLP) including open interest, utilization, borrow rates, AUM, price, and volume over a configurable time range.

## Facts

- Endpoint: GET https://bykaranteli.com/api/x402/jupiter-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-jupiter-history-defi-perpetuals-metrics-238e90b4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f-Tb965LxfQgFR2cctdmk

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-jupiter-history-defi-perpetuals-metrics-238e90b4
```

Example prompt: Pull the last 500 rows of long open interest in USD for SOL on Jupiter perpetuals, from 2024-01-01 to 2024-06-30.

## When to prefer this

Choose this endpoint when you need historical on-chain data specifically from the Jupiter perpetuals protocol on Solana — including open interest, utilization, borrow rates, custody AUM, price, and volume for SOL, ETH, BTC, or JLP. Prefer this over generic crypto derivatives feeds when you need DeFi/DEX-native perpetual metrics rather than centralized exchange data, or when Solana ecosystem analysis is the focus.

## Known failure modes

- Invalid or unsupported symbol returns empty rows or error
- Unsupported metric string returns empty result set
- Date range with no data returns rows: [] with count 0
- Missing required 'type' or 'method' in input object returns validation error
- Exceeding rate limits or payment failure returns 402 Payment Required
- Malformed ISO date strings for 'from'/'to' may return unexpected results or errors

## How this service works

Six-venue liquidation model with real liquidation prints overlaid, funding rates, open interest, options gamma, ETF flows and CFTC positioning. Free.

## Output

Returns a JSON object with an 'ok' boolean, a 'dataset' label ('jupiter-history'), a 'count' of rows returned, and a 'rows' array of historical metric records for the requested symbol and metric type, filtered by the provided date range and limited to the specified row count.

## 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"
      },
      "metric": {
       "type": "string",
       "description": "string via exchange param, optional: long_oi_usd | short_oi_usd | long_util_pct | short_util_pct | long_borrow_hourly_pct | short_borrow_hourly_pct | custody_aum_usd | price_usd | volume_24h_usd"
      },
      "symbol": {
       "type": "string",
       "description": "string, optional market: SOL | ETH | BTC | JLP"
      }
     }
    }
   },
   "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": "jupiter-history"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bykaranteli-jupiter-history-defi-perpetuals-metrics-238e90b4/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)
