Multidimensional Market Intelligence Engine

Multidimensional Market Intelligence Engine

Realtime multidimensional computation infrastructure for filtering, ranking, scoring, and serving continuously mutating market intelligence.

Low latency

<150ms p95 response

High throughput

10K+ req/sec

Active trades

1M+ tracked realtime

Advisor intelligence

5K+ advisors scored

Realtime · Incremental · Intelligent

Live prices

Trade universe

Ranking computation

Advisor intelligence

Query orchestrator

01

Query explosion

Nine dimensions compound combinatorially — each permutation is a new aggregation path under live prices.

Period

Intraday · Swing · Positional

Category

Index Opt · Stock Opt · Futures · Equity

Position

Buy · Sell · Hold

Source

Telegram · Report · X · YouTube

Trade status

Open · Closed · Pending

Date range

7D · 30D · 90D · Custom

Profit potential

Upside % · R:R · Absolute

Advisor accuracy

Rolling · Segmented

Sorting

Upside · Recent · Accuracy

Millions of possible query paths

Redis query orchestrator
02

Failure mode

Why traditional caching failed

Static keys break when filters × live prices explode into unrelated aggregation paths — the pivot from cache-first to computation-first.

Filter change

Single filter change

Cache invalidation

New aggregation path

Market mutation

Live price mutation

Ranking mutation

Continuous recomputation pressure

  • Cache hit rate collapsed under combinatorial paths
  • Mongo aggregation CPU spiked on hot queries
  • Expensive recomputation on every meaningful change
  • Throwing EC2 at the problem could not scale fast enough
03

Orchestration

Redis computation architecture

Redis as a layered computation substrate — sorted sets, sets, and hashes composing live ranking and intelligence under continuous mutation.

1

Layer 1

Live price layer

price:{ticker}cmp:{ticker}

Live market state from tick feeds.

2

Layer 2

Trade state layer

trade:{id}trade:opentrade:category:{x}trade:source:{x}

Trade filtering & grouping.

3

Layer 3

Ranking layer

trade:rank:upsidetrade:rank:accuracytrade:rank:relevance

Realtime ranking computation.

4

Layer 4

Advisor intelligence layer

advisor:perf:{id}

Fieldsaccuracy · rolling consistency · risk score · realized performance · unrealized performance

Dynamic advisor intelligence scoring.

5

Layer 5

Reference layer

category:{id}period:{id}advisor:{id}

Static reference & metadata — advisor info, ticker mappings, category references.

04

Execution

Query execution flow

Set intersections and sorted-set operations first — hydrate documents only at the boundary.

SINTER

Intersect filter sets → candidate IDs

Candidate IDs

Filtered IDs only — no heavy objects yet

ZINTERSTORE

Rank overlay via sorted-set intersection

Rank overlay

Merge ranking scores for candidates

ZREVRANGE

Top-N trade IDs in rank order

Top-N IDs

Paginated IDs for hydration

HMGET hydration

Full trade objects for results

API response

Low-latency payload to clients

05

Scoring

Realtime advisor intelligence engine

Old system
wins / total trades
  • ×Stale rankings
  • ×Ignored live open trades
  • ×Easily gamed or manipulated signals
New system
  • +realized performance
  • +unrealized performance
  • +rolling consistency
  • +risk adjustment
  • +live trade quality

Rolling windows

1d7d30d90d

Category segmentation

  • · Index options
  • · Stock options
  • · Futures
  • · Equity

Weighted scoring

closed>open

Closed trades weighted higher than open trades in scoring blends.

06

Delta

Incremental recomputation system

Trade event
Delta update
Targeted Redis mutation
Partial ranking update

We never recomputed all trades per tick.

  • Stoploss cascade handling
  • Multiple targets & shared SL
  • Duplicate recomputation prevention
07

Ticks

Live profit potential mutation

Live tickProfit potential mutationRanking mutationSelective recomputation

Upside changes every tick.

  • Static cache keys could not track upside moving every tick.
  • Top-K ranking had to stay fresh without full global sorts.
  • Full recomputation across the universe was operationally impossible.

08Engineering philosophy

Filter first.
Hydrate last.

IDs are cheap. Objects are expensive.

Narrowing

Millions of IDs

Top-N IDs → hydrated objects

Traditional object-level aggregation collapses under continuously mutating multidimensional market state.

09

Impact

Operational outcomes

Reduced Mongo aggregation pressure

Low-latency multidimensional filtering

Realtime advisor intelligence scoring

Incremental recomputation

Dynamic live profit-potential serving