{
  "x402Version": 2,
  "id": 6416,
  "slug": "6416",
  "resource": "https://api.usenami.io/v1/funding/historical",
  "description": "Historical per-venue funding rates for one crypto perpetual, aggregated 1h/4h/1d, across tracked CEX and DEX venues — the timeseries a funding-arb backtest needs. Up to 30-day windows (30-day retention). Edge-isolated: raw rates only, no spread or signal logic.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1538726707212F4dB3EB67cEc0910422A310475c",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "aggr": {
              "description": "Bucket granularity. Default 1h.",
              "enum": [
                "1h",
                "4h",
                "1d"
              ],
              "required": false,
              "type": "string"
            },
            "from": {
              "description": "Window start ISO 8601. Default depends on aggr: 1h→3 days ago, 4h→7 days ago, 1d→30 days ago.",
              "format": "date-time",
              "required": false,
              "type": "string"
            },
            "ticker": {
              "description": "Base ticker (e.g. BTC, ETH). Required.",
              "required": true,
              "type": "string"
            },
            "to": {
              "description": "Window end ISO 8601. Default: now.",
              "format": "date-time",
              "required": false,
              "type": "string"
            }
          },
          "type": "http"
        },
        "output": {
          "example": {
            "aggregation": "1h",
            "buckets": [
              {
                "avg_funding_rate": 0.0001,
                "avg_price": 67234.5,
                "bucket_start": "2026-05-15T00:00:00Z",
                "samples": 1,
                "venue": "binance"
              },
              {
                "avg_funding_rate": 0.00012,
                "avg_price": 67240,
                "bucket_start": "2026-05-15T00:00:00Z",
                "samples": 1,
                "venue": "hyperliquid"
              }
            ],
            "ticker": "BTC",
            "venues_count": 18,
            "window_end": "2026-05-22T00:00:00Z",
            "window_start": "2026-05-19T00:00:00Z"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "properties": {
              "method": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.usenami.io",
  "lastUpdated": "2026-09-15T07:24:35.183Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-15T07:24:34.819Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.usenami.io",
    "manifest_name": "api.usenami.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}