SYMBOL INDEX (250 symbols across 14 files) FILE: demo/mcp-client-demo.js function log (line 28) | function log(message, color = colors.reset) { function logSection (line 32) | function logSection(title) { function logSubSection (line 38) | function logSubSection(title) { function sleep (line 43) | async function sleep(ms) { function demo1_BasicQuery (line 50) | async function demo1_BasicQuery() { function demo2_SessionWithMemory (line 106) | async function demo2_SessionWithMemory() { function demo3_TechnicalAnalysis (line 173) | async function demo3_TechnicalAnalysis() { function demo4_InvestmentRecommendation (line 225) | async function demo4_InvestmentRecommendation() { function demo5_MultiUserSessions (line 279) | async function demo5_MultiUserSessions() { function demo6_ContextSummarization (line 357) | async function demo6_ContextSummarization() { function demo7_ToolsAndConfig (line 432) | async function demo7_ToolsAndConfig() { function runAllDemos (line 477) | async function runAllDemos() { FILE: demo/memory-example.js function log (line 21) | function log(message, color = colors.reset) { function sleep (line 25) | async function sleep(ms) { function runMemoryExample (line 29) | async function runMemoryExample() { FILE: docs/assets/main.js function G (line 3) | function G(t,e){ne.push({selector:e,constructor:t})} method constructor (line 3) | constructor(){this.alwaysVisibleMember=null;this.createComponents(docume... method createComponents (line 3) | createComponents(e){ne.forEach(r=>{e.querySelectorAll(r.selector).forEac... method filterChanged (line 3) | filterChanged(){this.ensureFocusedElementVisible()} method ensureActivePageVisible (line 3) | ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation ... method ensureFocusedElementVisible (line 3) | ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysV... method listenForCodeCopies (line 3) | listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(... function de (line 3) | function de(){let t=document.getElementById("tsd-search");if(!t)return;l... function Oe (line 3) | function Oe(t,e,r,n){r.addEventListener("input",ie(()=>{Re(t,e,r,n)},200... function _e (line 3) | function _e(t,e){t.index||window.searchData&&(e.classList.remove("loadin... function Re (line 3) | function Re(t,e,r,n){if(_e(n,t),!n.index||!n.data)return;e.textContent="... function ue (line 3) | function ue(t,e){let r=t.querySelector(".current");if(!r)r=t.querySelect... function Fe (line 3) | function Fe(t,e){let r=t.querySelector(".current");if(r||(r=t.querySelec... function le (line 3) | function le(t,e){if(e==="")return t;let r=t.toLocaleLowerCase(),n=e.toLo... function K (line 3) | function K(t){return t.replace(/[&<>"'"]/g,e=>Me[e])} method constructor (line 3) | constructor(e){this.el=e.el,this.app=e.app} method constructor (line 3) | constructor(r){super(r);this.className=this.el.dataset.toggle||"",this.e... method setActive (line 3) | setActive(r){if(this.active==r)return;this.active=r,document.documentEle... method onPointerUp (line 3) | onPointerUp(r){D||(this.setActive(!0),r.preventDefault())} method onDocumentPointerDown (line 3) | onDocumentPointerDown(r){if(this.active){if(r.target.closest(".col-sideb... method onDocumentPointerUp (line 3) | onDocumentPointerUp(r){if(!D&&this.active&&r.target.closest(".col-sideba... method getItem (line 3) | getItem(){return null} method setItem (line 3) | setItem(){} method constructor (line 3) | constructor(r){super(r);this.key=`filter-${this.el.name}`,this.value=thi... method fromLocalStorage (line 4) | fromLocalStorage(){let r=Q.getItem(this.key);return r?r==="true":this.el... method setLocalStorage (line 4) | setLocalStorage(r){Q.setItem(this.key,r.toString()),this.value=r,this.ha... method handleValueChange (line 4) | handleValueChange(){this.el.checked=this.value,document.documentElement.... method constructor (line 4) | constructor(r){super(r);this.summary=this.el.querySelector(".tsd-accordi... method update (line 4) | update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.... function ve (line 4) | function ve(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ye(e),t.addE... function ye (line 4) | function ye(t){document.documentElement.dataset.theme=t} FILE: src/cli/api.ts function showIndexOverview (line 13) | async function showIndexOverview(): Promise { function showIndexDetails (line 47) | async function showIndexDetails(argv: any): Promise { function showMarketStatus (line 74) | async function showMarketStatus(): Promise { function showEquityDetails (line 84) | async function showEquityDetails(argv: any): Promise { function showHistorical (line 159) | async function showHistorical(argv: any): Promise { FILE: src/cli/index.ts function startMCPServer (line 15) | function startMCPServer() { FILE: src/constants.ts constant API_RESPONSE_VALIDATION (line 1) | const API_RESPONSE_VALIDATION='API Response Validation' constant IS_TYPE_STRICT (line 2) | const IS_TYPE_STRICT=false FILE: src/index.ts type ApiList (line 55) | enum ApiList { class NseIndia (line 72) | class NseIndia { method getNseCookies (line 95) | private async getNseCookies() { method getChartingCookies (line 124) | private async getChartingCookies() { method getData (line 165) | async getData(url: string, domain: 'nse' | 'charting' = 'nse'): Promis... method getDataByEndpoint (line 240) | async getDataByEndpoint(apiEndpoint: string): Promise { method getEquityChartHistoricalData (line 255) | async getEquityChartHistoricalData( method getEquitySymbolInfo (line 295) | async getEquitySymbolInfo( method getAllStockSymbols (line 326) | async getAllStockSymbols(): Promise { method getEquityDetails (line 335) | getEquityDetails(symbol: string): Promise { method getEquityTradeInfo (line 343) | getEquityTradeInfo(symbol: string): Promise { method getEquityCorporateInfo (line 353) | getEquityCorporateInfo(symbol: string): Promise { method getEquityIntradayData (line 362) | async getEquityIntradayData(symbol: string): Promise { method getEquityHistoricalData (line 375) | async getEquityHistoricalData(symbol: string, range?: DateRange): Prom... method getEquitySeries (line 407) | async getEquitySeries(symbol: string): Promise { method getEquityStockIndices (line 423) | getEquityStockIndices(index: string): Promise { method getIndexIntradayData (line 431) | async getIndexIntradayData(index: string): Promise { method getIndexOptionChainContractInfo (line 446) | getIndexOptionChainContractInfo(indexSymbol: string): Promise { method getCommodityOptionChain (line 574) | getCommodityOptionChain(symbol: string): Promise { method getTradingHolidays (line 591) | getTradingHolidays(): Promise { method getClearingHolidays (line 599) | getClearingHolidays(): Promise { method getMarketStatus (line 607) | getMarketStatus(): Promise { method getMarketTurnover (line 615) | getMarketTurnover(): Promise { method getAllIndices (line 623) | getAllIndices(): Promise { method getIndexNames (line 631) | getIndexNames(): Promise { method getCirculars (line 639) | getCirculars(): Promise { method getLatestCirculars (line 647) | getLatestCirculars(): Promise { method getEquityMaster (line 655) | getEquityMaster(): Promise { method getPreOpenMarketData (line 663) | getPreOpenMarketData(): Promise { method getMergedDailyReportsCapital (line 671) | getMergedDailyReportsCapital(): Promise { method getMergedDailyReportsDerivatives (line 679) | getMergedDailyReportsDerivatives(): Promise { method getMergedDailyReportsDebt (line 687) | getMergedDailyReportsDebt(): Promise { method getTechnicalIndicators (line 698) | async getTechnicalIndicators( FILE: src/interface.ts type IntradayData (line 4) | interface IntradayData { type ChartingSymbolInfo (line 15) | interface ChartingSymbolInfo { type ChartingOHLCItem (line 28) | interface ChartingOHLCItem { type ChartingOHLCResponse (line 40) | interface ChartingOHLCResponse { type DateRange (line 48) | interface DateRange { type EquityInfo (line 56) | interface EquityInfo { type OptionChainContractInfo (line 85) | interface OptionChainContractInfo { type EquityOptionChainData (line 93) | interface EquityOptionChainData { type IndexOptionChainData (line 101) | interface IndexOptionChainData { type CommodityOptionChainData (line 109) | interface CommodityOptionChainData { type Records (line 116) | interface Records { type IndexRecords (line 126) | interface IndexRecords extends Records { type CommodityRecords (line 133) | interface CommodityRecords extends Records { type Filtered (line 140) | interface Filtered { type OptionsData (line 149) | interface OptionsData { type EquityOptionChainItem (line 157) | interface EquityOptionChainItem { type Datum (line 185) | interface Datum { type OptionsDetails (line 196) | interface OptionsDetails { type Underlying (line 225) | enum Underlying { type EquityMetadata (line 233) | interface EquityMetadata { type EquitySecurityInfo (line 250) | interface EquitySecurityInfo { type EquityPriceInfo (line 269) | interface EquityPriceInfo { type PreOpenDetails (line 302) | interface PreOpenDetails { type EquityPreOpenMarket (line 312) | interface EquityPreOpenMarket { type EquityDetails (line 332) | interface EquityDetails { type EquityTradeInfo (line 354) | interface EquityTradeInfo { type DirectoryDetails (line 397) | interface DirectoryDetails { type EquityCorporateInfo (line 413) | interface EquityCorporateInfo { type EquityHistoricalInfo (line 462) | interface EquityHistoricalInfo { type EquityHistoricalData (line 483) | interface EquityHistoricalData { type SeriesData (line 496) | interface SeriesData { type IndexEquityInfo (line 505) | interface IndexEquityInfo { type IndexDetails (line 538) | interface IndexDetails { type GlossaryData (line 582) | interface GlossaryData { type HolidayData (line 590) | interface HolidayData { type MarketStatusData (line 602) | interface MarketStatusData { type MarketTurnoverData (line 616) | interface MarketTurnoverData { type AllIndicesData (line 628) | interface AllIndicesData { type IndexNamesData (line 650) | interface IndexNamesData { type CircularsData (line 658) | interface CircularsData { type LatestCircularData (line 678) | interface LatestCircularData { type EquityMasterData (line 696) | interface EquityMasterData { type MarketDataPreOpenData (line 708) | interface MarketDataPreOpenData { type MergedDailyReportsData (line 754) | interface MergedDailyReportsData { type Glossary (line 765) | interface Glossary { type Holiday (line 783) | interface Holiday { type HolidaysBySegment (line 795) | interface HolidaysBySegment { type MarketState (line 802) | interface MarketState { type MarketCap (line 821) | interface MarketCap { type IndicativeNifty50 (line 834) | interface IndicativeNifty50 { type GiftNifty (line 851) | interface GiftNifty { type MarketStatus (line 868) | interface MarketStatus { type MarketTurnover (line 878) | interface MarketTurnover { type IndexName (line 885) | interface IndexName { type Circular (line 890) | interface Circular { type IndexCategories (line 897) | interface IndexCategories { type EquityMaster (line 904) | interface EquityMaster { type PreOpenMarketData (line 911) | interface PreOpenMarketData { type DailyReport (line 946) | interface DailyReport { type TechnicalIndicators (line 967) | interface TechnicalIndicators { FILE: src/mcp/client/mcp-client.ts type MCPClientRequest (line 6) | interface MCPClientRequest { type MCPClientResponse (line 20) | interface MCPClientResponse { type MCPClientConfig (line 44) | interface MCPClientConfig { class MCPClient (line 61) | class MCPClient { method constructor (line 70) | constructor(config: MCPClientConfig = {}) { method debugLog (line 98) | private debugLog(message: string, data?: any): void { method setDebugLogging (line 112) | setDebugLogging(enabled: boolean): void { method isDebugLoggingEnabled (line 119) | isDebugLoggingEnabled(): boolean { method convertToolsToOpenAIFunctions (line 126) | private convertToolsToOpenAIFunctions(): OpenAI.Chat.Completions.ChatC... method extractStockSymbols (line 137) | private extractStockSymbols(query: string): string[] { method getBaseSystemPrompt (line 147) | private getBaseSystemPrompt(): string { method processQuery (line 160) | async processQuery(request: MCPClientRequest): Promise): void { method getContextWindowConfig (line 814) | getContextWindowConfig(): any { method cleanupExpiredSessions (line 824) | cleanupExpiredSessions(): void { method getAvailableTools (line 838) | getAvailableTools(): any[] { method getOpenAIFunctions (line 845) | getOpenAIFunctions(): OpenAI.Chat.Completions.ChatCompletionCreatePara... method testConnection (line 852) | async testConnection(): Promise { method testConnectionWithMemory (line 868) | async testConnectionWithMemory(sessionId: string): Promise { method getConfig (line 890) | getConfig(): MCPClientConfig { method isMemoryEnabled (line 897) | isMemoryEnabled(): boolean { method isContextSummarizationEnabled (line 904) | isContextSummarizationEnabled(): boolean { method getLastSummarization (line 911) | getLastSummarization(sessionId: string): any { method getSummarizationHistory (line 919) | getSummarizationHistory(sessionId: string, limit?: number): any[] { method getSummarizationSummary (line 927) | getSummarizationSummary(sessionId: string): any { method getOpenAIMessages (line 935) | getOpenAIMessages(sessionId: string): any { function createMCPClient (line 955) | function createMCPClient(config: MCPClientConfig): MCPClient { FILE: src/mcp/context-summarizer.ts type ContextSummary (line 3) | interface ContextSummary { type ContextWindowConfig (line 13) | interface ContextWindowConfig { type TokenCountResult (line 21) | interface TokenCountResult { class ContextSummarizer (line 28) | class ContextSummarizer { method constructor (line 32) | constructor(openai: OpenAI, config: Partial = {}) { method estimateTokenCount (line 47) | private estimateTokenCount(text: string | null | undefined): number { method countTokens (line 59) | countTokens(messages: any[], systemPrompt: string): TokenCountResult { method needsSummarization (line 86) | needsSummarization(messages: any[], systemPrompt: string): boolean { method extractKeyInformation (line 101) | private extractKeyInformation(messages: any[]): { method createContextSummary (line 150) | async createContextSummary(messages: any[]): Promise { method optimizeContext (line 242) | async optimizeContext(messages: any[], systemPrompt: string, maxTokens... method createSummarizedContext (line 318) | private async createSummarizedContext( method getOptimalContext (line 389) | async getOptimalContext( method updateConfig (line 438) | updateConfig(newConfig: Partial): void { method getConfig (line 445) | getConfig(): ContextWindowConfig { FILE: src/mcp/mcp-tools.ts function handleMCPToolCall (line 451) | async function handleMCPToolCall( FILE: src/mcp/memory-manager.ts type ConversationMessage (line 5) | interface ConversationMessage { type UserSession (line 13) | interface UserSession { type UserPreferences (line 23) | interface UserPreferences { type SummarizationRecord (line 35) | interface SummarizationRecord { type ContextData (line 45) | interface ContextData { type MemoryConfig (line 60) | interface MemoryConfig { class MemoryManager (line 69) | class MemoryManager { method constructor (line 75) | constructor(config: Partial = {}) { method getOrCreateSession (line 106) | getOrCreateSession(sessionId: string, userId?: string): UserSession { method addMessage (line 147) | addMessage(sessionId: string, message: ConversationMessage): void { method updateRecentQueries (line 173) | private updateRecentQueries(sessionId: string, query: string): void { method updateToolUsage (line 189) | private updateToolUsage(sessionId: string, tools: string[]): void { method updateStockAccess (line 201) | updateStockAccess(sessionId: string, symbol: string): void { method updatePreferences (line 212) | updatePreferences(sessionId: string, preferences: Partial): void { method getContextWindowConfig (line 548) | getContextWindowConfig(): ContextWindowConfig { method getLastSummarization (line 555) | getLastSummarization(sessionId: string): SummarizationRecord | null { method getSummarizationHistory (line 563) | getSummarizationHistory(sessionId: string, limit?: number): Summarizat... method getSummarizationSummary (line 576) | getSummarizationSummary(sessionId: string): { FILE: src/mcp/server/mcp-server.ts class MCPServer (line 8) | class MCPServer { method constructor (line 14) | constructor() { method setupStdinHandling (line 18) | private setupStdinHandling() { method handleMessage (line 42) | private async handleMessage(message: string) { method handleToolCall (line 150) | private async handleToolCall(params: any) { method sendResponse (line 164) | private sendResponse(response: any) { FILE: src/root.resolver.ts type StringArrayFilter (line 6) | interface StringArrayFilter { type ObjectFilter (line 17) | interface ObjectFilter { function stringArrayFilter (line 21) | function stringArrayFilter(input: string[], filter: StringArrayFilter) { function objectFilter (line 52) | function objectFilter(input: any, filterBy: string, filter: ObjectFilter) {