Skip to main content

forexnewsradar

Zero-dependency, fail-closed Python SDK and CLI for ForexNewsRadar — real-time Forex & Gold (XAU/USD, EUR/USD) macro news direction (BUY / SELL / CLEAR) and automated T-5m / whipsaw VETO gates across 18 FX and metals pairs.

EUR/USD is live and free forever with zero signup, zero credit card, and zero API key.

Install

pip install forexnewsradar

Pure Python standard library (>=3.9), fully typed (py.typed), zero third-party dependencies.

5-Second Quickstart (Free Live EUR/USD)

import forexnewsradar as fnr

# 1. One-line boolean trade guard (fail-closed; handles broker suffixes automatically)
if fnr.is_safe("EURUSD.pro"):
    print("Safe to trade EUR/USD")

# 2. Compact fail-closed verdict (~300B payload — never raises on network or lock errors)
verdict = fnr.check("EURUSD.pro")
print(verdict)
# EURUSD: BUY [SAFE] | next event in 3h 07m

# 3. Full typed telemetry: trader headline, next Tier-1 catalyst, recent releases & closed ECN fills
eur = fnr.pair("EURUSD")
print(eur.trader_headline, "|", eur.explanation)
if eur.next_event:
    print("Next event:", eur.next_event.currency, eur.next_event.title, eur.next_event.scheduled_at)

# 4. Live 18-pair desk snapshot (shows which pairs are unlocked vs locked + direct unlock links)
board = fnr.board()
print(f"Unlocked: {board.auth.unlocked_count}/{board.auth.total_pairs}")

Production Bot Client (Caching + Pro Pairs Like Gold XAU/USD)

Set FNR_API_KEY in your environment (or pass api_key="fnr_live_...") to unlock Gold (XAUUSD), Silver (XAGUSD), and all 18 pairs.

import forexnewsradar as fnr

with fnr.ForexNewsRadar(cache_ttl_sec=15.0, min_pre_news_buffer_sec=300) as radar:
    verdict = radar.check("XAUUSDm", prop_account=True)

    if verdict.locked:
        # Polite, explicit deep-link to unlock Gold ($9 single pair or $29 all 18, zero auto-renewal)
        print("Unlock XAU/USD:", verdict.unlock_url)
    elif not verdict.safe_to_trade:
        print(f"Blocked {verdict.symbol}: {verdict.status} ({verdict.veto_reason})")
    elif verdict.is_directional:
        print(f"Macro drift aligned: {verdict.direction_bias}")

When calling radar.pair("XAUUSD") without a key for Gold, the SDK raises a clean typed PairLockedError (no opaque HTTP 402 stacktrace) carrying .symbol, .unlock_url, .single_price_usd, and .all_18_price_usd:

from forexnewsradar import ForexNewsRadar, PairLockedError

radar = ForexNewsRadar()
try:
    gold = radar.pair("XAUUSD")
except PairLockedError as exc:
    print(exc.unlock_url)  # https://forexnewsradar.com/?unlock=XAUUSD

Zero-Traceback Terminal CLI

# View all 18 FX & Gold pairs (live status on unlocked pairs + direct unlock links on Pro pairs)
forexnewsradar board

# Fast fail-closed gate check (exit 0 = safe, exit 2 = blocked/VETO/locked)
forexnewsradar check EURUSD.pro
forexnewsradar check XAUUSD --json

# Full telemetry (next catalyst, recent macro prints, closed ECN TP/SL/TIME_EXIT log)
forexnewsradar pair EURUSD

# Check active FNR_API_KEY entitlement status
forexnewsradar status

Why Fail-Closed?

  • Never fails open on news day: Every timeout, network glitch, rate limit, or stale heartbeat returns safe_to_trade=False and status="VETO" in check() / is_safe().
  • Automatic broker symbol normalization: EURUSD.pro, mEURUSD, iXAUUSDm, GOLD.raw, SILVER, and EUR/USD all normalize automatically to canonical 6-letter symbols.
  • Post-Announcement Macro Drift + VETO: Upstream per-pair 2-stage Gradient Boosting (GBM) models wait 15 to 30 seconds after a release so initial spread vacuums refill before publishing directional drift (BUY / SELL), neutral stand-aside (CLEAR), or protective VETO shields (Whipsaw, Collision, Foreign Noise, Toxic Window, T-5m PRE_NEWS).
  • Safe repr(): repr(ForexNewsRadar(api_key="...")) always masks your secret key so it never leaks into logs.

Remote MCP for Claude Code, Cursor & AI Trading Agents

The same live free EUR/USD macro gate is also available as a stateless Streamable HTTP MCP server (30 req/min free on EUR/USD, no Authorization header needed):

{
  "mcpServers": {
    "forexnewsradar": {
      "type": "http",
      "url": "https://forexnewsradar.com/mcp"
    }
  }
}

Strictly read-only analytical software for informational and engineering integration use: zero custody, zero account management. Optional fixed-term passes ($9 single pair / $29 all 18 pairs for 30 days, zero auto-renewal) unlock Gold (XAU/USD), Silver (XAG/USD), and the other 16 FX pairs across Tokyo, London, and New York sessions.

Metadata

Release files for forexnewsradar 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forexnewsradar 1.1.0
File Size Uploaded Provenance Actions
forexnewsradar-1.1.0.tar.gz 20.6 kB Without provenance Details for forexnewsradar-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forexnewsradar 1.1.0
File Interpreter ABI Platform Actions
forexnewsradar-1.1.0-py3-none-any.whl Python 3 none any Details for forexnewsradar-1.1.0-py3-none-any.whl

Total release size: 38.7 kB

Release files / forexnewsradar-1.1.0.tar.gz

Download URL forexnewsradar-1.1.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bbd59aa86b4adafd0d0e52a7985a662b882af0b724062d693bc1b14de3a8f569
BLAKE2b-256 checksum
How to use checksums
c1fb353b86aec5f347e8ca43126fca310c671b50cccafd7d390c18f41ce4cccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / forexnewsradar-1.1.0-py3-none-any.whl

Download URL forexnewsradar-1.1.0-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7a2b3c353cf2b327654714422cdd4914dd013ba926bf74c08a909a4fdff527f
BLAKE2b-256 checksum
How to use checksums
bcc43fd54ac2732a7f79ecc78caea2935d184795a80fd896c82e010eceda0604
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for forexnewsradar 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page