โ† ะะฐะทะฐะด

Futures Screener

Real-time Binance Futures screener with order book density analysis, signal detection, and charting.

Architecture

futures-screener/
โ”œโ”€โ”€ server/           # Node.js Fastify API (port 3200)
โ”‚   โ”œโ”€โ”€ index.js      # Main server, routes, Binance API integration
โ”‚   โ”œโ”€โ”€ signals.js    # Signal engine (vol_spike, liq_sweep, oi_div, funding_squeeze)
โ”‚   โ”œโ”€โ”€ liq-sweep.js  # Liquidity sweep detection (swing-only, volume gate)
โ”‚   โ”œโ”€โ”€ densityV2.js  # Order book density V2 (adaptive buckets, ฯƒ walls)
โ”‚   โ”œโ”€โ”€ ws.js         # WebSocket manager (Binance market streams)
โ”‚   โ”œโ”€โ”€ auth.js       # JWT auth + Google OAuth
โ”‚   โ”œโ”€โ”€ push.js       # Web Push notifications (VAPID)
โ”‚   โ”œโ”€โ”€ state.js      # In-memory state management
โ”‚   โ”œโ”€โ”€ klines-cache.js # Kline cache layer
โ”‚   โ””โ”€โ”€ modules/      # Binance API wrapper, density detector/tracker
โ”œโ”€โ”€ app/              # Frontend (vanilla JS, no framework)
โ”‚   โ”œโ”€โ”€ index.html    # SPA entry
โ”‚   โ”œโ”€โ”€ app.js        # Core UI logic
โ”‚   โ”œโ”€โ”€ mini-charts.js # LWC v5 charts (259KB, main visualization)
โ”‚   โ”œโ”€โ”€ signals.js    # Signal UI
โ”‚   โ”œโ”€โ”€ settings.js   # Settings panel (30+ options)
โ”‚   โ”œโ”€โ”€ drawing-manager.js # Chart drawing tools
โ”‚   โ””โ”€โ”€ sw.js         # Service Worker (push + caching)
โ”œโ”€โ”€ data/             # SQLite DBs (signals, push_subscriptions)
โ””โ”€โ”€ docs/             # VISION, ROADMAP, UI-SPEC, STATUS

Quick Start

cd /home/app/futures-screener
npm test              # Run smoke tests
node server/index.js  # Start server (or PM2: futures-screener)

Key Commands

Tech Stack

Code Conventions

Signal Types

Signal Logic Confidence
vol_spike Volume โ‰ฅ5x 20-period avg 40-100
liq_sweep Swing level + volume gate + OI drop 35-100
oi_divergence Price/OI divergence (exhaustion/accumulation) 40-100
oi_funding_squeeze OI spike + extreme funding (contrarian) 40-100

Important Context

Environment Variables

See .env.example โ€” key ones: JWT_SECRET, VAPID_*, PORT (default 3200)

Recent Major Changes