MCPcopy Create free account

hub / github.com/DemonDamon/FinnewsHunter / functions

Functions1,198 in github.com/DemonDamon/FinnewsHunter

↓ 1 callersMethodevaluate_factor
评估指定因子表达式
backend/app/agents/quantitative_agent.py:389
↓ 1 callersMethodevaluator
(self)
backend/tests/test_smoke_alpha_mining.py:216
↓ 1 callersFunctionevent_generator
()
backend/app/api/v1/alpha_mining.py:292
↓ 1 callersMethodexecute
同步执行方法(AgenticX Tool 协议要求) Args: **kwargs: 参数字典 - text: 输入文本(必需) - operation: 操作
backend/app/tools/text_cleaner.py:164
↓ 1 callersFunctionextractCode
(fullCode: string)
frontend/src/pages/StockAnalysisPage.tsx:64
↓ 1 callersMethodextractData
(self,dbName,colName,tag_list)
legacy_v1/Crawler/crawler_tushare.py:18
↓ 1 callersMethodextractStockCodeFromRealtimeNews
Extract stocks mentioined by real-time crawled news(articles/documents), and return the list of corresponding codes. # Arguments: docume
legacy_v1/Text_Analysis/text_mining.py:107
↓ 1 callersFunctionextract_chinese_ratio
计算中文字符比例
backend/app/api/v1/debug.py:31
↓ 1 callersFunctionextract_content_from_html
从 HTML 中提取内容 返回: (title, content, debug_info)
backend/app/api/v1/debug.py:78
↓ 1 callersMethodextract_data
[E]xtract Data: 执行实际的数据获取 可以是: - HTTP 请求 - 网页爬虫 - SDK 调用 - 数据库查询 Args: query: t
backend/app/financial/providers/base.py:97
↓ 1 callersMethodextract_data
(self, tag_list)
legacy_v1/src/Gon/spyder.py:6
↓ 1 callersMethodextract_heuristic
启发式内容提取(参考 BasicWebCrawler) 找到包含最多段落文本的元素
backend/app/tools/crawler_enhanced.py:292
↓ 1 callersMethodextract_keywords
提取关键词 Args: text: 文本 top_k: 返回的关键词数量 Returns: 关键词列表
backend/app/tools/text_cleaner.py:124
↓ 1 callersMethodextract_with_readability
使用 readabilipy 提取(参考 deer-flow)
backend/app/tools/crawler_enhanced.py:228
↓ 1 callersMethodextract_with_selectors
使用 CSS 选择器提取
backend/app/tools/crawler_enhanced.py:251
↓ 1 callersFunctionfetch_all_stocks
从 akshare 获取全部 A 股信息
backend/app/scripts/init_stocks.py:113
↓ 1 callersFunctionformatDate
(date: string | Date)
frontend/src/lib/utils.ts:8
↓ 1 callersFunctionformatTime
(date: Date, t: any)
frontend/src/components/DebateHistorySidebar.tsx:65
↓ 1 callersMethodgenTrainingSet
Generate training data set. # Arguments: X: Feature set. Y: Label set.
legacy_v1/Text_Analysis/text_mining.py:481
↓ 1 callersFunctiongenerate_debate_stream
生成辩论的 SSE 流 事件类型: - phase: 阶段变化 - agent: 智能体发言 - progress: 进度更新 - result: 最终结果 - error: 错误信息
backend/app/api/v1/agents.py:477
↓ 1 callersFunctiongenerate_followup_stream
生成追问回复的 SSE 流
backend/app/api/v1/agents.py:935
↓ 1 callersFunctiongenerate_plan_stream
()
backend/app/api/v1/agents.py:1053
↓ 1 callersMethodgenerate_search_keywords
基于股票信息生成分层关键词 返回两类关键词: - core_keywords: 核心关键词(公司名、代码等,必须包含) - extension_keywords: 扩展关键词(行业、业务、人名等,用于组合)
backend/app/knowledge/knowledge_extractor.py:490
↓ 1 callersFunctiongenerate_search_results
()
backend/app/api/v1/agents.py:1117
↓ 1 callersFunctiongetActiveIndicator
()
frontend/src/components/DebateChatRoom.tsx:356
↓ 1 callersFunctiongetAdjustOptions
(t: any)
frontend/src/pages/StockAnalysisPage.tsx:85
↓ 1 callersFunctiongetAnalyzeButtonStyle
(sentiment: number | null)
frontend/src/pages/NewsListPage.tsx:610
↓ 1 callersMethodgetCalendar
(self,begin_date)
legacy_v1/Crawler/crawler_tushare.py:106
↓ 1 callersFunctiongetCardStyle
(sentiment: number | null)
frontend/src/pages/NewsListPage.tsx:588
↓ 1 callersFunctiongetContentLines
(stockCount: number, isExpanded: boolean)
frontend/src/pages/NewsListPage.tsx:470
↓ 1 callersMethodgetEveryDay
Get date list from 'begin_date' to 'end_date' on the calendar.
legacy_v1/Crawler/crawler_jrj.py:47
↓ 1 callersFunctiongetFactorRating
(metrics: FactorMetrics, t: any)
frontend/src/components/alpha-mining/MetricsDashboard.tsx:440
↓ 1 callersFunctiongetModeInfo
(mode: string, t: any)
frontend/src/components/DebateHistorySidebar.tsx:31
↓ 1 callersFunctiongetNewsCardStyle
(sentiment: number | null)
frontend/src/pages/StockAnalysisPage.tsx:315
↓ 1 callersFunctiongetOperators
(t: any)
frontend/src/components/alpha-mining/OperatorGrid.tsx:67
↓ 1 callersFunctiongetPeriodOptions
(t: any)
frontend/src/pages/StockAnalysisPage.tsx:74
↓ 1 callersFunctiongetSentimentBadge
(score: number | null)
frontend/src/components/NewsDetailDrawer.tsx:163
↓ 1 callersFunctiongetSentimentBadge
(score: number | null)
frontend/src/pages/NewsListPage.tsx:483
↓ 1 callersFunctiongetSentimentLabel
(score: number | null)
frontend/src/pages/StockAnalysisPage.tsx:1072
↓ 1 callersFunctiongetSessionPreview
(session: DebateSession, t: any)
frontend/src/components/DebateHistorySidebar.tsx:84
↓ 1 callersFunctiongetSortinoColor
(sortino: number)
frontend/src/pages/AlphaMiningPage.tsx:434
↓ 1 callersFunctiongetStatusBadge
(status: string)
frontend/src/pages/TaskManagerPage.tsx:17
↓ 1 callersMethodgetStockBasicFromTushare
(self,dbName,colName)
legacy_v1/Crawler/crawler_tushare.py:27
↓ 1 callersMethodgetStockDayHistory
(self,dbName,stockCode)
legacy_v1/Crawler/crawler_tushare.py:85
↓ 1 callersFunctiongetTrendIcon
(trend: string)
frontend/src/pages/StockAnalysisPage.tsx:1054
↓ 1 callersFunctiongetWorkflowDescription
(workflowName: string, defaultDesc: string)
frontend/src/pages/AgentMonitorPage.tsx:131
↓ 1 callersMethodget_analyses_by_news_id
获取指定新闻的所有分析结果(按时间倒序,最新的在前) Args: news_id: 新闻ID db: 数据库会话 Returns: 分
backend/app/services/analysis_service.py:219
↓ 1 callersMethodget_analysis_by_id
获取分析结果 Args: analysis_id: 分析ID db: 数据库会话 Returns: 分析结果或None
backend/app/services/analysis_service.py:190
↓ 1 callersMethodget_best_factors
获取最优因子
backend/app/agents/quantitative_agent.py:444
↓ 1 callersMethodget_cache_metadata
获取缓存元数据(时间戳)
backend/app/core/redis_client.py:124
↓ 1 callersFunctionget_crawler_tool
爬虫工厂函数 Args: source: 新闻源名称 Returns: 对应的爬虫实例
backend/app/tasks/crawl_tasks.py:56
↓ 1 callersFunctionget_db
FastAPI 依赖注入:获取数据库会话 Usage: @app.get("/items") async def get_items(db: AsyncSession = Depends(get_db)): ...
backend/app/core/database.py:14
↓ 1 callersFunctionget_default_mode
获取默认模式
backend/app/config/__init__.py:151
↓ 1 callersFunctionget_fallback_stocks
备用股票列表(如果 akshare 失败时使用)
backend/app/scripts/init_stocks.py:87
↓ 1 callersMethodget_feature_names
获取特征名称列表
backend/app/alpha_mining/features/market.py:261
↓ 1 callersMethodget_historical_news
(self, start_date=None, end_date=None, freq="day")
legacy_v1/src/Gon/stockinfospyder.py:54
↓ 1 callersFunctionget_mode_config
获取指定模式的配置
backend/app/config/__init__.py:130
↓ 1 callersMethodget_operator_func
获取操作符的函数 Args: token: 操作符 token ID Returns: 操作符函数 Raises:
backend/app/alpha_mining/dsl/vocab.py:142
↓ 1 callersFunctionget_prompts
获取多语言提示词
backend/app/api/v1/agents.py:34
↓ 1 callersMethodget_provider
获取指定 Provider Args: name: Provider 名称 Returns: Provider 实例,如果不存在返回 None
backend/app/financial/registry.py:117
↓ 1 callersMethodget_python_process
(prop="python.exe", param=None)
legacy_v1/src/Gon/kill_realtime_spyder_tasks.py:34
↓ 1 callersMethodget_search_keywords
获取用于检索的关键词集合 Args: stock_code: 股票代码 Returns: 检索关键词集合
backend/app/knowledge/graph_service.py:425
↓ 1 callersMethodget_stats
获取集合统计信息(兼容性接口) 注意:如果 num_entities 为 0,会通过实际查询来获取真实数量 (因为 flush 失败时 num_entities 可能不准确)
backend/app/storage/vector_storage.py:172
↓ 1 callersMethodget_stock_code_info
(self)
legacy_v1/src/Gon/stockinfospyder.py:43
↓ 1 callersMethodgetchnSTW
Load the stop words txt file.
legacy_v1/Text_Analysis/text_processing.py:37
↓ 1 callersFunctionhandleAnalyze
(newsId: number)
frontend/src/pages/NewsListPage.tsx:431
↓ 1 callersFunctionhandleCopy
(text: string, analysisId: number)
frontend/src/components/NewsDetailDrawer.tsx:77
↓ 1 callersFunctioninit_database
初始化数据库 创建所有表结构
backend/app/core/database.py:37
↓ 1 callersFunctioninit_db
初始化数据库表 在首次运行或重置数据库时调用
backend/app/models/database.py:83
↓ 1 callersFunctioninit_knowledge_graph
初始化知识图谱
backend/init_knowledge_graph.py:18
↓ 1 callersFunctioninit_stocks_to_db
初始化股票数据到数据库
backend/app/scripts/init_stocks.py:205
↓ 1 callersMethodinterrupt
打断辩论
backend/app/agents/orchestrator.py:129
↓ 1 callersFunctionis_noise_text
判断是否为噪音文本
backend/app/api/v1/debug.py:48
↓ 1 callersMethodkilltask
(pid)
legacy_v1/src/Gon/kill_realtime_spyder_tasks.py:30
↓ 1 callersMethodlisten_redis_queue
(self)
legacy_v1/src/Killua/buildstocknewsdb.py:78
↓ 1 callersFunctionmain
()
backend/app/scripts/init_stocks.py:280
↓ 1 callersFunctionmain
()
backend/tests/check_milvus_data.py:15
↓ 1 callersFunctionmain
()
backend/tests/check_news_embedding_status.py:17
↓ 1 callersFunctionmain_async
()
backend/tests/manual_vectorize.py:181
↓ 1 callersMethodprint_pid_info
(process)
legacy_v1/src/Gon/kill_realtime_spyder_tasks.py:46
↓ 1 callersMethodquick_analyze
快速分析
backend/app/agents/data_collector.py:275
↓ 1 callersMethodrank_factors
对因子按指定指标排名 Args: factors: 因子列表 returns: 收益率 metric: 排名指标 Returns:
backend/app/alpha_mining/backtest/evaluator.py:293
↓ 1 callersFunctionreset_database
清空所有数据
backend/reset_database.py:16
↓ 1 callersMethodrun_debate
执行完整的辩论流程 Args: stock_code: 股票代码 stock_name: 股票名称 news_list: 相关新闻列表 context:
backend/app/agents/debate_agents.py:528
↓ 1 callersFunctionsaveConfig
(newConfig: ModelConfig)
frontend/src/components/ModelSelector.tsx:125
↓ 1 callersMethodsearch_on_bing
在 Bing 上搜索并获取结果 Args: query: 搜索关键词 num_results: 获取的结果数量 Returns: 搜索
backend/app/tools/interactive_crawler.py:90
↓ 1 callersMethodsearch_stock_news
搜索股票新闻(多搜索引擎) Args: stock_name: 股票名称 stock_code: 股票代码 days: 时间范围 engines: 搜索
backend/app/tools/search_engine_crawler.py:233
↓ 1 callersMethodsearch_stock_news
搜索股票相关新闻 Args: stock_name: 股票名称(如"贵州茅台") stock_code: 股票代码(可选,如"600519") days: 搜索时间范围(天),
backend/app/tools/bochaai_search.py:156
↓ 1 callersMethodsearch_with_engine
使用搜索引擎搜索新闻 Args: query: 搜索关键词 engine: 搜索引擎 (bing/baidu) days: 时间范围(天) max_re
backend/app/tools/search_engine_crawler.py:73
↓ 1 callersFunctionserializeSession
(session: DebateSession)
frontend/src/store/useDebateStore.ts:94
↓ 1 callersMethodset
设置缓存
backend/app/tools/crawler_enhanced.py:558
↓ 1 callersMethodset_json
存储 JSON 数据
backend/app/core/redis_client.py:59
↓ 1 callersMethodset_with_metadata
存储数据并记录时间戳
backend/app/core/redis_client.py:139
↓ 1 callersMethodsmart_data_supplement
智能数据补充 分析辩论历史和现有上下文,主动识别缺失的关键数据并补充 Args: stock_code: 股票代码 stock_name: 股票名称
backend/app/agents/search_analyst.py:476
↓ 1 callersFunctionstep_callback
每步训练回调,将指标放入队列
backend/app/api/v1/alpha_mining.py:321
↓ 1 callersMethodstop_business
停止业务线
backend/app/knowledge/graph_service.py:175
↓ 1 callersMethodto_dict
转换为字典
backend/app/tools/crawler_base.py:35
↓ 1 callersMethodto_legacy_dict
转换为旧版 StockDataService 格式 (兼容现有代码) Returns: 与旧版 get_kline_data 返回格式一致的字典
backend/app/financial/models/stock.py:99
↓ 1 callersMethodto_legacy_dict
转换为旧版 NewsItem 格式 (兼容现有代码) Returns: 与旧版 NewsItem.to_dict() 格式一致的字典
backend/app/financial/models/news.py:159
↓ 1 callersMethodto_markdown
转换为 Markdown 格式
backend/app/tools/crawler_enhanced.py:143
← previousnext →501–600 of 1,198, ranked by callers