TRADESTACK / ENGINEERING ARCHITECTURE

One pipeline.
Decisions you can trace.

Every service has a specific responsibility. The execution engine processes market events and simulated positions, while the gateway handles authenticated controls and history for individual paper-trading accounts.

UPSTOX V3PYTHONNODE.JSREDISMONGODBPARQUET
01 / THE DECISION PATH

From market feed
to an auditable trade.

01 / MARKET INGESTION

Upstox V3 market data

Streaming index and option feeds provide available prices, ticks and option depth used by the research service.

02 / ANALYSIS

Python candle, indicator and strategy engine

Market structure, VWAP, momentum, 1-minute candles, multi-timeframe context and named setups.

03 / VALIDATION

Signal filters and risk controls

Time windows, scoring, market context, daily loss restrictions, session protection and strike/depth checks.

04 / PAPER EXECUTION

Simulated fill and trade lifecycle

Order simulation, stop logic, break-even, trailing adjustments, scheduled exit behavior and settlement accounting.

05 / PERSISTENCE AND REPLAY

MongoDB, Redis and Parquet

Persisted trades and signals for audit, ephemeral session/risk state, and recordings for replay research.

02 / COMPONENT RESPONSIBILITIES

Distinct services.
Connected carefully.

Authentication and operations stay separate from market analysis and simulated execution.

NODE.JS / EXPRESSGATEWAY

Account & session boundary

Upstox OAuth, server-side HttpOnly sessions, CSRF enforcement, account ownership checks, dashboard views and authenticated paper-session controls.

PYTHON / FASTAPIENGINE

Decision and risk pipeline

Market-data intake, strategy evaluation, filter chains, strike selection and simulated trade lifecycle. The gateway does not expose public live orders.

REDIS + MONGODBSTATE

Operational state and history

Redis coordinates session commands, risk locks and short-lived state. MongoDB stores trades, signals and history used by analytics and research.

DUCKDB + PARQUETREPLAY

Market capture and simulation

Tick/depth recordings and manifests support event-clock replay and a depth-aware fill simulator. Complete-session fidelity remains an explicit validation task.

03 / SECURITY MODEL

Public website.
Private trading boundary.

This static site contains public project descriptions. It does not embed broker tokens, private account records, order endpoints or execution credentials.

Dashboard accessACCOUNT-RESTRICTED
Broker tokensSERVER-SIDE ONLY
Trade historyACCOUNT OWNERSHIP CHECKED
Direct live orders in gatewayDISABLED