Como o risco governa a execução.

A arquitetura de execução de algoritmos quânticos da mesa — do feed da B3 ao botão de pânico. Cada nó expõe os controles de risco que executa, e cada controle se conecta ao ponto onde é medido no dashboard.

▣ System architecture — feed → risk gate → execução
System health
—
14/14 nodes reporting
worst-state wins · live
Availability · 24h
99.98%
00:00now
Availability · 7d
99.91%
−6dtoday
Availability · 30d
99.86%
−29dtoday

Exchange (B3)

Multicast feed A / B
UMDF SBE over UDP, dual lines
Matching engine
FIFO / pro-rata; auctions
Auction / Halt source
price tunnels, trading halts

Server / HW

NIC A / B
independent capture paths
+ NIC / Link Watchdog proposto
Pinned cores
Feed · Router · Strategy · Execution
● Latency / Roundtrip ⟶ ● Core Isolation ⟶
Zero-GC hot path
struct / Span / pooled, no locks
+ Memory Pressure Guard proposto

Gateways

SBE feed gateway
parse + dispatch
🛡 Feed Arbitration A/B ⟶
Profit / OEL gateway
broker order egress
● Connection Health ⟶ 🛡 Network Breaker ⟶

Core Apps — engines + risk

Engine.Hft (ns)
delegate* strategy loop, ~7c
+ Loop Stall Detector proposto
Engine.Mft (µs)
full risk stack, DSL, Studio
+ Proc / Core Saturation proposto
RISK CORE (Mft)
deterministic pre-trade gates
▲ Order Control ⟶ ● Position Control ⟶ 🛡 Instrument Volatility Control ⟶ 🛡 Book Depth Control ⟶ 🛡 Circuit Breakers ⟶ 🛡 Regime Sizing ⟶
RedundancyCoordinator
hot-standby (Reddy)
🛡 Authority / Failover ⟶ 🛡 Heartbeat ⟶

Interface

WPF Studio · Dashboard
SmallDashboardControl
● Positions & PnL ⟶ ✋ Panic All ⟶
Active incidents—
Communication topology — sequence
market data · tick + book order send / receive risk gate internal
EXCHANGE tick + book source MD GATEWAY MD parse · order egress MD ORD ENGINE signal · order intent MD ORD RISK GATE pre-trade gate ORD · GATE BROKER / EXCH order in · ack / fill ORD ① MARKET DATA IN ② ORDER FLOW tick (SBE) book delta (SBE) parsed tick + book · +120ns signal eval order intent pre-trade gate · +40ns order out · 380ns ack / fill · svc⇄exch 1.8ms position update
V3 · Sequence. Swimlanes por subsistema com o tempo descendo. Cada lane traz selos MD (recebe market data — tick + book) e ORD (envio / recebimento de ordens), separando quem processa dados de mercado de quem trafega ordens. ① market data in — tick e book chegam de Exchange → Gateway → Engine (teal); ② order flow — intent → gate de risco (âmbar, sempre antes do envio) → order out → ack / fill (azul). Orçamento de latência anotado por salto.
▣ Trader dashboard — execução · PnL · risco por símbolo
Regime NORMAL 100%ELEVATED 50%CRITICAL 20% arch Conn DiscConnMktFULLY arch Heartbeat♥ 3ms

Execution 1 HFT

Market feedarch
FEED AACTIVE
FEED Bstandby
Redundancyarch
PRIMARY
node-01
transmit ✓
HOT
node-02
ready
WARM
node-03
cold
Tick-to-trade & roundtrip — live (2s)arch
tick→tradeinternal
—
roundtriporder→fill
—
svc⇄exchorder→ack
—

Execution 2 MFT

Market feedarch
FEED AACTIVE
FEED Bstandby
Redundancyarch
PRIMARY
node-01
transmit ✓
HOT
node-02
ready
WARM
node-03
cold
Tick-to-trade & roundtrip — live (2s)arch
tick→tradeinternal
—
roundtriporder→fill
—
svc⇄exchorder→ack
—
Global PnL arch
+1,155
soma de todas as execuções · dia
HFT · Engine.Hft
+90
MID · Engine.Mft
+165
LOW · config profile
+900
Day cost
35
Orders S/E/C
116/111/5
Strategies — where they runarch
StrategyTierEngineSymL / SPendPnL
MM-WINHFTEngine.HftWIN3 / 10+120
ARB-WDOHFTEngine.HftWDO2 / 21-30
MR-DOLMIDEngine.MftDOL0 / 10-45
MOM-PETR4MIDEngine.MftPETR4300 / 00+210
CARRY-INDLOWEngine.MftIND5 / 01+900
Monitored symbols — volatility & activityarch
WINHFT
ticks / s
—
peak t/s
—
avg t/s · 10s
—
total ticks
—
volatility
—
spread
1 tk
Order book · bid / ask—
◄ bid · μ±1σask · μ±1σ ►
CB depth
WDOHFT
ticks / s
—
peak t/s
—
avg t/s · 10s
—
total ticks
—
volatility
—
spread
1 tk
Order book · bid / ask—
◄ bid · μ±1σask · μ±1σ ►
CB depth
DOLMID
ticks / s
—
peak t/s
—
avg t/s · 10s
—
total ticks
—
volatility
—
spread
2 tk
Order book · bid / ask—
◄ bid · μ±1σask · μ±1σ ►
CB depth
PETR4MID
ticks / s
—
peak t/s
—
avg t/s · 10s
—
total ticks
—
volatility
—
spread
1 tk
Order book · bid / ask—
◄ bid · μ±1σask · μ±1σ ►
CB depth
INDLOW
ticks / s
—
peak t/s
—
avg t/s · 10s
—
total ticks
—
volatility
—
spread
3 tk
Order book · bid / ask—
◄ bid · μ±1σask · μ±1σ ►
CB depth