How rehankwatla/tredye-noti works
Tredye Flow Alerts is a self-hosted NSE order-flow and order-block research terminal for manual review, not automated trading. A user opens the terminal; the service obtains Tredye flow data and optional Upstox quotes, depth, candles, and live ticks, then scores flow, detects/ranks blocks, and serves snapshots for the funnel and volume-profile tiles. Alerts, tracker outcomes, and settings are supported capabilities; settings also configure credentials and terminal rules. The graph follows documented features and indexed imports; unsampled modules are represented only where the README establishes their role.
Main entry points: flow-service.js Flow service · OrderBlockTerminal.jsx Order Block Terminal · server.js HTTP and SSE API · client.js Upstox client
Components 23
Terminal experience
- Order Block Terminal
src/components/OrderBlockTerminal.jsx - Funnel and filters
src/client/orderblock/js/04-stage-funnel.js - Profile tiles
src/client/orderblock/js/05-tiles-tickets.js - Hover inspector
src/client/orderblock/js/06-fx-inspector.js - Mobile layout
src/client/orderblock/js/07-mobile-stack.js - Themes and canvas
src/client/orderblock/js/01-theme-canvas.js - Settings interface
src/components/SettingsView.jsx - Settings controller
src/client/settings/settings-controller.js
Polling and analysis
- HTTP and SSE API
src/server/server.js - Flow service
src/service/flow-service.js - Market hours
src/market/hours.js - Flow scoring
src/engine/flow.js - Aggressor metrics
src/engine/aggressor.js - Order block detection
src/engine/orderblocks.js - Candidate ranking
src/engine/orderblock-ranking.js - Alert signals
src/engine/signals.js - Alert outcomes
src/engine/outcomes.js - Edge report
src/service/flow-service.js
Market data integrations
- Tredye client
src/tredye/client.js - Upstox client
src/upstox/client.js - Offline sample data
data/sample-fixture.js
Persistence and outcomes
- SQLite flow store
src/store/db.js
Other components
- Manual reviewer
Connections 25
- Manual reviewer → Order Block Terminal: reviews
- Manual reviewer → Settings interface: configures
- Order Block Terminal → Funnel and filters: presents
- Funnel and filters → HTTP and SSE API: requests snapshots
src/server/server.js - Order Block Terminal → Profile tiles: shows profiles
- Order Block Terminal → Hover inspector: offers inspection
- Order Block Terminal → Mobile layout: adapts layout
- Order Block Terminal → Themes and canvas: supports themes
- Settings interface → Settings controller: loads controller
src/components/SettingsView.jsx - Settings controller → HTTP and SSE API: updates settings
- HTTP and SSE API → Flow service: routes requests
src/server/server.js - Flow service → Market hours: checks session
src/service/flow-service.js - Flow service → Tredye client: fetches flow
src/service/flow-service.js - Flow service → Upstox client: fetches market data
src/service/flow-service.js - Flow service → Offline sample data: loads demo data
src/service/flow-service.js - Flow service → Flow scoring: scores confluence
src/service/flow-service.js - Flow service → Order block detection: detects blocks
src/service/flow-service.js - Flow service → Candidate ranking: ranks candidates
src/service/flow-service.js - Flow service → Alert signals: evaluates alerts
src/service/flow-service.js - Flow service → Alert outcomes: builds reports
src/service/flow-service.js - Flow service → SQLite flow store: persists state
src/service/flow-service.js - Upstox client → Aggressor metrics: computes trade metrics
src/upstox/client.js - Flow service → HTTP and SSE API: serves dashboard state
src/service/flow-service.js - Flow service → Edge report: generates edge report
src/service/flow-service.js - Upstox client → Profile tiles: supplies candles and ticks