forexnewsradar
Zero-dependency, fail-closed Python client and CLI for ForexNewsRadar — real-time Forex & Gold (XAU/USD, EUR/USD) macro news direction (BUY / SELL / NEUTRAL) and automated T-5m / whipsaw VETO risk gates across 18 FX and metals pairs.
EUR/USD is live and free forever with zero account, zero credit card, and zero API key.
Why forexnewsradar?
- Built for live FX & Gold bots, not raw calendar scraping: Instead of brittle HTML scrapers that fail open on HTTP
429rate limits, every network timeout, HTTP error, or stale heartbeat fails closed (safe_to_trade=False,status="VETO"). - Automatic broker symbol normalization: Handles broker prefixes and suffixes out of the box (
EURUSD.pro,mEURUSD,iXAUUSDm,GOLD.raw,EUR/USD-> canonicalEURUSD/XAUUSD). - Post-Announcement Macro Drift + VETO: Upstream per-pair 2-stage Gradient Boosting (GBM) models intentionally wait 15 to 30 seconds after a release so HFT spread vacuums refill before emitting directional drift (
BUY/SELL), neutral stand-aside (CLEAR), or protectiveVETOlocks (Whipsaw,Collision,Foreign Noise,Toxic Window,T-5m PRE_NEWS). - Zero external dependencies: Pure Python standard library (
>=3.9), typed (py.typed), lightweight~300-byte compact polling payload with built-in TTL caching.
Installation
pip install forexnewsradar
5-Second Quickstart (Free Live EUR/USD, Zero API Key)
from forexnewsradar import check_trade_gate
verdict = check_trade_gate("EURUSD.pro")
print(verdict.status, verdict.direction_bias, verdict.safe_to_trade, verdict.veto_reason)
Production Bot Integration (With Caching + Fail-Closed Guard)
from forexnewsradar import ForexNewsRadarClient
# Omit api_key for free live EUR/USD.
# Set FNR_API_KEY env var (or pass api_key="fnr_live_...") for Gold (XAUUSD), Silver (XAGUSD), and all 18 FX pairs.
client = ForexNewsRadarClient(cache_ttl_sec=15.0, min_pre_news_buffer_sec=300)
def allow_entry(broker_symbol: str, technical_side: str) -> bool:
verdict = client.check_gate(broker_symbol, prop_account=True)
if not verdict.safe_to_trade:
print(f"Blocked {verdict.symbol}: {verdict.status} ({verdict.veto_reason})")
return False
if verdict.is_directional and verdict.direction_bias != technical_side:
print(f"Skipped counter-macro {technical_side} vs {verdict.direction_bias}")
return False
return True
CLI Usage
# Exit code 0 if safe_to_trade=true, exit code 2 if blocked/VETO (ideal for shell/cron guards)
forexnewsradar check EURUSD.pro
# Full JSON telemetry including recent releases and public closed ECN fills (TP / SL / TIME_EXIT)
forexnewsradar pair EURUSD
Remote MCP for Claude Code, Cursor & AI Trading Agents
The same live EUR/USD macro gate is also available as a stateless Streamable HTTP MCP server (30 req/min free on EUR/USD, zero Authorization header required):
{
"mcpServers": {
"forexnewsradar": {
"type": "http",
"url": "https://forexnewsradar.com/mcp"
}
}
}
Links & Boundaries
- Live Free EUR/USD Terminal & Closed ECN Log: forexnewsradar.com
- Methodology & Timing Architecture: forexnewsradar.com/methodology
- FX & Gold Macro Drift API Playbook: forexnewsradar.com/solutions/forex-gold-macro-drift-api
- Gold (XAU/USD) CPI & NFP News API: forexnewsradar.com/solutions/gold-xauusd-cpi-nfp-news-api
Strictly read-only analytical software for informational use: zero custody, zero account management. Optional fixed-term passes (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.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forexnewsradar-1.0.0.tar.gz | 11.0 kB | Without provenance | Details for forexnewsradar-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forexnewsradar-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for forexnewsradar-1.0.0-py3-none-any.whl |
Total release size: 20.6 kB
Release files / forexnewsradar-1.0.0.tar.gz
| Download URL | forexnewsradar-1.0.0.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a510b6c777a46086f4662724010461f92412e896c8bda69b276f1dd3077367a
|
|
BLAKE2b-256 checksum How to use checksums |
647420f4861c29ddae0b897072f60dc9a739676076774fbbf49253be54b33677
|
| 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.0.0-py3-none-any.whl
| Download URL | forexnewsradar-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f6d8b110450449f10dd6bdc7f741c38d361de9b3ca47abf0c20839d7873e413a
|
|
BLAKE2b-256 checksum How to use checksums |
b3bfaab1fd8cb367796cec32f3a07e67c6d49bd873c93406c94cb974ccb36876
|
| 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.0.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.