{"uid":"cap_8ClW9yqv0fZn8oprzCT1Y","slug":"x402-agent-hub-ecn-cfd-forex-microstructure-oracle-2b5ef157","name":"x402 Agent Hub – ECN CFD & Forex Microstructure Oracle","description":"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.","url":"https://x402-agent-hub.x402-agent-hub.workers.dev/v1/trading/microstructure?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"type":"json","example":{"count":1,"found":true,"instruments":[{"symbol":"XAUUSD","assetClass":"metal","ecnMetrics":{"medianAtrM1":1.455,"medianTickSpread":0.12,"totalRoundTurnCostUsdPerLot":22}}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TWSeWUH4-4EMQlk6QjjOa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Scalping viability check for gold","prompt":"Is XAUUSD currently viable to scalp? I need the median ECN spread, M1 ATR, and the spread-to-ATR cost ratio to make the call."},{"title":"Pre-trade cost analysis for index CFD","prompt":"Before I open a position on NAS100, give me the full ECN cost breakdown — median spread, round-turn commission in USD per lot, and the ATR-based cost ratio."},{"title":"Multi-instrument microstructure comparison","prompt":"Pull the ECN microstructure metrics for all supported instruments so I can compare which ones have the lowest spread-to-ATR ratio and best scalping conditions right now."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T12:36:01.486Z","isFirstParty":false,"canonicalSlug":"x402-agent-hub-ecn-cfd-forex-microstructure-oracle-2b5ef157"}