Skip to main content

TianGong Quantitative Investment Research Analysis Client

Project description

tgtrader天工量化投研分析客户端

  • 提供开箱即用的分析工具
  • 对于小白,可以直接使用可视化分析工具,零代码开启量化分析
  • 对于有一定经验的开发者,结合使用sdk开发,更加灵活

微信公众号: 天工量化

关注即可获取

  1. tgtrader的最佳实践:如何用好tgtrader以提高投研效率
  2. 研报复现:各大券商研报复现,源码公开
  3. 策略分享:基于tg量化工具集,实现各类策略
  4. 实盘跟踪:已上线的实盘策略持续跟进

源码地址

github: https://github.com/smartian1/tgtrader gitee: https://gitee.com/smartian123/tgtrader

安装

pip install tgtrader

如果网络不通,可以使用国内镜像源
pip install tgtrader -i https://mirrors.aliyun.com/pypi/simple/

更新日志

v1.2.0

  • 数据流支持使用AI大模型解读财经新闻
  • 支持任务调度,定时执行数据加工流,用于实时解析财经新闻 AI大模型解读财经新闻 alt text

v1.1.0

  • 支持画布拖拽构建数据加工流程,无需写代码 拖拽构建数据加工流程 alt text

v1.0.1

  • 增加数据初始化、数据查询页面

  • 增加知识库页面,显示jupyter notebook

    alt text

v1.0.0

可视化策略回测

  • 支持在本地运行可视化页面, 仅需两行代码

  • 已支持的内置策略: 目标权重策略, 风险平价策略 (策略不断扩充中)

  • 我的策略: 将回测策略及参数保存到个人空间

  • 策略详情: 查看策略详情, 并支持查看策略回测和模拟阶段绩效

    目标权重策略
目标权重策略

客户端使用说明

创建虚拟环境(建议)
python -m venv venv_tgtrader

激活虚拟环境
1. windows
.\venv_tgtrader\Scripts\activate
2. mac/linux
source venv_tgtrader/bin/activate

安装tgtrader
pip install tgtrader

初始化数据(会提示输入管理员admin密码,连续输入两次即可,后续登录时使用)
python -m tgtrader.streamlit_pages.init_data


启动客户端
1. 创建一个python文件(要与初始化数据时目录保持一致),例如:tgtrader_cli.py
2. 在文件中添加以下代码:

from tgtrader.streamlit_pages.main import run
run()

3. 运行
  streamlit run tgtrader_cli.py

4. 定时任务启动(刷新财经新闻)
  python -m tgtrader.tasks.task_scheduler

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

tgtrader-1.2.0a6.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tgtrader-1.2.0a6-py3-none-any.whl (5.7 MB view details)

Uploaded Python 3

File details

Details for the file tgtrader-1.2.0a6.tar.gz.

File metadata

  • Download URL: tgtrader-1.2.0a6.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for tgtrader-1.2.0a6.tar.gz
Algorithm Hash digest
SHA256 69228f5825f9f4d996edf797f77449ec586ff926756c977503956a01d49b5d01
MD5 5f05a5116d2f00ad1552db949f096c97
BLAKE2b-256 e7e0ded9e63d41cd195bff03b0b43e0098923b038bfe883f3b60b23d1dc020d2

See more details on using hashes here.

File details

Details for the file tgtrader-1.2.0a6-py3-none-any.whl.

File metadata

  • Download URL: tgtrader-1.2.0a6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for tgtrader-1.2.0a6-py3-none-any.whl
Algorithm Hash digest
SHA256 39637948fbaec2a7976a201b74dde55a56ed708ab7295e6ce9bbf4d7e378aa86
MD5 0583f05f2b9c556a17986af7678dd046
BLAKE2b-256 62348fa0f5555d807a230d10d26ee8867cba1c8a51ce48efc3c2f1250ddc63e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page