How atabeyaydi/bist-algotrading-stockanalysis works
BIST Analysis Pro presents bilingual market intelligence and simulated forecasts, alongside live BIST stock quotes and historical charts. Users enter through the single-page app, explore the analysis or stock list, and can open a symbol chart; stock data requests pass through tRPC to market procedures, which consult caches/database or Yahoo Finance. README capabilities such as PESTEL/SWOT narratives and forecast horizons are represented by documented client modules, but their internal wiring is not shown. Several page and data-module implementations were not sampled, so edges into them are omitted where callers are unverified.
Main entry points: App.tsx App routes · index.ts Express server · market.ts Market procedures · db.ts Database access
Components 28
Client experience
- Client bootstrap
client/src/main.tsx - App routes
client/src/App.tsx - tRPC client
client/src/lib/trpc.ts
Market intelligence
- Bilingual analysis
client/src/pages/Home.tsx - Stock explorer
client/src/pages/Stocks.tsx - Stock charts
client/src/pages/StockChart.tsx - Analysis content
client/src/lib/bistContent.ts - Forecast simulation
client/src/lib/bistForecast.ts - Market data helpers
client/src/lib/bistMarketData.ts - Commodity coverage
client/src/lib/bistCommodities.ts - Indicator studio
client/src/components/IndicatorStudio.tsx - AI chat
client/src/components/AIChatBox.tsx
API and identity
- Express server
server/_core/index.ts - API router
server/routers.ts - Market procedures
server/routers/market.ts - OAuth and sessions
server/_core/oauth.ts - Request context
server/_core/context.ts - System procedures
server/_core/systemRouter.ts - Owner notifications
server/_core/notification.ts
Persistence and providers
- BIST symbol catalog
shared/bist100.ts - MySQL market store
drizzle/schema.ts - Database access
server/db.ts - Yahoo Finance
server/services/yahooFinance.ts
Other components
- Market visitor
- Yahoo market feed
- OAuth provider
- MySQL database
- Storage proxy
Connections 27
- Market visitor → Client bootstrap: opens app
client/src/main.tsx - Client bootstrap → App routes: renders
client/src/main.tsx - App routes → Bilingual analysis: routes to
client/src/App.tsx - App routes → Stock explorer: routes to
client/src/App.tsx - App routes → Stock charts: routes to
client/src/App.tsx - Bilingual analysis → Analysis content: uses content
- Bilingual analysis → Forecast simulation: uses simulation
- Stock explorer → tRPC client: requests data
- Stock charts → tRPC client: requests data
- Indicator studio → Market data helpers: uses helpers
- AI chat → tRPC client: requests service
- tRPC client → Express server: calls API
- Express server → API router: mounts router
server/_core/index.ts - API router → Market procedures: registers
server/routers.ts - Express server → OAuth and sessions: registers OAuth
server/_core/index.ts - Express server → Request context: creates context
server/_core/index.ts - API router → System procedures: registers
server/routers.ts - System procedures → Owner notifications: calls
server/_core/systemRouter.ts - Market procedures → BIST symbol catalog: looks up symbols
server/routers/market.ts - Market procedures → Yahoo Finance: fetches quotes/history
server/routers/market.ts - Yahoo Finance → Yahoo market feed: fetches market data
- Market procedures → Database access: reads and writes
server/routers/market.ts - Database access → MySQL market store: uses schema
server/db.ts - MySQL market store → MySQL database: stores records
- OAuth and sessions → Database access: reads and upserts users
server/_core/oauth.ts - OAuth and sessions → OAuth provider: authenticates
- Database access → Storage proxy: uploads and retrieves