Skip to main content

Infortts Unified Notifications & Trading Execution Engine

This document defines the multi-channel notification infrastructure, news and macro event ingestion pipeline, Firebase automation strategy across all Infortts apps, and the execution roadmap for Mitochondria algorithmic trading.


1. Multi-Channel Notification Architecture​

The Infortts Notification Gateway (projects/shared/notification_gateway.py) and Client (projects/shared/notification_client.py) provide unified event queuing and dispatch across all ecosystem applications.

Supported Delivery Channels​

  • In-App Realtime Stream: Server-Sent Events (SSE) and WebSockets over https://forensics.infortts.site/api/v1/stream delivering instant sub-second HUD banners directly to Flutter Web, React, and mobile apps.
  • Native Web Push (VAPID API): Direct browser push notifications for web applications and PWAs without requiring heavy third-party vendor SDKs.
  • Mobile Push (Unified Gateway & ntfy.sh): High-speed push notifications with instant delivery, rich markdown, action links, and custom priority tags.
  • Email Newsletters & Flash Bulletins: Automated email queue for daily and weekly market intelligence digests, corporate releases, and critical security/OTA alerts.
  • Telegram Desk Bot: Realtime trade execution confirmations, risk alerts, and breaking macro news broadcasts.

2. Automated Firebase Strategy Across 40+ Infortts Apps​

Question: Do I need to set up Firebase for all my apps?​

Answer: NO. You do NOT need to configure 40+ individual Firebase projects.

The Single-Rail Automation Blueprint​

  1. Web Applications & PWAs (Zero Firebase Dependency):

    • Web apps use the standard W3C Web Push API with VAPID keys.
    • A single lightweight Service Worker (sw.js) is deployed across all web apps.
    • Subscription tokens are registered directly with your central Master Node notification hub.
  2. In-App Realtime Notifications (Zero External Dependency):

    • Connected clients stream events directly via SSE (/api/v1/stream) powered by Redis and NATS.
    • Completely self-hosted on Oracle Cloud Always-Free Master Node ($0.00 cost).
  3. Mobile Apps (Android / iOS):

    • You only need ONE Single Master Firebase Project (infortts-ecosystem).
    • All 28+ mobile apps are added as Client App IDs under that single Firebase project container.
    • Notifications are broadcast by topic (e.g. topic: infortts_mitochondria, topic: infortts_care4u, topic: infortts_all_apps), requiring zero individual project maintenance.
  4. Instant Push Fallback (ntfy.sh):

    • Zero-configuration topic-based instant push for developer alerts, admin desks, and background daemons.

3. Mitochondria News & Macro Feed Pipeline​

The Mitochondria News Hub (projects/mitochondria/vibe_trading/mitochondria_news_hub.py) continuously ingests, categorizes, and scores impact for:

  • Indian Stock Market & NSE/BSE:
    • Corporate earnings, Capex expansions, Sectoral rotations (NIFTY 50, SENSEX, Reliance, HDFC, IT, Auto).
    • RBI Monetary Policy Committee decisions, Repo Rate changes, and liquidity stances.
  • ForexFactory Economic Calendar:
    • Red Folder High-Impact Events: FOMC Benchmark Rate Decisions, US Non-Farm Payrolls (NFP), Consumer Price Index (CPI), Core PCE, Unemployment Rate.
    • Deviation alerts: Automatic comparison between Actual vs Forecast vs Previous.
  • X (Twitter) & Breaking Financial News:
    • Geopolitical headlines, Fed / ECB / BOJ governor press conferences, central bank balance sheet updates.
  • Central Bank Policy & Interest Rates:
    • Rate cut and hike cycles across USD, EUR, GBP, JPY, and INR.

4. Algorithmic Trading Execution Roadmap & Actionable TODOs​

TODO 1: News Trading Momentum Scalp & Entry Engine​

  • Objective: Exploit immediate 0 to 15-second post-news liquidity surges and order imbalance on Red Folder releases.
  • Strategy Rules:
    • Pre-News Quarantine: Pause regular limit orders 2 minutes prior to high-impact releases.
    • Spread Guardrail: Verify broker bid-ask spread is within normal limits before triggering execution.
    • Momentum Trigger: Detect volume delta spikes (> 300% 5-second burst) in the direction of the macroeconomic surprise.
    • Execution Outbox: Transmit single-rail market orders directly through order_outbox.db with strict slippage bounds.
    • Auto-Management: Instant dynamic breakeven trigger and trailing stop.
  • Notification Integration: Dispatches ⚡ NEWS SCALP FIRED alert with entry price, direction, spread, and volume metrics to all channels.

TODO 2: Multi-Timeframe Confluence Engine (HTF Zones with 1m A+ Setups)​

  • Objective: Execute high-probability institutional setups by aligning Higher Timeframe (4H / 1D / 1H) narrative with 1-minute (1m) tactical precision.
  • Strategy Rules:
    • Higher Timeframe (HTF) Narrative:
      • Identify Key HTF Support / Resistance, Fair Value Gaps (FVG), and Liquidity Pools (Buy-side / Sell-side Liquidity).
    • Lower Timeframe (1m) A+ Execution:
      • Wait for HTF zone tap followed by 1m Market Structure Shift (MSS) with displacement.
      • Identify the 1m Fair Value Gap or Breaker Block for optimal risk-reward entry (minimum 1:3 RR).
      • Fixed risk per trade capped at max 1% of account equity with strict prop-firm compliance.
  • Notification Integration:
    • Stage 1: 🟡 HTF Zone Tap Alert (Pre-warning)
    • Stage 2: 🎯 1m MSS Displacement Detected (Setup ready)
    • Stage 3: ✅ A+ Trade Executed & Protected (Live position tracking)