MCPcopy Create free account

hub / github.com/DemonDamon/FinnewsHunter / functions

Functions1,198 in github.com/DemonDamon/FinnewsHunter

Method__init__
( self, config: Optional[AlphaMiningConfig] = None, sentiment_decay: float = 0.9,
backend/app/alpha_mining/features/sentiment.py:46
Method__init__
初始化虚拟机 Args: vocab: 词汇表实例,默认使用 DEFAULT_VOCAB
backend/app/alpha_mining/vm/factor_vm.py:38
Method__init__
(self)
backend/app/financial/tools.py:40
Method__init__
(self)
backend/app/financial/providers/base.py:74
Method__init__
(self)
backend/app/financial/providers/sina/fetchers/news.py:68
Method__init__
(self, llm_provider=None, organization_id: str = "finnews")
backend/app/agents/data_collector_v2.py:126
Method__init__
(self, llm_provider=None, organization_id: str = "finnews")
backend/app/agents/debate_agents.py:33
Method__init__
(self, llm_provider=None, organization_id: str = "finnews")
backend/app/agents/debate_agents.py:195
Method__init__
(self, llm_provider=None, organization_id: str = "finnews")
backend/app/agents/debate_agents.py:358
Method__init__
(self, llm_provider=None, organization_id: str = "finnews")
backend/app/agents/search_analyst.py:50
Method__init__
( self, event_type: str, agent_name: str, content: str, phase: DebateP
backend/app/agents/orchestrator.py:35
Method__init__
初始化辩论编排器 Args: mode: 辩论模式 (parallel, realtime_debate, quick_analysis) llm_provider: LLM 提供者
backend/app/agents/orchestrator.py:67
Method__init__
(self, llm_provider=None, organization_id: str = "finnews")
backend/app/agents/data_collector.py:22
Method__init__
( self, llm_provider=None, enable_alpha_mining: bool = True, model_path: Optio
backend/app/agents/quantitative_agent.py:39
Method__init__
初始化新闻分析师智能体 Args: llm_provider: LLM 提供者 tools: 工具列表 organization_id: 组织ID(用于多租户隔离),默认 "f
backend/app/agents/news_analyst.py:21
Method__init__
(self,**kwarg)
legacy_v1/Text_Analysis/text_mining.py:38
Method__init__
(self,chnSTWPath,finance_dict)
legacy_v1/Text_Analysis/text_processing.py:22
Method__init__
(self)
legacy_v1/src/Hisoka/classifier.py:26
Method__init__
(self, database_name, collection_name)
legacy_v1/src/Gon/jrjspyder.py:29
Method__init__
(self)
legacy_v1/src/Gon/kill_realtime_spyder_tasks.py:17
Method__init__
(self, database_name, collection_name)
legacy_v1/src/Gon/nbdspyder.py:29
Method__init__
(self)
legacy_v1/src/Gon/spyder.py:3
Method__init__
(self, database_name, collection_name)
legacy_v1/src/Gon/cnstockspyder.py:39
Method__init__
(self, database_name, collection_name)
legacy_v1/src/Gon/stockinfospyder.py:31
Method__init__
(self, ip="localhost", port=27017)
legacy_v1/src/Kite/database.py:7
Method__init__
(self, import_module="jieba", user_dict=None, chn_stop_words_dir=None)
legacy_v1/src/Leorio/tokenization.py:18
Method__init__
(self)
legacy_v1/src/Leorio/topicmodelling.py:26
Method__init__
(self, database_name, collection_name)
legacy_v1/src/Killua/denull.py:17
Method__init__
(self)
legacy_v1/src/Killua/buildstocknewsdb.py:22
Method__init__
(self, database_name, collection_name)
legacy_v1/src/Killua/deduplication.py:14
Method__init__
(self,**kwarg)
legacy_v1/Crawler/crawler_stcn.py:37
Method__init__
(self,*arg,**kwarg)
legacy_v1/Crawler/crawler_nbd.py:32
Method__init__
(self,**kwarg)
legacy_v1/Crawler/crawler_cnstock.py:35
Method__init__
(self,*arg,**kwarg)
legacy_v1/Crawler/crawler_sina.py:33
Method__init__
(self,**kwarg)
legacy_v1/Crawler/crawler_tushare.py:9
Method__init__
(self,*arg,**kwarg)
legacy_v1/Crawler/crawler_jrj.py:34
Method__new__
单例模式
backend/app/financial/registry.py:54
Method__post_init__
初始化词汇表映射
backend/app/alpha_mining/dsl/vocab.py:48
Method__repr__
(self)
backend/app/alpha_mining/dsl/vocab.py:173
Method__repr__
(self)
backend/app/models/analysis.py:49
Method__repr__
(self)
backend/app/models/debate_history.py:42
Method__repr__
(self)
backend/app/models/stock.py:39
Method__repr__
(self)
backend/app/models/crawl_task.py:64
Method__repr__
(self)
backend/app/models/news.py:56
Method__repr__
(self)
backend/app/financial/registry.py:226
Method__repr__
(self)
backend/app/financial/providers/base.py:235
Method_default_evaluator
默认因子评估器(简化版 Sharpe-like) Args: factor: 因子值 [batch, time_steps] returns: 收益率 [batch, time_steps]
backend/app/alpha_mining/model/trainer.py:78
Method_extract_chinese_ratio
计算中文字符比例
backend/app/financial/providers/sina/fetchers/news.py:425
Method_fetch_url
爬取URL内容 Args: url: 目标URL timeout: 超时时间 Returns: HTML内容
backend/app/tools/search_engine_crawler.py:40
Function_op_decay
衰减加权:x + 0.8*x[-1] + 0.6*x[-2] 给近期数据更高权重
backend/app/alpha_mining/dsl/ops.py:130
Function_op_gate
条件选择:condition > 0 时返回 x,否则返回 y 类似于 torch.where(condition > 0, x, y)
backend/app/alpha_mining/dsl/ops.py:108
Function_op_jump
跳跃检测:返回超过 3 sigma 的异常值 用于检测价格跳跃/异常波动
backend/app/alpha_mining/dsl/ops.py:118
Function_op_max3
3 期最大值
backend/app/alpha_mining/dsl/ops.py:139
Function_run_mining_task
后台运行挖掘任务
backend/app/api/v1/alpha_mining.py:179
Method_search_single_query
执行单个查询(在线程中运行) Args: query: 搜索查询 days: 天数 count: 结果数 Returns:
backend/app/knowledge/parallel_search.py:93
Method_setup_parameters
设置工具参数(AgenticX 要求)
backend/app/tools/crawler_base.py:364
Method_setup_parameters
设置工具参数(AgenticX 要求)
backend/app/tools/text_cleaner.py:159
Method_setup_parameters
设置工具参数
backend/app/alpha_mining/tools/alpha_mining_tool.py:115
Method_setup_parameters
设置工具参数(AgenticX BaseTool 要求的抽象方法)
backend/app/financial/tools.py:49
Method_setup_parameters
设置工具参数(AgenticX BaseTool 要求的抽象方法)
backend/app/financial/tools.py:158
Methodaembed_batch
异步批量将文本转换为向量(推荐在异步上下文中使用) Args: texts: 文本列表 Returns: 向量列表
backend/app/services/embedding_service.py:246
Methodaexecute
异步执行方法(AgenticX Tool 协议要求) 当前实现为同步执行的包装 Args: **kwargs: 参数字典 Returns:
backend/app/tools/crawler_base.py:392
Methodaexecute
异步执行方法(AgenticX Tool 协议要求) 当前实现为同步执行的包装 Args: **kwargs: 参数字典 Returns:
backend/app/tools/text_cleaner.py:201
Methodaexecute
异步执行工具
backend/app/alpha_mining/tools/alpha_mining_tool.py:221
Functionagent_alpha_mining_demo
演示 AgenticX Agent 调用 AlphaMiningTool 展示如何通过 Agent 接口调用因子挖掘功能。
backend/app/api/v1/alpha_mining.py:481
Methodall_features
获取所有启用的特征列表
backend/app/alpha_mining/config.py:70
Methodanalyze_data_quality
分析数据质量和完整性
backend/app/agents/data_collector.py:205
Functionanalyze_news
触发新闻分析任务 - **news_id**: 新闻ID - **provider**: LLM提供商(可选) - **model**: 模型名称(可选) Returns: 分析任务状态
backend/app/api/v1/analysis.py:186
Methodanalyze_news
分析指定新闻 Args: news_id: 新闻ID db: 数据库会话 llm_provider: 模型厂商(可选:bailian, openai, deepseek, ki
backend/app/services/analysis_service.py:35
Methodanalyze_sentiment
分析文本情感 Args: text: 待分析文本 Returns: 情感分析结果
backend/app/services/llm_service.py:170
Methodbatch_analyze
批量分析新闻 Args: news_list: 新闻列表 Returns: 分析结果列表
backend/app/agents/news_analyst.py:420
Functionbatch_analyze_news
批量分析新闻(并发) - **news_ids**: 要分析的新闻ID列表 - **provider**: LLM提供商(可选) - **model**: 模型名称(可选)
backend/app/api/v1/analysis.py:93
Functionbatch_delete_news
批量删除新闻 - **news_ids**: 要删除的新闻ID列表
backend/app/api/v1/news.py:310
Functionbatch_lpop
(client, key, n)
legacy_v1/src/Kite/utils.py:170
Methodbuild_batch
批量构建特征 Args: data_list: 行情数据列表 device: 目标设备 Returns: 特征张量 [batch, n
backend/app/alpha_mining/features/market.py:265
Functionbuild_company_graph
构建或重建公司知识图谱 - **stock_code**: 股票代码 - **force_rebuild**: 是否强制重建(删除现有图谱)
backend/app/api/v1/knowledge_graph.py:120
Methodbuild_from_finnews
从 FinnewsHunter 数据库构建情感特征 Args: stock_code: 股票代码 start_date: 开始日期 end_date: 结束日期
backend/app/alpha_mining/features/sentiment.py:213
Functionbuild_knowledge_graph_task
异步构建知识图谱任务 在无历史新闻数据的股票首次爬取完成后触发。 从数据库中的新闻数据 + akshare 基础信息构建知识图谱。 Args: stock_code: 股票代码(如 SH600519) stock_
backend/app/tasks/crawl_tasks.py:982
Methodbuilder
(self)
backend/tests/test_alpha_mining/test_smoke_p1.py:38
Methodbuilder
(self)
backend/tests/test_alpha_mining/test_smoke_p1.py:107
Methodcallback
(metrics)
backend/tests/test_smoke_alpha_mining.py:196
Functioncancel_targeted_crawl
取消定向爬取任务 - **stock_code**: 股票代码
backend/app/api/v1/stocks.py:823
FunctioncheckAndRestoreSession
()
frontend/src/pages/StockAnalysisPage.tsx:178
Functionchrome_devtools_config
Chrome DevTools 配置文件
backend/app/main.py:246
MethodclassifyRealtimeStockNews
Classify real-time news(articles/documents) of specific stock. #Arguments: doc_list: List of real-time news(articles/documents) crawled from
legacy_v1/Text_Analysis/text_mining.py:330
MethodclassifyRealtimeStockNews
Continue crawling and classifying news(articles/documents) every 60s.
legacy_v1/Crawler/crawler_cnstock.py:252
MethodclassifyRealtimeStockNews
Continue crawling and classifying news(articles/documents) every 60s.
legacy_v1/Crawler/crawler_sina.py:312
MethodclassifyRealtimeStockNews
Continue crawling and classifying news(articles/documents) every 60s.
legacy_v1/Crawler/crawler_jrj.py:348
Functionclear_logs
清空执行日志(仅用于开发测试)
backend/app/api/v1/agents.py:1301
Methodclear_pattern
清除匹配模式的所有键
backend/app/core/redis_client.py:147
Functionclear_stock_data_cache
清除股票数据缓存 - **pattern**: 可选的缓存键模式,如果不提供则清除所有缓存 Examples: - `POST /api/v1/stocks/cache/clear` - 清除所有缓存 - `POST /api/v1/st
backend/app/api/v1/stocks.py:885
Methodclient
创建测试客户端
backend/tests/test_smoke_alpha_mining.py:279
Functioncold_start_crawl_task
冷启动批量爬取任务 Args: source: 新闻源 start_page: 起始页 end_page: 结束页
backend/app/tasks/crawl_tasks.py:300
Methodcollect_data
搜集股票相关数据(兼容旧 API)
backend/app/agents/data_collector_v2.py:685
Methodcollection
兼容性属性:返回底层的 Milvus collection 对象
backend/app/storage/vector_storage.py:210
Functioncompare_sentiment_effect
对比有/无情感特征的因子挖掘效果 分别使用纯技术特征和技术+情感特征进行因子挖掘, 对比最终效果差异。
backend/app/api/v1/alpha_mining.py:406
Methodconnect
连接到 Milvus(兼容性方法)
backend/app/storage/vector_storage.py:61
Functionconvert_to_csr_matrix
Convert LDA(LSI) model vector to CSR sparse matrix, that could be accepted by Scipy and Numpy. # Arguments: modelVec: Transformation
legacy_v1/src/Kite/utils.py:118
Methodcoroutine_run
Coroutines running.
legacy_v1/Crawler/crawler_stcn.py:236
Methodcoroutine_run
Coroutines running.
legacy_v1/Crawler/crawler_cnstock.py:234
← previousnext →701–800 of 1,198, ranked by callers