MCPcopy Create free account

hub / github.com/DemonDamon/FinnewsHunter / functions

Functions1,198 in github.com/DemonDamon/FinnewsHunter

↓ 4 callersMethodfindPagesOfSpecificDate
Search the number of web pages of specific date. # Arguments: firstUrl: The first web page of specific date. date
legacy_v1/Crawler/crawler_jrj.py:131
↓ 4 callersMethodgenDictionary
Generate dictionary and bow-vector of all tokenzied news(articles). # Arguments: documents: List of news(articles).
legacy_v1/Text_Analysis/text_processing.py:75
↓ 4 callersMethodgenerate_id
根据 URL 生成唯一 ID
backend/app/financial/models/news.py:155
↓ 4 callersMethodgetUrlInfo
Analyze website and extract useful information.
legacy_v1/Crawler/crawler_nbd.py:58
↓ 4 callersMethodget_financial_indicators
获取股票财务指标(用于辩论分析) 包括:PE、PB、ROE、净利润增长率等 Args: stock_code: 股票代码 Returns:
backend/app/services/stock_data_service.py:662
↓ 4 callersMethodget_fund_flow
获取个股资金流向(用于辩论分析) 包括:主力资金净流入、散户资金流向等 Args: stock_code: 股票代码 days: 获取最近几天的数据
backend/app/services/stock_data_service.py:768
↓ 4 callersMethodget_operator_arity
获取操作符的参数数量 Args: token: 操作符 token ID Returns: 参数数量(1, 2 或 3)
backend/app/alpha_mining/dsl/vocab.py:123
↓ 4 callersFunctionhandleRuleChange
(key: keyof ModeRules, value: number | boolean)
frontend/src/components/DebateConfig.tsx:111
↓ 4 callersMethodinteractive_search
使用多个搜索引擎进行搜索 Args: query: 搜索关键词 engines: 搜索引擎列表 ['baidu_news', 'baidu', 'sogou', '360', 'bing']
backend/app/tools/interactive_crawler.py:612
↓ 4 callersMethodis_available
检查搜索功能是否可用
backend/app/tools/bochaai_search.py:51
↓ 4 callersMethodjieba_tokenize
Cut the documents into a sequence of independent words. # Arguments: documents: List of news(articles).
legacy_v1/Text_Analysis/text_processing.py:43
↓ 4 callersFunctionnormalizeMetric
(value: number, min: number, max: number)
frontend/src/components/alpha-mining/MetricsDashboard.tsx:434
↓ 4 callersMethodto_dict
转换为字典
backend/app/models/news.py:59
↓ 4 callersMethodtrain_step
单步训练 Args: features: 特征张量 [batch, num_features, time_steps] returns: 收益率张量 [batch, time_steps]
backend/app/alpha_mining/model/trainer.py:106
↓ 4 callersFunctionts_mean
滑动平均 Args: x: [batch, time_steps] 输入张量 window: 窗口大小 Returns: 滑动平均后的张量
backend/app/alpha_mining/dsl/ops.py:57
↓ 4 callersFunctionts_std
滑动标准差 Args: x: [batch, time_steps] 输入张量 window: 窗口大小 Returns: 滑动标准差后的张量
backend/app/alpha_mining/dsl/ops.py:83
↓ 3 callersMethodGenPagesLst
Generate page number list using Range parameter.
legacy_v1/Crawler/crawler_nbd.py:95
↓ 3 callersMethodGenPagesLst
Generate page number list using Range parameter.
legacy_v1/Crawler/crawler_sina.py:131
↓ 3 callersMethod__init__
(self, llm_provider=None)
backend/app/agents/debate_agents.py:518
↓ 3 callersMethod_evaluate_quality
评估内容质量 返回 0-1 的分数
backend/app/tools/crawler_enhanced.py:609
↓ 3 callersMethod_generate_mock_kline
生成模拟K线数据(当 akshare 不可用时使用)
backend/app/services/stock_data_service.py:605
↓ 3 callersMethod_get_mock_financial_indicators
返回模拟财务指标
backend/app/services/stock_data_service.py:752
↓ 3 callersMethod_get_mock_fund_flow
返回模拟资金流向数据
backend/app/services/stock_data_service.py:854
↓ 3 callersMethod_get_mock_stock_list
返回模拟股票列表
backend/app/services/stock_data_service.py:553
↓ 3 callersMethod_prepare_features
准备特征数据
backend/app/alpha_mining/tools/alpha_mining_tool.py:367
↓ 3 callersMethodaexecute
异步执行价格获取 Args: symbol: 股票代码 interval: K线周期 limit: 返回条数 adjust: 复权类型 prov
backend/app/financial/tools.py:162
↓ 3 callersMethodanalyze
生成看多分析报告
backend/app/agents/debate_agents.py:53
↓ 3 callersMethodanalyze
执行量化分析 Args: stock_code: 股票代码 stock_name: 股票名称 market_data: 行情数据(可选) sentime
backend/app/agents/quantitative_agent.py:106
↓ 3 callersMethodbuild_company_graph
构建完整的公司知识图谱 Args: graph: 公司知识图谱数据 Returns: 是否成功
backend/app/knowledge/graph_service.py:279
↓ 3 callersMethodconnect_database
(self, database_name)
legacy_v1/src/Kite/database.py:12
↓ 3 callersMethodcrawl_page
爬取单个页面内容 Args: url: 页面 URL Returns: {"url": "...", "title": "...", "content": "
backend/app/tools/interactive_crawler.py:711
↓ 3 callersMethodcreate_bag_of_word_representation
(self, raw_documents_list,
legacy_v1/src/Leorio/topicmodelling.py:83
↓ 3 callersMethodcut_words
(self, text)
legacy_v1/src/Leorio/tokenization.py:48
↓ 3 callersMethodexecute
同步执行工具
backend/app/alpha_mining/tools/alpha_mining_tool.py:179
↓ 3 callersMethodextract
智能提取:依次尝试多种方法 1. readabilipy(最智能) 2. CSS 选择器(网站特定) 3. 启发式算法(兜底)
backend/app/tools/crawler_enhanced.py:348
↓ 3 callersMethodextractData
Extract column data with tag in 'tag_list' to the list.
legacy_v1/Crawler/crawler_nbd.py:251
↓ 3 callersMethodextract_from_akshare
从 akshare 数据提取基础信息 Args: stock_code: 股票代码 stock_name: 股票名称 stock_info: akshare 返回的股票信息
backend/app/knowledge/knowledge_extractor.py:50
↓ 3 callersMethodextract_from_news
从新闻中提取业务变化和概念 Args: stock_code: 股票代码 stock_name: 股票名称 news_list: 新闻列表
backend/app/knowledge/knowledge_extractor.py:206
↓ 3 callersMethodgenerate_with_training
生成因子表达式(训练模式,保留梯度) Args: batch_size: 生成数量 max_len: 最大长度 device: 设备
backend/app/alpha_mining/model/alpha_generator.py:203
↓ 3 callersFunctiongetAgentInfo
(agentName: string, defaultRole: string, defaultDesc: string)
frontend/src/pages/AgentMonitorPage.tsx:116
↓ 3 callersFunctiongetSentimentColor
(score: number | null)
frontend/src/pages/StockAnalysisPage.tsx:1065
↓ 3 callersMethodget_debate_context
获取用于辩论的综合上下文数据 整合财务指标、资金流向、实时行情等信息 Args: stock_code: 股票代码 Returns:
backend/app/services/stock_data_service.py:867
↓ 3 callersMethodget_kline_data
获取K线数据(支持日线和分钟级数据) Args: stock_code: 股票代码 period: 周期 (daily, 1m, 5m, 15m, 30m, 60m) limi
backend/app/services/stock_data_service.py:208
↓ 3 callersFunctionget_neo4j_client
获取 Neo4j 客户端单例
backend/app/core/neo4j_client.py:136
↓ 3 callersFunctionget_op_by_name
根据名称获取操作符函数和参数数量 Args: name: 操作符名称 Returns: (function, arity) 元组 Raises: KeyError: 如果操
backend/app/alpha_mining/dsl/ops.py:194
↓ 3 callersFunctionget_op_names
获取所有操作符名称
backend/app/alpha_mining/dsl/ops.py:189
↓ 3 callersMethodget_providers_for_type
获取支持指定数据类型的所有 Provider Args: data_type: 数据类型 Returns: 支持该类型的 Provider 名称列表 (按优先级排序)
backend/app/financial/registry.py:193
↓ 3 callersMethodget_realtime_news
(self, url)
legacy_v1/src/Gon/spyder.py:24
↓ 3 callersFunctionget_vector_storage
获取向量存储实例(单例模式)
backend/app/storage/vector_storage.py:219
↓ 3 callersMethodjudgeGoodOrBadNews
Label the historical news(articles/documents) with 'Bad', 'Good' or 'Neutral'. # Arguments: stockCode: Code of specific stock. date: Date
legacy_v1/Text_Analysis/text_mining.py:125
↓ 3 callersMethodmake_decision
综合双方观点,做出投资决策 Args: stock_code: 股票代码 stock_name: 股票名称 bull_analysis: 看多分析 be
backend/app/agents/debate_agents.py:378
↓ 3 callersMethodprocess_debate_speech
处理辩论发言中的搜索请求 Args: speech_text: 辩论发言文本 stock_code: 股票代码 stock_name: 股票名称 age
backend/app/agents/search_analyst.py:403
↓ 3 callersMethodrun
(self)
legacy_v1/src/Killua/deduplication.py:20
↓ 3 callersMethodsession
获取会话(上下文管理器)
backend/app/core/neo4j_client.py:65
↓ 3 callersFunctionts_delta
时序差分:计算 x[t] - x[t-d] Args: x: [batch, time_steps] 输入张量 d: 差分步数 Returns: 差分后的张量
backend/app/alpha_mining/dsl/ops.py:43
↓ 2 callersMethodCallTransformationModel
Invoke specific transformation models of Gensim module. # Arguments: Dict: Dictionary made by all tokenized news(articles/docu
legacy_v1/Text_Analysis/text_processing.py:96
↓ 2 callersMethodConnDB
Connect mongodb.
legacy_v1/Crawler/crawler_stcn.py:220
↓ 2 callersMethodConnDB
Connect mongodb.
legacy_v1/Crawler/crawler_cnstock.py:45
↓ 2 callersMethodConnDB
Connect mongodb.
legacy_v1/Crawler/crawler_sina.py:271
↓ 2 callersMethodConnDB
Connect mongodb.
legacy_v1/Crawler/crawler_jrj.py:291
↓ 2 callersMethodConvertToCSRMatrix
Convert LDA(LSI) model vector to CSR sparse matrix, that could be accepted by Scipy and Numpy. # Arguments: modelVec: Transformation model
legacy_v1/Text_Analysis/text_mining.py:461
↓ 2 callersMethodGenDatesLst
Divide date list into parts using Range parameter.
legacy_v1/Crawler/crawler_jrj.py:116
↓ 2 callersMethodGenPagesLst
Generate page number list using Range parameter.
legacy_v1/Crawler/crawler_stcn.py:90
↓ 2 callersMethodGenPagesLst
Generate page number list using Range parameter.
legacy_v1/Crawler/crawler_cnstock.py:95
↓ 2 callersMethod_add_product
添加产品节点(内部方法)
backend/app/knowledge/graph_service.py:346
↓ 2 callersMethod_align_time_steps
对齐时间步长度
backend/app/alpha_mining/features/sentiment.py:163
↓ 2 callersMethod_build_debate_prompt
构建辩论提示词
backend/app/agents/orchestrator.py:736
↓ 2 callersMethod_calc_pct_change
计算百分比变化
backend/app/alpha_mining/features/market.py:224
↓ 2 callersMethod_calc_returns
计算收益率
backend/app/alpha_mining/features/market.py:194
↓ 2 callersMethod_calc_sharpe
计算 Sharpe Ratio
backend/app/alpha_mining/backtest/evaluator.py:186
↓ 2 callersMethod_calc_volatility
计算滚动波动率
backend/app/alpha_mining/features/market.py:208
↓ 2 callersMethod_call_add_async
辅助方法:在同步上下文中调用异步 add() 方法
backend/app/storage/vector_storage.py:46
↓ 2 callersMethod_extract_content
提取新闻正文
backend/app/tools/eeo_crawler.py:396
↓ 2 callersMethod_extract_content
提取新闻正文 Args: soup: BeautifulSoup对象 Returns: 新闻正文
backend/app/tools/tencent_crawler.py:379
↓ 2 callersMethod_fetch_page_sync
同步获取页面
backend/app/financial/providers/sina/fetchers/news.py:185
↓ 2 callersMethod_generate_mock_sentiment
生成模拟情感数据
backend/app/alpha_mining/features/sentiment.py:258
↓ 2 callersMethod_get_cache_key
生成缓存键
backend/app/services/embedding_service.py:84
↓ 2 callersMethod_init_executor
初始化 AgentExecutor(延迟初始化)
backend/app/agents/news_analyst.py:67
↓ 2 callersMethod_key
(self, url: str)
backend/app/tools/crawler_enhanced.py:535
↓ 2 callersMethod_label_news
:param date: 类型datetime.datetime,表示新闻发布的日期,只包括年月日,不包括具体时刻,如datetime.datetime(2015, 1, 5, 0, 0) :param symbol: 类型str,表示股票标的,如sh600000
legacy_v1/src/Killua/buildstocknewsdb.py:138
↓ 2 callersMethod_mine_factors
执行因子挖掘
backend/app/agents/quantitative_agent.py:170
↓ 2 callersMethod_normalize
标准化特征
backend/app/alpha_mining/features/sentiment.py:194
↓ 2 callersMethod_normalize_code
标准化股票代码,返回纯数字代码 支持格式: SH600519, sh600519, 600519
backend/app/services/stock_data_service.py:152
↓ 2 callersMethod_parse_date
解析日期字符串
backend/app/tools/sina_crawler.py:208
↓ 2 callersMethod_parse_date
解析日期字符串
backend/app/financial/providers/sina/fetchers/news.py:349
↓ 2 callersMethod_parse_time_string
解析时间字符串
backend/app/tools/eeo_crawler.py:455
↓ 2 callersMethod_parse_time_string
解析时间字符串(如"1小时前"、"昨天"、"2024-12-06 10:00") Args: time_str: 时间字符串 Returns: datetim
backend/app/tools/tencent_crawler.py:445
↓ 2 callersMethod_process_speech_for_search
处理发言中的搜索请求 Returns: (updated_context, supplement_data)
backend/app/agents/orchestrator.py:618
↓ 2 callersMethod_robust_normalize
稳健标准化(使用中位数和 MAD) Args: features: [batch, num_features, time_steps] 或 [num_features, time_steps]
backend/app/alpha_mining/features/market.py:237
↓ 2 callersMethodadd_business
添加业务线
backend/app/knowledge/graph_service.py:144
↓ 2 callersMethodadd_concepts
添加概念/主题
backend/app/knowledge/graph_service.py:243
↓ 2 callersFunctionadd_path
(path)
legacy_v1/src/Gon/__init__.py:5
↓ 2 callersMethodaembed_text
异步将文本转换为向量(推荐在异步上下文中使用) Args: text: 文本 Returns: 向量(List[float])
backend/app/services/embedding_service.py:211
↓ 2 callersMethodcrawl
爬取新浪财经新闻 Args: start_page: 起始页码 end_page: 结束页码 Returns: 新闻列表
backend/app/tools/sina_crawler.py:33
↓ 2 callersMethodcrawl
爬取新闻 Args: start_page: 起始页 end_page: 结束页 Returns: 新闻列表
backend/app/tools/crawler_base.py:351
↓ 2 callersFunctioncreate_data_collector
创建数据专员实例
backend/app/agents/data_collector_v2.py:791
↓ 2 callersMethoddelete_company_graph
删除公司及其所有关联节点
backend/app/knowledge/graph_service.py:548
↓ 2 callersMethodexecute_search_plan
执行搜索计划 Args: plan: 已确认的搜索计划 Returns: 搜索结果汇总
backend/app/agents/data_collector_v2.py:358
↓ 2 callersMethodextractData
Extract column data with tag in 'tag_list' to the list.
legacy_v1/Crawler/crawler_stcn.py:227
↓ 2 callersMethodextractData
Extract column data with tag in 'tag_list' to the list.
legacy_v1/Crawler/crawler_cnstock.py:225
← previousnext →101–200 of 1,198, ranked by callers