部署FinRobot需要完成以下步骤:
environmental preparation
- 创建Python 3.10虚拟环境:
conda create --name finrobot python=3.10
- Cloning GitHub repositories:
git clone https://github.com/AI4Finance-Foundation/FinRobot.git
API Configuration
need to be atOAI_CONFIG_LIST
文件中添加OpenAI密钥,并在config_api_keys
配置金融数据源API(如Finnhub用于市场数据,SEC-API获取财报)。
sample code (computing)
from finrobot.agents.workflow import SingleAssistant
assistant = SingleAssistant("Market_Analyst", llm_config)
assistant.chat("分析NVDA近期市场动态并预测股价走势")
该代码会调用市场预测代理,输出包含技术面分析和基本面的综合报告。
This answer comes from the articleFinRobot: An Intelligent Body to Improve Financial Data Analysis Efficiency and Investment ResearchThe