Electron desktop app for USDM futures algorithmic trading on Binance Testnet.
- Dark trading dashboard (chart, order ticket, order book, positions, KPI cards)
- Secure architecture: API keys in main process only (contextIsolation + safeStorage)
- Pluggable strategy engine with EMA/VWMA crossover
- Backtest runner with performance metrics
- Binance Testnet by default
npm install
npm run dev- Open Settings and enter your Binance Testnet API key + secret
- Use the Dashboard for manual trading and market view
- Configure strategy params in Algo Builder, then RUN the algo engine from the sidebar
- Run Backtest to evaluate strategy before going live
src/main/ Electron main — Binance API, strategy engine, backtest
src/preload/ contextBridge IPC API (window.api)
src/renderer/ React UI
src/shared/ Types, constants, IPC channel names
Optional .env for development (fallback if keys not stored in Settings):
API_KEY=your_testnet_key
API_SECRET=your_testnet_secret
Never commit real API keys.
- Create
src/main/strategies/MyStrategy.tsimplementing theStrategyinterface - Register it in
src/main/strategies/registry.ts - Add signal logic usable by both
StrategyEngine(live) andBacktestRunner
