专业基金分析CLI工具 - 面向机构客户
Project description
Fund CLI
📖 简介
Fund CLI 是一款面向机构客户的专业基金分析命令行工具,提供基金筛选、业绩分析、组合对比、风险监控等功能。基于开源技术栈构建,支持多数据源接入和AI辅助分析。
✨ 核心功能
- 🔍 基金筛选 - 多维度筛选条件,支持业绩、风险、规模等指标
- 📊 业绩分析 - 收益率、夏普比率、最大回撤等专业指标
- ⚖️ 基金对比 - 多基金横向对比分析
- 📈 组合优化 - 基于现代投资组合理论的资产配置优化
- 🤖 AI分析 (V2.0) - AI辅助投资分析和报告生成
- 💾 多数据源 - 支持AKShare、Tushare、Wind等数据源
🚀 快速开始
安装
# 使用 pip 安装
pip install fund-cli
# 或从源码安装
git clone https://github.com/your-org/fund-cli.git
cd fund-cli
pip install -e ".[dev]"
基本使用
# 查看帮助
fund --help
# 筛选基金
fund filter --type 股票型 --min-scale 10
# 分析基金
fund analyze 000001
# 对比基金
fund compare 000001 000002 000003
# 查看基金信息
fund info 000001
📚 文档
🛠️ 技术栈
| 类别 | 技术 |
|---|---|
| CLI框架 | Typer, Rich |
| 数据处理 | Pandas, NumPy |
| 数据源 | AKShare, Tushare |
| 量化分析 | QuantStats, PyPortfolioOpt |
| 可视化 | Plotly, Matplotlib |
| AI集成 | LiteLLM |
📁 项目结构
fund-cli/
├── src/fund_cli/ # 源代码
│ ├── cli.py # CLI入口
│ ├── config.py # 配置管理
│ ├── core/ # 核心模块
│ ├── data/ # 数据层
│ ├── analysis/ # 分析模块
│ ├── commands/ # CLI命令
│ └── utils/ # 工具函数
├── tests/ # 测试代码
├── docs/ # 文档
└── examples/ # 示例脚本
🧪 开发
# 安装开发依赖
pip install -e ".[dev]"
# 安装 pre-commit 钩子
pre-commit install
# 运行测试
pytest tests/
# 代码格式化
black src tests
# Lint检查
ruff check src tests
# 类型检查
mypy src
📄 许可证
本项目采用 MIT 许可证 - 详见 LICENSE 文件。
🤝 贡献
欢迎贡献!请查看 贡献指南 了解详情。
📧 联系方式
- 问题反馈: GitHub Issues
- 功能建议: GitHub Discussions
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fund_cli-2.0.0.tar.gz
(91.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fund_cli-2.0.0-py3-none-any.whl
(92.4 kB
view details)
File details
Details for the file fund_cli-2.0.0.tar.gz.
File metadata
- Download URL: fund_cli-2.0.0.tar.gz
- Upload date:
- Size: 91.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05b032d891daf2a71e5ec70ca353e194dd1a67393f26f1708cd1f8dd2888b398
|
|
| MD5 |
7663df98b7f3392dd7ecdeec6c5c6694
|
|
| BLAKE2b-256 |
d3bba9fe10d03b752cc87118ab9d6b4d1ee47b7cb98653e1ef8771a19580ebd1
|
File details
Details for the file fund_cli-2.0.0-py3-none-any.whl.
File metadata
- Download URL: fund_cli-2.0.0-py3-none-any.whl
- Upload date:
- Size: 92.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99da52e6ef13eb7a36a3efce40e5d73995d2372789994acd4db43f5c468df054
|
|
| MD5 |
be392dda6ed23d903cb6cc613c671a78
|
|
| BLAKE2b-256 |
e145f9a43295c4bc362cf5d286e5fa33ce32f9bdbef7f4566e978ee81dc3bd2c
|