增加港股支持

This commit is contained in:
oficcejo
2025-10-10 17:07:21 +08:00
parent 88c7db1ab9
commit 80bead4f2f
8 changed files with 1015 additions and 30 deletions
+28 -15
View File
@@ -383,6 +383,7 @@ def main():
st.markdown("""
**股票代码格式**
- 🇨🇳 A股:6位数字(如600519)
- 🇭🇰 港股:1-5位数字(如700、00700)或HK前缀(如HK00700
- 🇺🇸 美股:字母代码(如AAPL)
**功能说明**
@@ -448,8 +449,8 @@ def main():
with col1:
stock_input = st.text_input(
"🔍 请输入股票代码或名称",
placeholder="例如: AAPL, 000001, 600036",
help="支持美股代码(如AAPL)和A股代码(如000001)"
placeholder="例如: AAPL, 000001, 00700",
help="支持A股(如000001)、港股(如00700)和美股(如AAPL)"
)
with col2:
@@ -464,9 +465,9 @@ def main():
# 批量股票分析界面
stock_input = st.text_area(
"🔍 请输入多个股票代码(每行一个或用逗号分隔)",
placeholder="例如:\n000001\n600036\n600519\n\n或者: 000001, 600036, 600519",
placeholder="例如:\n000001\n600036\n00700\n\n或者: 000001, 600036, 00700, AAPL",
height=120,
help="支持多种格式:每行一个代码或用逗号分隔"
help="支持多种格式:每行一个代码或用逗号分隔。支持A股、港股、美股"
)
col1, col2, col3 = st.columns(3)
@@ -1414,9 +1415,9 @@ def show_example_interface():
with col1:
st.markdown("""
### 🚀 如何使用
1. **输入股票代码**:支持美股(如AAPL、MSFT)和A股(如000001、600036)
1. **输入股票代码**:支持A股(如000001)、港股(如00700)和美股(如AAPL)
2. **点击开始分析**:系统将启动AI分析师团队
3. **查看分析报告**:5位专业分析师将从不同角度分析
3. **查看分析报告**:位专业分析师将从不同角度分析
4. **获得投资建议**:获得最终的投资评级和操作建议
### 📊 分析维度
@@ -1431,22 +1432,34 @@ def show_example_interface():
st.markdown("""
### 📈 示例股票代码
**美股热门**
- AAPL (苹果)
- MSFT (微软)
- GOOGL (谷歌)
- TSLA (特斯拉)
- NVDA (英伟达)
**A股热门**
- 000001 (平安银行)
- 600036 (招商银行)
- 000002 (万科A)
- 600519 (贵州茅台)
- 000858 (五粮液)
**港股热门**
- 00700 或 700 (腾讯控股)
- 09988 或 9988 (阿里巴巴-SW)
- 01810 或 1810 (小米集团-W)
**美股热门**
- AAPL (苹果)
- MSFT (微软)
- NVDA (英伟达)
""")
st.info("💡 提示:首次运行需要配置DeepSeek API Key,请在.env中设置DEEPSEEK_API_KEY")
st.markdown("---")
st.markdown("""
### 🌏 市场支持说明
- **A股**:完整支持(技术分析、财务数据、资金流向、市场情绪、新闻公告)
- **港股**:部分支持(技术分析、21项财务指标)⭐️
- **美股**:完整支持(技术分析、财务数据)
### 📊 港股支持的财务指标
盈利能力(6项)、营运能力(3项)、偿债能力(2项)、市场表现(4项)、分红指标(3项)、股本结构(3项)
""")
def display_history_records():
"""显示历史分析记录"""