How ttsudarshan/market_predictor works
Paperdesk combines a paper-trading application with a creator-call research and scoring product. Users authenticate, inspect market data, place simulated orders, and review portfolios; separately, they can track YouTube creators whose calls are extracted from transcripts, verified, scored against SPY, and surfaced in rankings and digests. The graph preserves these distinct workflows and the background insights pipeline. Edges are limited to relationships visible in excerpts or explicitly documented in the README; unsampled wiring is not inferred.
Main entry points: AppDbContext.cs SQLite application store · api.service.ts HTTP API client · Controllers.cs API controllers · PipelineSteps.cs Video processing stages
Components 27
Angular application
- Trading and insights pages
frontend/src/app/pages - Authentication session
frontend/src/app/core/auth.service.ts - HTTP API client
frontend/src/app/core/api.service.ts - Live updates
frontend/src/app/core/live.service.ts
Paper trading
- API controllers
backend/PaperTrading.Api/Controllers/Controllers.cs - Order execution
backend/PaperTrading.Api/Services/OrderService.cs - Portfolio analytics
backend/PaperTrading.Api/Services/PortfolioService.cs - Account management
backend/PaperTrading.Api/Services/AccountService.cs - SQLite application store
backend/PaperTrading.Api/Data/AppDbContext.cs
Market data
- Market endpoints
backend/PaperTrading.Api/Controllers/Controllers.cs - Market and order loop
backend/PaperTrading.Api/Services/MarketLoopService.cs - Yahoo market feeds
backend/PaperTrading.Api/MarketData/YahooMarketDataProvider.cs - Simulated price feed
backend/PaperTrading.Api/MarketData/SimulatedMarketDataProvider.cs - SignalR market hub
backend/PaperTrading.Api/Hubs/MarketHub.cs
Creator insights
- Insights controllers
backend/PaperTrading.Api/Controllers/InsightsControllers.cs - Insights orchestrator
backend/PaperTrading.Api/Insights/InsightsPipelineService.cs - Video processing stages
backend/PaperTrading.Api/Insights/PipelineSteps.cs - YouTube discovery and transcripts
backend/PaperTrading.Api/Insights/YouTubeGateway.cs - Call extraction
backend/PaperTrading.Api/Insights/ClaimExtractor.cs - LLM provider client
backend/PaperTrading.Api/Insights/LlmClient.cs - Call scoring
backend/PaperTrading.Api/Insights/ScoringService.cs - Digest and sentiment
backend/PaperTrading.Api/Insights/DigestService.cs - Creator tracking
backend/PaperTrading.Api/Insights/ChannelService.cs
Other components
- Trader / researcher
- YouTube
- LLM service
- SPY benchmark prices
Connections 29
- Trader / researcher → Trading and insights pages: uses
- Trading and insights pages → HTTP API client: requests data
frontend/src/app/core/api.service.ts - Trading and insights pages → Authentication session: signs in
frontend/src/app/core/auth.service.ts - HTTP API client → API controllers: calls trading API
frontend/src/app/core/api.service.ts - HTTP API client → Insights controllers: calls insights API
frontend/src/app/core/api.service.ts - API controllers → Order execution: places orders
backend/PaperTrading.Api/Controllers/Controllers.cs - API controllers → Portfolio analytics: fetches portfolio
backend/PaperTrading.Api/Controllers/Controllers.cs - API controllers → Account management: manages accounts
backend/PaperTrading.Api/Controllers/Controllers.cs - Order execution → SQLite application store: reads and writes
backend/PaperTrading.Api/Services/OrderService.cs - Portfolio analytics → SQLite application store: reads portfolio
backend/PaperTrading.Api/Services/PortfolioService.cs - Account management → SQLite application store: persists accounts
backend/PaperTrading.Api/Services/AccountService.cs - Market endpoints → Yahoo market feeds: fetches quotes
- Market and order loop → Order execution: checks open orders
backend/PaperTrading.Api/Program.cs - Market and order loop → SignalR market hub: publishes updates
backend/PaperTrading.Api/Program.cs - HTTP API client → Live updates: separate live channel
- Insights orchestrator → Video processing stages: runs stages
backend/PaperTrading.Api/Insights/InsightsPipelineService.cs - Video processing stages → YouTube discovery and transcripts: discovers and fetches
backend/PaperTrading.Api/Insights/PipelineSteps.cs - Video processing stages → Call extraction: extracts calls
backend/PaperTrading.Api/Insights/PipelineSteps.cs - Call extraction → LLM provider client: asks for predictions
backend/PaperTrading.Api/Insights/ClaimExtractor.cs - Insights orchestrator → Call scoring: scores calls
backend/PaperTrading.Api/Insights/InsightsPipelineService.cs - Insights orchestrator → Digest and sentiment: writes daily brief
backend/PaperTrading.Api/Insights/InsightsPipelineService.cs - Insights controllers → Creator tracking: manages creators
backend/PaperTrading.Api/Controllers/InsightsControllers.cs - Video processing stages → SQLite application store: saves stage state
backend/PaperTrading.Api/Insights/PipelineSteps.cs - Call scoring → SQLite application store: persists scores
backend/PaperTrading.Api/Insights/ScoringService.cs - Digest and sentiment → SQLite application store: reads claims
backend/PaperTrading.Api/Insights/DigestService.cs - YouTube discovery and transcripts → YouTube: retrieves videos
README.md - LLM provider client → LLM service: analyzes transcripts
README.md - Call scoring → SPY benchmark prices: benchmarks returns
README.md - Simulated price feed → Market and order loop: supplies simulated prices