initializeMarketServices() | Startup: ensure Zerodha streaming, start order services for open exchanges |
initializeMarketDataIfNeeded() | Auto-login Zerodha if streaming is down |
startOrderServicesForSymbol(setting) | Start recurring buy + schedule order for one index |
startOrderServicesForExchanges(exchanges) | Start services for all active settings on given exchanges |
stopOrderServicesForExchanges(exchanges) | Stop intervals and disable recurring status |
resetSymbolsForExchanges(exchanges?) | Full reset for active symbols (optional exchange filter) |
resetAll() | Reset all active index settings |
handleEquitySessionClose() | Stop NSE, BSE, NFO, BFO + sync instruments |
handleCurrencySessionClose() | Stop CDS, BCD + sync instruments |
handleMcxSessionClose() | Stop MCX + sync instruments |