QuantPulse
Automated webhook-driven execution engine for Binance Futures
QuantPulse is an automated execution engine that receives alerts from TradingView webhooks and executes trades on Binance Futures. It includes advanced features such as multi-stage take-profit execution (TP1 at 60%, TP2 at 40%), trailing / break-even stop loss, multi-symbol concurrency, daily PnL limit guards, startup state auto-sync, and duplicate signal prevention to avoid double orders during network retries.
Key Features
Webhook Execution
Receives HTTP POST webhooks from TradingView alerts and processes them asynchronously.
Multi-stage TP/SL
Closes 60% at TP1, the rest at TP2, and shifts the stop loss to break-even automatically.
Duplicate Prevention
Deduplicates signals by symbol, direction, and a 30-second window to prevent double orders.
Risk Controls
Caps concurrent trades and pauses new entries when the daily loss limit is reached.
Auto-Sync Recovery
Rebuilds tracking state on startup from live Binance positions to avoid orphaned trades.
Challenges & Solutions
Duplicate signals
TradingView retries failed webhooks on timeout, which can cause duplicate trade execution.
Race conditions
Concurrent signals for different symbols (BTC, ETH, TAO) could cause state conflicts.
Orphaned positions
Crashes or restarts could wipe in-memory tracking, leaving active trades unmanaged.
Rolling window gate
A 30-second, time-bucketed dedupe window suppresses retries while allowing valid re-entries.
Serialized locks
Symbol-level threading locks run symbols concurrently while serializing same-symbol signals.
Binance auto-sync
A startup routine queries Binance to reconstruct local tracking from actual open positions.