How rishavrai563/algorithmic-trading-workbench works
This is a visual algorithmic-trading workbench: users build a strategy, configure a historical period and asset, submit a backtest, inspect performance and trades, explore parameter variations, and compare runs. The documented UI pages and the sampled C# services support that overall workflow. The backend’s shown orchestration fetches and caches market data, runs LEAN, and parses results. Exploration and comparison are documented capabilities, but their implementation details and some frontend-to-backend wiring were not sampled; those links are therefore not asserted as verified calls.
Main entry points: App.jsx App & State · BacktestController.cs Backtest Controller · BacktestService.cs Backtest Orchestrator · HistoricalDataService.cs Historical Data Service
Components 26
Workbench UI
- App & State
frontend/src/App.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Strategy Builder
frontend/src/pages/StrategyBuilder.jsx - Parameters
frontend/src/pages/Parameters.jsx - Run Progress
frontend/src/components/LoadingBacktest.jsx
Backtest API
- Backtest Client
frontend/src/api/backtest.js - Backtest Controller
backend/Controllers/BacktestController.cs - Job Manager
backend/Services/JobManager.cs - Backtest Request
backend/Models/BacktestRequest.cs - Backtest Orchestrator
backend/Services/BacktestService.cs
Market Data
- Asset Registry
backend/Services/AssetRegistry.cs - Historical Data Service
backend/Services/HistoricalDataService.cs - Data Validator
backend/Services/DataValidator.cs - Historical Data Cache
lean_workspace/data/custom - Historical Data Provider
backend/Services/IHistoricalDataProvider.cs - Yahoo Provider
backend/Services/YahooHistoricalDataProvider.cs - Upstox Provider
backend/Services/UpstoxHistoricalDataProvider.cs
Backtest Execution
- LEAN Runner
backend/Services/LeanRunner.cs - LEAN Engine
Results & Analysis
- Result Parser
backend/Services/LeanResultParser.cs - Backtest Results
backend/Models/BacktestResponse.cs - Results View
frontend/src/pages/BacktestResults.jsx - Charts & Metrics
frontend/src/components/CandlestickChart.jsx - Parameter Exploration
frontend/src/pages/Explore.jsx - Strategy Comparison
frontend/src/pages/Compare.jsx
Other components
- Trader
Connections 32
- Trader → Dashboard: starts at
- App & State → Dashboard: routes to
frontend/src/App.jsx - App & State → Strategy Builder: routes to
frontend/src/App.jsx - App & State → Parameters: routes to
frontend/src/App.jsx - App & State → Run Progress: routes to
frontend/src/App.jsx - App & State → Results View: routes to
frontend/src/App.jsx - App & State → Parameter Exploration: routes to
frontend/src/App.jsx - App & State → Strategy Comparison: routes to
frontend/src/App.jsx - Strategy Builder → Parameters: continues to
- Parameters → Run Progress: submits to
- Strategy Builder → Backtest Client: uses
frontend/src/pages/StrategyBuilder.jsx - Backtest Client → Backtest Controller: submits request
- Backtest Controller → Backtest Request: accepts
backend/Controllers/BacktestController.cs - Backtest Controller → Job Manager: creates job
backend/Controllers/BacktestController.cs - Backtest Controller → Backtest Orchestrator: starts run
backend/Controllers/BacktestController.cs - Backtest Controller → Job Manager: reads status
backend/Controllers/BacktestController.cs - Backtest Orchestrator → Job Manager: updates progress
backend/Services/BacktestService.cs - Backtest Orchestrator → Historical Data Service: requests data
backend/Services/BacktestService.cs - Historical Data Service → Asset Registry: resolves asset
backend/Services/HistoricalDataService.cs - Historical Data Service → Historical Data Provider: fetches candles
backend/Services/HistoricalDataService.cs - Historical Data Service → Data Validator: validates data
backend/Services/HistoricalDataService.cs - Historical Data Service → Historical Data Cache: reads and writes
backend/Services/HistoricalDataService.cs - Historical Data Provider → Yahoo Provider: implemented by
backend/Program.cs - Historical Data Provider → Upstox Provider: implemented by
backend/Services/UpstoxHistoricalDataProvider.cs - Backtest Orchestrator → LEAN Runner: executes with
backend/Services/BacktestService.cs - LEAN Runner → LEAN Engine: runs on
- Backtest Orchestrator → Result Parser: parses output
backend/Services/BacktestService.cs - Result Parser → Backtest Results: builds
backend/Services/LeanResultParser.cs - Backtest Orchestrator → Backtest Results: returns
backend/Services/BacktestService.cs - Results View → Charts & Metrics: renders
frontend/src/pages/BacktestResults.jsx - Parameter Exploration → Strategy Comparison: continues to
- Backtest Controller → Backtest Client: returns job results