# BlockRun Surf Exchange Funding History

> BlockRun Surf Exchange Funding History is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.0075/call, status unknown (last checked 2026-10-20).

Retrieves perpetual futures funding rate history for a given trading pair from a surf/exchange data feed via pay-per-call gateway.

## Facts

- Endpoint: GET https://blockrun.ai/api/v1/surf/exchange/funding-history?utm_source=zero.xyz
- Price: $0.0075/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-surf-exchange-funding-history-fd8b2a01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ySw75FHI4nPefZXfmwga5

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 blockrun-surf-exchange-funding-history-fd8b2a01
```

Example prompt: What's the funding rate history for BTC-USDC perpetual futures? Pull the full funding payment history for that pair.

## When to prefer this

Use this endpoint when you need historical funding rate data for perpetual futures trading pairs and want a pay-per-call model with no API key setup, settled in USDC via x402 on Base or Solana. Prefer this over exchange-direct APIs when building lightweight agents that avoid credential management.

## Known failure modes

- Missing 'pair' query parameter returns 400 or error response
- Invalid or unrecognized trading pair symbol returns empty result or 404
- Payment not settled causes 402 Payment Required response
- Rate limiting or quota exceeded returns 429
- Exchange data source temporarily unavailable returns 503

## How this service works

BlockRun lets AI agents use money well: pay for results, not for seats or subscriptions, and put every cent on the model or tool that actually does the job.

## Output

Returns a list of historical funding rate entries for the specified trading pair, including timestamps and funding rate values for perpetual futures positions.

## Example request

```json
{
 "pair": "BTC-USDT"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "pair": {
   "type": "string",
   "description": "Required query param"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockrun-surf-exchange-funding-history-fd8b2a01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from blockrun.ai](https://www.zero.xyz/host/blockrun.ai/llms.txt)
