Why OpenTradex
Every serious trader ends up juggling ten tabs, three terminals, a charting tab,
a half-broken Polymarket script, and a Slack channel full of signals nobody has time to read.
OpenTradex is the command cockpit that replaces the tab sprawl.
A single dashboard that speaks to prediction markets, equities, crypto, and forex
through one AI-driven harness — local-first, paper-by-default, and fully yours.
scan markets -> AI filters signal -> you approve trade -> paper fill -> review
No SaaS. No account. No telemetry. Your API keys stay on your machine.
Highlights
| |
|---|
| 12 connectors | Polymarket · Kalshi · Stocks · Alpaca · IBKR · Binance · Coinbase · OANDA · MetaTrader 5 · Dukascopy · Robinhood · DraftKings |
| Houston-style cockpit | Resizable 3-pane dark terminal inspired by pro trading desks |
| AI harness | Bring your own model — Anthropic, Google, OpenAI-compatible, or local CLIs |
| Real-time wire | Native WebSocket with SSE fallback for positions, trades, and news |
| Paper-first safety | Live trading is gated behind a 24h lock + explicit mode flip |
| Ships everywhere | npm CLI · Web dashboard · Electron desktop · iOS SwiftUI · Expo mobile |
| Your keys only | All creds in ~/.opentradex/config.json — nothing leaves the machine |
Install
One-line (CLI + gateway + web UI)
npx opentradex onboard --paper-only && npx opentradex run
Desktop (Windows / macOS / Linux)
Grab the signed installer from Releases —
Windows builds are Authenticode-signed, macOS builds are Developer ID-signed and notarized,
so no SmartScreen or Gatekeeper warnings on install.
Prefer to build it yourself (unsigned dev build)?
git clone https://github.com/deonmenezes/opentradex.git
cd opentradex
npm install
npm run build:all
npm run build:desktop:win # or :mac / :linux
Installer lands in packages/desktop/release/. Code-signing is automatically skipped
when the env vars below are absent, so local dev builds always work.
Signing env vars (release only)
The .github/workflows/release.yml pipeline picks these up on tag push (git tag v1.0.0 && git push --tags):
| Variable | Purpose |
|---|
CSC_LINK | Windows .pfx cert (path or base64) for Authenticode |
CSC_KEY_PASSWORD | Password for the .pfx |
APPLE_ID | Apple ID email for notarization |
APPLE_APP_SPECIFIC_PASSWORD | App-specific password from appleid.apple.com |
APPLE_TEAM_ID | 10-character Team ID from developer.apple.com |
Store these as GitHub Actions secrets. They are never logged and never bundled into the installer.
Mobile
# iOS (SwiftUI, native)
open packages/ios/OpenTradex/OpenTradex.xcodeproj
# Android / iOS (Expo)
cd packages/mobile && npm install && npx expo start
Quickstart
# 1. First-time setup — pick your rails, set paper mode, drop in API keys
opentradex onboard
# 2. Boot the gateway (HTTP + WS on :3210)
opentradex run
# 3. Open the cockpit
npm run ui # web
npm run desktop # Electron
Then tell it what to do:
> scan all markets and propose the best trade under $50 risk
> close BTC-EOY-120K on kalshi
> analyze "Fed cut September" news from reuters
> panic
The Cockpit