New advertisers: 50% off your first month with code FIRSTMONTHSee slots
reason-machines avatar

Trump Code Market Signals

Predicts S&P 500 moves from Trump's social posts using 551 surviving rules from 31.5M tested combinations.

skills.sh installs
1.3K
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers daily signal detection, LONG/SHORT consensus prediction, prediction market arbitrage, and a trilingual daily report
  • Includes CLI commands (signals, models, predict, arbitrage, health, report), a REST API, and an MCP server for Claude Code and Cursor
  • Ships open data files such as surviving_rules.json, predictions_log.json, and 44,000+ Truth Social posts, with a circuit breaker for system health
  • Designed for quantitative researchers testing post-driven market signals, with a reported 61.3% hit rate across 566 predictions

Install

$ npx -y skills add reason-machines/trending-skills --skill trump-code-market-signals -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Trump Code — Market Signal Analysis

Skill by 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

git clone https://github.com/sstklen/trump-code.git
cd trump-code
pip install -r requirements.txt

Environment Variables

# 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

# 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

Details

Repository
github.com/reason-machines/trending-skills
Categories
Finance & Trading, Data Science & Analytics, Social Media
First seen
Apr 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Trump Code Market Signals

More Finance & Trading