# PreReason FX Liquidity Context API

> PreReason FX Liquidity Context API is a paid API for AI agents from api.prereason.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-14).

Returns EUR/USD, CNY/USD, and DXY proxy rates with trend signals and FX liquidity context for macro analysis.

## Facts

- Endpoint: GET https://api.prereason.com/api/fx
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/prereason-fx-liquidity-context-api-db1a5eff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DjHX07Is972IOe0EB_6rU

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 prereason-fx-liquidity-context-api-db1a5eff
```

Example prompt: Pull the fx.liquidity briefing from PreReason in markdown format — I need EUR/USD, CNY/USD, and the DXY proxy with their trend signals for today.

## When to prefer this

Use this endpoint when you need a concise FX liquidity snapshot — specifically EUR/USD, CNY/USD, and DXY proxy with trend signals — as macro context for Bitcoin or broader financial analysis. Prefer over generic FX feeds when you want pre-computed trend signals and confidence scores rather than raw tick data.

## Known failure modes

- Missing required 'briefing' query param returns 400 error
- Invalid briefing ID (not 'fx.liquidity') returns 400 or empty result
- Date outside tier access range returns 402 or 403
- Unpaid or insufficient USDC payment returns 402 Payment Required
- Invalid date format (not YYYY-MM-DD) returns 400 validation error
- Network timeout or upstream data unavailability returns 503

## How this service works

PreReason delivers market context for financial agents. Bitcoin on-chain metrics, macro indicators, and reasoning context in one API call.

## Output

Returns a structured context object with EUR/USD, CNY/USD, and DXY proxy values alongside bullish/bearish trend signals, 7-day trend percentages, and confidence scores, plus a generated_at timestamp. Supports both JSON (structured) and markdown (token-optimized for LLMs) formats.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "format": "json",
   "briefing": "fx.liquidity"
  }
 }
}
```

## 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",
     "required": [
      "briefing"
     ],
     "properties": {
      "date": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
       "description": "Historical date in YYYY-MM-DD format. Access range depends on tier: Free=30d, Basic=from Jan 2025, Pro=all."
      },
      "format": {
       "enum": [
        "json",
        "markdown"
       ],
       "type": "string",
       "description": "Response format. markdown is token-optimized for LLMs, json is structured."
      },
      "briefing": {
       "enum": [
        "btc.quick-check",
        "btc.context",
        "btc.pulse",
        "btc.grid-stress",
        "macro.snapshot",
        "cross.correlations",
        "btc.momentum",
        "btc.on-chain",
        "btc.miner-survival",
        "btc.etf-flows",
        "macro.liquidity",
        "cross.breadth",
        "btc.full",
        "btc.factors",
        "btc.energy",
        "btc.treasury",
        "cross.regime",
        "fx.liquidity"
       ],
       "type": "string",
       "description": "Briefing ID. 18 available: btc.quick-check, btc.context, btc.pulse, btc.grid-stress, macro.snapshot, cross.correlations (Tier 1), btc.momentum, btc.on-chain, btc.miner-survival, btc.etf-flows, macro.liquidity, cross.breadth (Tier 2), btc.full, btc.factors, btc.energy, btc.treasury, cross.regime, fx.liquidity (Tier 3)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "context": "Bitcoin trading at $84,200, up 4.2% over 7 days...",
  "metrics": {
   "bitcoin_price": {
    "signal": "bullish",
    "trend_7d": 4.2,
    "confidence": 82
   }
  },
  "briefing": "btc.quick-check",
  "generated_at": "2026-03-17T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/prereason-fx-liquidity-context-api-db1a5eff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.prereason.com](https://www.zero.xyz/host/api.prereason.com/llms.txt)
