# Relic Forge BTC Perpetual Funding Snapshot

> Relic Forge BTC Perpetual Funding Snapshot is a paid API for AI agents from relic-forge-api.bakongi.chatgpt.site, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-22).

Fetches real-time BTC perpetual contract funding rates and related market data from Binance and Bybit simultaneously.

## Facts

- Endpoint: GET https://relic-forge-api.bakongi.chatgpt.site/api/funding?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relic-forge-btc-perpetual-funding-snapshot-ffebd194
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8bKhQstogotfBhxlFdk3S

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 relic-forge-btc-perpetual-funding-snapshot-ffebd194
```

Example prompt: What's the current BTCUSDT perpetual funding rate on both Binance and Bybit right now, and when is the next funding settlement for each?

## When to prefer this

Choose this endpoint when you need a quick, side-by-side comparison of BTC perpetual funding rates across both Binance and Bybit in a single call, without building separate integrations for each exchange. It is ideal for trading bots, dashboards, or agents that need to monitor funding costs or detect cross-venue funding rate divergences for BTCUSDT linear perpetuals.

## Known failure modes

- Unsupported symbol: only BTCUSDT linear perpetual is currently supported; other symbols will likely return an error
- Upstream exchange API unavailability: if Binance or Bybit public endpoints are down, venue data may be missing or stale
- Stale data: observedAt timestamps may lag behind real-time if the aggregation layer is cached
- Payment failure: x402 micropayment not accepted or insufficient funds will block the request
- Rate limiting: excessive calls may be throttled

## How this service works

Create CC0 game relics, compare public BTC funding data, screen Pennsylvania vendor names, inspect public email-domain DNS, and use small Base USDC agent tools.

## Output

Returns a JSON object containing the trading symbol, a fetch timestamp, and an array of per-venue entries (Binance and Bybit), each with funding rate, mark price, index price, next funding time, funding interval in hours, observation timestamp, and source URL. Also includes a settlement object with the blockchain network and transaction reference for the x402 micropayment.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "symbol": "BTCUSDT",
  "venues": [
   {
    "venue": "binance",
    "markPrice": "60000.00",
    "sourceUrl": "https://fapi.binance.com/fapi/v1/premiumIndex?symbol=BTCUSDT",
    "indexPrice": "59990.00",
    "observedAt": "2026-10-13T00:00:00.000Z",
    "fundingRate": "0.0001",
    "nextFundingTime": "2026-10-13T08:00:00.000Z",
    "fundingIntervalHours": 8
   },
   {
    "venue": "bybit",
    "markPrice": "60000.00",
    "sourceUrl": "https://api.bybit.com/v5/market/tickers?category=linear&symbol=BTCUSDT",
    "indexPrice": "59990.00",
    "observedAt": "2026-10-13T00:00:00.000Z",
    "fundingRate": "0.0001",
    "nextFundingTime": "2026-10-13T08:00:00.000Z",
    "fundingIntervalHours": 8
   },
   {
    "venue": "okx",
    "sourceUrl": "https://www.okx.com/api/v5/public/funding-rate?instId=BTC-USDT-SWAP",
    "observedAt": "2026-10-13T00:00:00.000Z",
    "fundingRate": "0.0001",
    "fundingTime": "2026-10-13T00:00:00.000Z",
    "nextFundingTime": "2026-10-13T08:00:00.000Z"
   },
   {
    "venue": "hyperliquid",
    "markPrice": "60000.00",
    "sourceUrl": "https://api.hyperliquid.xyz/info",
    "instrument": "BTC",
    "observedAt": "2026-10-13T00:30:00.000Z",
    "fundingRate": "0.0000125",
    "oraclePrice": "59990.00",
    "sourceMethod": "POST",
    "nextFundingTime": "2026-10-13T01:00:00.000Z",
    "fundingIntervalHours": 1
   }
  ],
  "fetchedAt": "2026-10-13T00:00:00.000Z",
  "settlement": {
   "network": "base",
   "transaction": "<hash returned after a successful paid call>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relic-forge-btc-perpetual-funding-snapshot-ffebd194/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relic-forge-api.bakongi.chatgpt.site](https://www.zero.xyz/host/relic-forge-api.bakongi.chatgpt.site/llms.txt)
