Skip to content

feat: Market DNA Helix — 3D real-time market intelligence visualization#1

Merged
mefai-dev merged 3 commits intomainfrom
feature/market-dna-helix
Mar 5, 2026
Merged

feat: Market DNA Helix — 3D real-time market intelligence visualization#1
mefai-dev merged 3 commits intomainfrom
feature/market-dna-helix

Conversation

@mefai-dev
Copy link
Owner

Summary

Adds a new standalone page (/dna) featuring a Three.js 3D double-helix visualization that encodes real-time market intelligence into an interactive DNA structure.

  • 3D Double Helix: ~50 trading pair nodes arranged on a rotating DNA helix, with bull (green) and bear (red) backbone strands
  • Live Data Encoding: Node color = smart money composite, size = market significance, glow = extreme funding / volatile breakout, rungs = basis spread state (contango/backwardation)
  • Data Stream Effect: Labeled data particles (RSI, MACD, funding rates, regime states) fly from corner overlay panels directly to their corresponding 3D nodes
  • Branch Indicators: RSI, MACD, OI, and funding branches fork from each node with color-coded tips
  • Interactive Panels: Smart money flow feed, buy/sell signal feed (live generation), accumulation scanner, detail sidebar on node click
  • Performance: 5 parallel API fetches, 30s auto-refresh, 40 mock-extended symbols (no extra API load), standalone CSS (zero main.css conflicts)

Technical Details

Component Implementation
3D Engine Three.js v0.162.0 via ES module importmap (CDN)
Helix Math CatmullRomCurve3 → TubeGeometry, parametric spiral
Data Sources /api/intelligence/{smart-money,funding-scan,regime,basis-spread,accumulation}
Node Projection Vector3.project(camera) → 2D screen coords for fly particle targeting
Styling Standalone CSS with superbsc theme variables, no main.css import
Mobile "Desktop Only" message with back-to-terminal link

Files Changed

File Change
frontend/dna.html New standalone page
frontend/css/dna.css Standalone theme-matched CSS (150 lines)
frontend/js/dna.js Three.js visualization engine (639 lines)
proxy/main.py Added /dna route
frontend/index.html Added "Market DNA" nav link (desktop + mobile)

Screenshots

Live at: https://mefai.io/superbsc/dna

Test Plan

  • Page loads at /superbsc/dna with spinning Binance logo loader
  • 3D helix renders with ~50 nodes after data loads
  • Hover nodes → tooltip with composite/RSI/MACD/funding/regime
  • Click node → detail sidebar slides in from right
  • Data fly particles stream from corners to specific node positions
  • Buy/sell signals generate every 3 seconds in left panel
  • Corner overlays show regime, funding, basis, RSI/MACD data
  • All timestamps display in UTC
  • Mobile shows "Desktop Only" message
  • Auto-refresh every 30 seconds updates helix and panels
  • Navigation links work: Terminal ↔ Market DNA

Introduce a standalone Three.js-powered 3D double-helix visualization
that encodes live market intelligence data into an interactive DNA
structure. Each node represents a trading pair, positioned by market
significance, with color/size/glow encoding composite scores, funding
rates, regime states, and accumulation signals.

Key features:
- 3D double helix with ~50 nodes (12 real API + 40 mock-extended)
- Bull (green) and bear (red) backbone strands with basis-colored rungs
- RSI/MACD/OI/Funding branches forking from each node
- Data fly particles stream from corner overlays to target nodes
- Live buy/sell signal feed panel with mock signal generation
- Corner overlays showing regime, funding, basis, RSI/MACD data
- Smart money flow and accumulation side panels
- Detail sidebar with full breakdown on node click
- 30-second auto-refresh cycle, all timestamps in UTC
- Desktop-optimized with mobile "desktop only" message
- Standalone CSS (no main.css dependency) matching superbsc theme

Files: dna.html, css/dna.css, js/dna.js, proxy route, nav links
Document Skill 51: Market DNA — 3D double-helix visualization
encoding 5 intelligence data sources. Update project structure
and skills hub integration table.
- Add Bitcoin & Options Analytics (Skills 52-53): BTC Macro, On-Chain Stats, Binance Options, Deribit Options
- Add BNB Chain tools (Skills 54-56): TX Explorer, NFT Portfolio, Greenfield Explorer
- Add Trade Signal Intelligence (Skills 57-58): Trade Setup, Funding Alert, Liquidation Magnet, Intelligence Dashboard
- Add 4 new layout presets: BNB Chain, Bitcoin, Trade Signals, Intelligence
- Update all counts: 58 skills, 97 panels, 31 layouts, 26 route modules
- Add Three.js to tech stack, update route listing with all 26 backend modules
@mefai-dev mefai-dev merged commit 2c77196 into main Mar 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant