Files
stock-tool/QUICKSTART.md
root f246f06cb1 Initial commit: 股票数据分析工具
- Go后端服务
- 内置Web界面
- SQLite数据库
- 股票列表展示
- K线图绘制
- 技术指标计算
- 基本面数据展示
2026-02-19 03:07:02 +08:00

73 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 🚀 快速开始指南
## 1⃣ 安装
```bash
cd stock-tool
./install.sh
```
## 2⃣ 初始化数据
```bash
./init_data.sh
```
## 3⃣ 运行程序
```bash
./stock-tool
# 或
go run main.go
```
## 4⃣ 打开浏览器
访问: http://localhost:8080
## 📱 你会看到什么
### 主界面
- 📊 股票列表卡片
- 每张卡片显示:
- 股票代码和名称
- 当前价格
- 涨跌幅
- 关键指标市值、PE、ROE、负债率
### 点击任意股票
进入详情页面:
1. **K线图标签** - 展示100天历史走势蜡烛图
2. **技术指标标签** - RSI、MACD、均线系统
3. **基本面标签** - 收入、利润、ROE等财务数据
### 搜索功能
- 在搜索框输入: `AAPL``Apple`
- 按回车或点击搜索按钮
- 自动跳转到对应股票详情
### 刷新数据
- 点击详情页面的"🔄 刷新数据"按钮
- 重新从API获取最新数据
---
## 🎯 下一步
1. **添加更多股票** - 通过代码或API手动添加
2. **学习数据结构** - 查看数据库文件 `stock.db`
3. **集成真实API** - 修改 `main.go` 接入真实的股票数据源
4. **实现选股策略** - 添加自动筛选功能
## 💡 提示
- 默认使用模拟数据,方便快速上手
- 数据存储在本地 SQLite 数据库
- 数据库文件: `stock.db`
- 可以随时清空数据库重新开始
---
**需要帮助?** 查看 README.md 或联系 Geliebte