cd /news/ai-agents/free-forex-gold-news-api-for-python-… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-177696] src=dev.to β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Free Forex & Gold News API for Python, MT5 & Claude MCP (Zero Key for EUR/USD)

A developer built ForexNewsRadar, a free FX and Gold news API that serves live EUR/USD data without an account or API key at 120 requests per minute on REST and 30 per minute on a remote MCP endpoint. The service ships with an MIT-licensed Python client on PyPI that uses only the standard library, strips broker symbol suffixes, and fails closed with safe_to_trade=False when the network drops or a response cannot be parsed. It returns a compact state machine (CLEAR, PRE_NEWS, BUY, SELL, VETO) with separate prop-firm gating and veto reasons such as Whipsaw, Collision, and Toxic Window, aimed at Python bots, MetaTrader 5 EAs, and Claude MCP agents trading around CPI, NFP, and FOMC releases.

key takeaway

The ForexNewsRadar Python client fails closed with safe_to_trade=False and status="VETO" on network or parse errors, and its prop_safe_to_trade flag wraps T-5m pre-news and 5-minute post-release blackouts around active vetoes.

by read5 min views6 publishedNov 28, 2026

If you wire Python bots, MetaTrader 5 EAs, or Claude MCP agents into live FX and Gold (XAU/USD) markets, you eventually hit the same wall around US CPI, NFP, and FOMC. Scraped economic calendars start returning HTTP 429 right when spreads blow out. Native CalendarValueHistory() calls silently return zero rows on a surprising number of prop-firm MT5 servers. And even a working calendar clock cannot tell your script whether spreads calmed down 20 seconds after the print or whether the pair is still whipsawing both sides.

Disclosure up front: I built ForexNewsRadar to solve this exact problem for my own stack. Live EUR/USD runs without an account or API key (120 req/min on REST, 30 req/min on Remote MCP at https://forexnewsradar.com/mcp), backed by an MIT Python client ( pip install forexnewsradar). Here is how the four common setups stack up, plus the exact curl, Python, MCP, and MQL5 snippets and the edge cases that actually bite in production.

Setup Cost Holds up on VPS IPs? Tracks post-print whipsaw? Fits best
Scraping faireconomy.media Free Rarely (HTTP 429 spikes during releases) No β€” clock timestamps only Local weekend scripts
MT5 CalendarValueHistory() Free Spotty (0 rows / error 5401 on many prop servers) No β€” clock timestamps only Retail brokers with full native calendars
Plain calendar REST APIs Varies Yes No β€” cannot flag live whipsaw or collisions Fixed pre-news timer s
ForexNewsRadar (REST / SDK / MCP) Free live EUR/USD Yes (Cloudflare Edge, ~300B payload) Yes ( BUY /SELL drift + liveVETO blocks) Live FX/Gold bots, MT5 EAs, MCP agents

EUR/USD directly with curl You can hit the live EUR/USD compact route from any terminal with no signup and no headers:

curl -s "https://forexnewsradar.com/api/v1/pairs/EURUSD?compact=1"

Typical ~300-byte payload (key gate fields):

{
  "ok": true,
  "symbol": "EURUSD",
  "status": "SELL",
  "prop_safe_to_trade": true,
  "safe_to_trade": true,
  "stale": false,
  "direction_bias": "SELL",
  "impulse_level": 3,
  "veto_remaining_sec": 0,
  "prop_wait_sec": 0,
  "next_event_sec": 6581,
  "veto_reason": null,
  "updated_at": "2026-11-27T10:03:44.000Z"
}

What each field controls in an execution loop:

safe_to_trade β€” standard liquidity and volatility gate for regular spot/ECN accounts.prop_safe_to_trade β€” stricter funded-account check that wraps T-5m pre-news and 5-minute post-release blackouts around active VETO blocks.status β€” live state machine (CLEAR, PRE_NEWS, BUY, SELL, or direction_bias β€” directional lean strictly limited to NEUTRAL. veto_reason β€” exact trigger behind a block (Whipsaw, Collision, Foreign Noise, or Toxic Window such as central bank press conferences and the final Friday hour before NY close). The open-source GitLab MIT repository (published as forexnewsradar v1.1.0 on PyPI) runs purely on Python's standard library (urllib, Python 3.9+, py.typed, zero third-party packages). It strips messy broker suffixes (EURUSD.pro, XAUUSDm, GOLD) and fails closed ( safe_to_trade=False, status="VETO") whenever the network drops or the response cannot be parsed.

pip install forexnewsradar
uvx forexnewsradar check EURUSD.pro

Gold spreads routinely jump 5x to 10x around US CPI, NFP, and FOMC. In a real worker loop, keep a short local TTL cache and skip entries while blocked instead of exiting the process:

import time
import forexnewsradar as fnr

radar = fnr.ForexNewsRadar(cache_ttl_sec=15.0, min_pre_news_buffer_sec=300)

while True:
    verdict = radar.check("XAUUSDm", prop_account=False)

    if not verdict.safe_to_trade:
        print(f"Skipping XAUUSD: {verdict.veto_reason or verdict.status} (wait {verdict.veto_remaining_sec}s)")
    else:
        print(f"XAUUSD clear | direction_bias={verdict.direction_bias} | next_event={verdict.next_event_sec}s")

    time.sleep(15)

Dumping a 60-tool MCP server into Claude Code or Cursor eats thousands of tokens before the agent looks at a single chart. The stateless Streamable HTTP server at https://forexnewsradar.com/mcp ships only 5 read-only tools (tools/list sits around ~9 KB / ~2.2k tokens; one check_prop_trade_gate call returns ~1.8 KB / ~450 tokens and accepts both prop_account=true and prop_account=false):

claude mcp add --transport http forexnewsradar https://forexnewsradar.com/mcp

Tool list:

check_prop_trade_gate β€” single-call safety check, countdown timer, and directional lean for any of the 18 tracked symbols.get_pair_telemetry β€” live state, next Tier-1 event timer, recent prints, and recent closed ECN fills.list_radar_pairs β€” compact snapshot across Tokyo, London, and New York sessions.get_macro_feed β€” upcoming Red-Folder events and active VETO locks by currency or pair.get_entitlement_status β€” confirms whether the client is running in keyless If the upstream telemetry heartbeat ever goes stale, check_prop_trade_gate fails closed with allowed_to_open_trade=false and radar_stale=true (while isError=true is reserved strictly for auth, schema, or HTTP transport failures).

GlobalVariables On MT5 terminals where CalendarValueHistory() comes back empty, drop ForexNewsRadar_PropShield.mq5 (available at /downloads/ForexNewsRadar_PropShield.mq5) onto a single chart and add https://forexnewsradar.com under Tools -> Options -> Expert Advisors -> Allow WebRequest.

That hub EA polls GET /api/v1/pairs?compact=1 every 15 seconds (4 req/min) through native WebRequest with no DLLs, draws a compact HUD, optionally clears pending orders if InpDeletePendingOnVeto is enabled, and writes RAM GlobalVariables visible to every chart on the terminal. Existing EAs only need one guard line before opening a trade:

if(GlobalVariableGet("FNR_PROP_SAFE_EURUSD") < 1.0) return;

FNR_API_KEY completely unset when testing. Setting FNR_API_KEY="test" sends a bogus Authorization: Bearer header, which causes check() to fail closed with INVALID_API_KEY and pair()/ board() to raise InvalidApiKeyError. 4014 (ERR_FUNCTION_NOT_ALLOWED): WebRequest by default until https://forexnewsradar.com is whitelisted in terminal options.120 req/min on 30 req/min) for Claude Code or Cursor workflows. When a Tier-1 print hits the tape, the backend intentionally sits out the first 15 to 30 seconds of spread chaos instead of racing co-located HFTs. Once liquidity stabilizes, per-pair decision models weigh the release numbers against live cross-market price and volatility behavior to emit a deterministic gate (BUY, SELL, CLEAR, or VETO) aimed at intraday post-announcement drift. Full design notes live at forexnewsradar.com/methodology.

Before connecting anything to real capital, pull the public 14-day live sample on Kaggle (1,476 rows). It is a short two-week live snapshot β€” not a multi-year backtest β€” meant for checking payload structure and failure modes. Every row shows the verdict alongside Actual, Forecast, and Previous prints, and the veto_reason column shows exactly why noisy releases got blocked.

$9 for 30 days on one unlocked pair (such as XAU/USD) or $29 for 30 days across all 18 FX and metals pairs at 240 req/min.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @forexnewsradar 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/free-forex-gold-news…] indexed:0 read:5min 2026-11-28 Β· β€”