The market confidence system answers the central question: "Is this price move driven by humans or algorithms?"
It combines sentiment analysis, price correlation, funding rates, VIX regime, and bot detection into a unified signal.
flowchart TB
subgraph DataSources["Data Sources"]
Sentiment[("Sentiment Data Reddit, Twitter, Telegram")]
Price[("Price Data Yahoo, CoinGecko")]
Funding[("Funding Rates Binance Perpetuals")]
VIX[("VIX Data Yahoo Finance")]
Ticks[("Tick Data Binance/Polygon")]
end
subgraph Engine["Analysis Engines"]
Divergence["Divergence Engine divergence-engine.ts"]
ArbBot["Arb-Bot Detector arb-bot-detector.ts"]
TickClass["Tick Classifier tick-classifier.ts"]
end
subgraph Composite["Composite Score Engine"]
Score["Human-vs-Automation composite-score.ts"]
Weights["Weighted Average 5 sub-inputs"]
end
subgraph Output["Outputs"]
DB[("computed_insights kind='human_automation'")]
UI["HumanAutomationPanel /derivatives page"]
ASE["All-Seeing Eye Trust Layer aggregation"]
end
Sentiment --> Divergence
Price --> Divergence
Funding --> Score
VIX --> Score
Ticks --> TickClass
Ticks --> ArbBot
Divergence --> Score
ArbBot --> Score
TickClass --> Score
Score --> Weights
Weights --> DB
DB --> UI
DB --> ASE
style DataSources fill:#1a1a2e
style Engine fill:#16213e
style Composite fill:#1a472a
style Output fill:#2d132c
Composite Score: Human vs Automation
A single signal from -1 (bot-dominated) to +1 (human-driven) per symbol.
File: composite-score.ts
Displays per-symbol human-vs-automation scores on the /derivatives page.
Panel Features
Per-symbol score bar (-1 to +1)
Classification label pill
Expandable sub-score breakdown
Confidence indicator
Last update timestamp
API Endpoint
GET /api/predict/v1/insights/human-automation/batch
Returns latest scores for all monitored symbols. Public read access.
Scheduler Job
The human-automation composite is refreshed every 15 minutes.
Job
Interval
Process
human-automation
15 minutes
1. Run divergence engine for all symbols
2. Compute composite score with all sub-inputs
3. Persist to computed_insights
Data Pipeline
sequenceDiagram
participant Sched as Scheduler
participant Div as Divergence Engine
participant Comp as Composite Score
participant DB as computed_insights
participant UI as Frontend
Note over Sched: Every 15 minutes
Sched->>Div: Run divergence for symbols
Div->>Div: Fetch sentiment + price
Div->>Div: Compute correlation
Div->>DB: Store divergence result
Sched->>Comp: Compute composite
Comp->>DB: Read latest divergence
Comp->>Comp: Fetch funding, VIX, arb-bot
Comp->>Comp: Weighted average
Comp->>DB: Store human_automation result
UI->>DB: GET /insights/human-automation/batch
DB-->>UI: Return scores + classifications
Anomaly Detection Signals
The system flags anomalies when signals diverge from normal patterns.
Volume Anomaly
ANOMALY
Volume z-score > 2 without corresponding news or sentiment.
Sentiment Divergence
ANOMALY
Strong sentiment move with no price response (social noise).
Price Without Narrative
WARNING
Significant price move with flat sentiment (bot-likely).