# 4SEC Funding Rate History API

> 4SEC Funding Rate History API is a paid API for AI agents from api.foursec.xyz, paid per call via x402, $0.03/call, status down (last checked 2026-09-15).

Returns historical funding rate data for a given crypto symbol across multiple DEXes

## Facts

- Endpoint: GET https://api.foursec.xyz/funding-rate/history/%7Bsymbol%7D
- Price: $0.03/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/4sec-funding-rate-history-api-b82ff940
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KrAOEW0dFQ7lByL8HNL6v

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 4sec-funding-rate-history-api-b82ff940
```

Example prompt: Can you pull the historical funding rate data for BTC from the 4SEC multi-DEX market data API?

## When to prefer this

Choose this endpoint when you need historical (not just current) funding rate data aggregated across multiple DEXes for a specific crypto symbol, and you want pay-per-request pricing via crypto (USDC on Base) rather than a subscription model. Ideal for AI agents, DeFi analytics tools, or trading bots that need on-demand historical funding rate lookups without committing to a monthly API subscription.

## Known failure modes

- Invalid or unsupported symbol returns an error or empty history array
- Missing symbol path parameter causes a 400 or 404 error
- Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response
- Rate limiting or quota exhaustion may return a 429 error
- Network timeouts for slow DEX data aggregation

## How this service works

Real-time multi-DEX aggregated crypto market data. Pay per request with USDC on Base via x402 protocol.

## Output

Returns a JSON object containing the requested symbol, a count of historical records, and an array of funding rate history entries, each representing a past funding rate data point across aggregated DEX sources.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "example": {
  "count": {
   "type": "integer"
  },
  "symbol": {
   "type": "string"
  },
  "history": {
   "type": "array",
   "items": {
    "type": "object"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/4sec-funding-rate-history-api-b82ff940/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.foursec.xyz](https://www.zero.xyz/host/api.foursec.xyz/llms.txt)
