# x402 Agent Hub – ECN CFD & Forex Microstructure Oracle

> x402 Agent Hub – ECN CFD & Forex Microstructure Oracle is a paid API for AI agents from x402-agent-hub.x402-agent-hub.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-14).

Returns tick-calibrated median spreads, round-turn commissions, M1 ATR, spread-to-ATR cost ratios, scalping viability scores, and live MT5 closed-bar FVG data for up to 11 major CFD and Forex instruments.

## Facts

- Endpoint: GET https://x402-agent-hub.x402-agent-hub.workers.dev/v1/trading/microstructure?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-hub-ecn-cfd-forex-microstructure-oracle-2b5ef157
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_8ClW9yqv0fZn8oprzCT1Y

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 x402-agent-hub-ecn-cfd-forex-microstructure-oracle-2b5ef157
```

Example prompt: Can you pull the ECN microstructure data for XAUUSD — I need the median tick spread, round-turn commission per lot, M1 ATR, and whether it's viable for scalping right now?

## When to prefer this

Choose this endpoint when you need institutional-grade ECN trading cost metrics — particularly spread, commission, and ATR data — for CFD and Forex instruments before executing or evaluating a trade. It is distinctly suited for scalping viability assessment and FVG-based ICT strategy workflows. Prefer it over generic market data APIs when you need round-turn cost modeling in USD per lot and spread-to-ATR ratios across multiple timeframes (M1–H1) for the specific instruments it covers (XAUUSD, BTCUSD, NAS100, US30, US500, GER40, JPN225, USOUSD, EURUSD, GBPUSD, USDJPY).

## Known failure modes

- Invalid or unsupported symbol returns empty instruments array with found: false
- Missing or invalid x402 payment header results in 402 Payment Required response
- Network timeout or Cloudflare Worker cold-start latency causing delayed response
- Stale tick data if the MT5 feed has not received a recent closed bar
- Rate limiting if too many requests are made in quick succession

## How this service works

Institutional ECN CFD & Forex microstructure oracle: tick-calibrated median spreads, round-turn commissions, M1 ATR, spread-to-ATR cost ratios across M1-H1, scalping viability, and live MT5 closed-bar FVG feed for XAUUSD, BTCUSD, NAS100, US30, US500, GER40, JPN225, USOUSD, EURUSD, GBPUSD, USDJPY.

## Output

A JSON object containing a count and an array of instrument records, each with symbol, asset class, and ECN metrics including medianTickSpread, medianAtrM1, totalRoundTurnCostUsdPerLot, spread-to-ATR cost ratios across M1–H1 timeframes, a scalping viability indicator, and live MT5 closed-bar Fair Value Gap (FVG) data.

## 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",
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Optional instrument ticker (e.g. XAUUSD, BTCUSD, NAS100, US30, GER40, USOUSD, EURUSD). Omit to receive all 14 symbols."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "found": true,
  "instruments": [
   {
    "symbol": "XAUUSD",
    "assetClass": "metal",
    "ecnMetrics": {
     "medianAtrM1": 1.455,
     "medianTickSpread": 0.12,
     "totalRoundTurnCostUsdPerLot": 22
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-hub-ecn-cfd-forex-microstructure-oracle-2b5ef157/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-hub.x402-agent-hub.workers.dev](https://www.zero.xyz/host/x402-agent-hub.x402-agent-hub.workers.dev/llms.txt)
