
Trump Code Market Signals
Run Trump Code CLI and AI briefings to extract statistically tested trading signals from Truth Social/X posts against S&P 500 patterns.
Overview
Trump-code-market-signals is an agent skill for the Idea phase that guides installation and CLI use of Trump Code to analyze social posts for market signal research.
Install
npx skills add https://github.com/aradotso/trending-skills --skill trump-code-market-signalsWhat is this skill?
- 31.5M model combinations brute-force tested with 551 surviving trading rules
- Reported 61.3% hit rate over 566 predictions (z=5.39, p<0.05) in project documentation
- CLI commands for signals, model performance, overnight brute-force search, and surviving rules
- Optional Gemini keys for AI briefing and Anthropic for Opus deep analysis
- Optional Polymarket/Kalshi integration via API key
- 31.5M brute-force tested model combinations
- 551 surviving rules documented in SKILL.md
- 61.3% hit rate across 566 predictions (z=5.39, p<0.05) per project claims
Adoption & trust: 1.2k installs on skills.sh; 31 GitHub stars; 1/3 security scanners passed (skills.sh audits).
What problem does it solve?
You want systematic, testable hypotheses linking political social posts to market moves but lack a repeatable CLI and rule-survival workflow.
Who is it for?
Indie builders doing discretionary or systematic US equity research who already accept political-text signal risk and will validate stats independently.
Skip if: Non-traders, regulated advisory use without compliance review, or builders who need guaranteed predictive performance.
When should I use this skill?
User asks to analyze Trump posts for market signals, run trump code predict, check today's trading signals, decode Truth Social posts, or inspect surviving brute-force rules.
What do I get? / Deliverables
You can run daily signals, inspect surviving rules from large-scale search, and optionally layer Gemini or Opus briefings on detected patterns.
- CLI signal output for current Trump posts
- Access to model performance and surviving rule sets from brute-force search
Recommended Skills
Journey fit
Idea/research is the canonical shelf because the skill supports hypothesis-driven signal discovery before you commit capital or automate trades. Brute-force rule survival and daily signal reads are research workflows, not production ops or generic growth analytics.
How it compares
Research CLI plus documented rule engine—not a hosted brokerage API or a general sentiment MCP server.
Common Questions / FAQ
Who is trump-code-market-signals for?
Developers and solo traders comfortable with Python CLIs, API keys, and open-source quant experiments on US index-linked signals.
When should I use trump-code-market-signals?
Use it in Idea research when exploring Trump post patterns, checking today’s CLI signals, or rerunning brute-force rule searches—not as a substitute for compliance-reviewed trade execution.
Is trump-code-market-signals safe to install?
It requires network access, Python deps, and third-party API keys; review the Security Audits panel on this page and never commit GEMINI_KEYS or ANTHROPIC_API_KEY to git.
SKILL.md
READMESKILL.md - Trump Code Market Signals
# Trump Code — Market Signal Analysis > Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection. Trump Code is an open-source system that applies brute-force computation to find statistically significant patterns between Trump's Truth Social/X posting behavior and S&P 500 movements. It has tested 31.5M model combinations, maintains 551 surviving rules, and has a verified 61.3% hit rate across 566 predictions (z=5.39, p<0.05). ## Installation ```bash git clone https://github.com/sstklen/trump-code.git cd trump-code pip install -r requirements.txt ``` ### Environment Variables ```bash # Required for AI briefing and chatbot export GEMINI_KEYS="key1,key2,key3" # Comma-separated Gemini API keys # Optional: for Claude Opus deep analysis export ANTHROPIC_API_KEY="your-key-here" # Optional: for Polymarket/Kalshi integration export POLYMARKET_API_KEY="your-key-here" ``` ## CLI — Key Commands ```bash # Today's detected signals from Trump's posts python3 trump_code_cli.py signals # Model performance leaderboard (all 11 named models) python3 trump_code_cli.py models # Get LONG/SHORT consensus prediction python3 trump_code_cli.py predict # Prediction market arbitrage opportunities python3 trump_code_cli.py arbitrage # System health check (circuit breaker state) python3 trump_code_cli.py health # Full daily report (trilingual) python3 trump_code_cli.py report # Dump all data as JSON python3 trump_code_cli.py json ``` ## Core Scripts ```bash # Real-time Trump post monitor (polls every 5 min) python3 realtime_loop.py # Brute-force model search (~25 min, tests millions of combos) python3 overnight_search.py # Individual analyses python3 analysis_06_market.py # Posts vs S&P 500 correlation python3 analysis_09_combo_score.py # Multi-signal combo scoring # Web dashboard + AI chatbot on port 8888 export GEMINI_KEYS="key1,key2,key3" python3 chatbot_server.py # → http://localhost:8888 ``` ## REST API (Live at trumpcode.washinmura.jp) ```python import requests BASE = "https://trumpcode.washinmura.jp" # All dashboard data in one call data = requests.get(f"{BASE}/api/dashboard").json() # Today's signals + 7-day history signals = requests.get(f"{BASE}/api/signals").json() # Model performance rankings models = requests.get(f"{BASE}/api/models").json() # Latest 20 Trump posts with signal tags posts = requests.get(f"{BASE}/api/recent-posts").json() # Live Polymarket Trump prediction markets (316+) markets = requests.get(f"{BASE}/api/polymarket-trump").json() # LONG/SHORT playbooks playbook = requests.get(f"{BASE}/api/playbook").json() # System health / circuit breaker state status = requests.get(f"{BASE}/api/status").json() ``` ### AI Chatbot API ```python import requests response = requests.post( "https://trumpcode.washinmura.jp/api/chat", json={"message": "What signals fired today and what's the consensus?"} ) print(response.json()["reply"]) ``` ## MCP Server (Claude Code / Cursor Integration) Add to `~/.claude/settings.json`: ```json { "mcpServers": { "trump-code": { "command": "python3", "args": ["/path/to/trump-code/mcp_server.py"] } } } ``` Available MCP tools: `signals`, `models`, `predict`, `arbitrage`, `health`, `events`, `dual_platform`, `crowd`, `full_report` ## Open Data Files All data lives in `data/` and is updated daily: ```python import json, pathlib DATA = pathlib.Path("data") # 44,000+ Truth Social posts posts = json.loads((DATA / "trump_posts_all.json").read_text()) # Pos