← Back

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)

🚨 ПРАВИЛО: "Сохранись" = 5 мест

При команде "сохранись" ВСЕГДА обновить ВСЕ 5 мест:

  1. git commit — коммит изменений
  2. git push — пуш на remote
  3. Скилл (/home/app/skills/futures-screener/SKILL.md) — параметры, версии, грабли
  4. Brain (/home/app/brain/decisions/log.md) — решение + причина
  5. Memory (MEMORY.md) — краткая запись в Ключевые факты

НЕ ПРОПУСКАТЬ. Не спрашивать. Делать все 5 сразу.


🚨 Deploy Rules (CRITICAL — May 7 + May 11 lessons)

Environments

Dev (основной сервер) Prod (Malaysia VPS)
Домен futures-screener.szhub.space screen.clkway.online
IP 76.13.138.220:3200 72.62.247.119:3200
Push OFF ON (только прод!)
Назначение Разработка, тесты Юзеры, стабильная версия

Deploy to Prod

Rules

Recent Major Changes

📜 Git History

e3636b4ops: add deploy-prod.sh script + deploy log + environment docs8 weeks ago
da1f596fix: resync queue with batching to prevent Binance IP ban8 weeks ago
80ea647docs: add "сохранись = 5 мест" rule to CLAUDE.md9 weeks ago
d5c5ba1feat: add CLAUDE.md + vitest tests (AgentLint 33→72/100)9 weeks ago
Show last diff
Loading...