65 Star 143 Fork 72

海风 / hfpy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.py 584 Bytes
一键复制 编辑 原始数据 按行查看 历史
海风 提交于 2020-09-07 10:21 . 修复:main中while input报错
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__title__ = '主程序'
__author__ = 'HaiFeng'
__mtime__ = '20180822'
from hfpy.atp import ATP
from time import sleep
if __name__ == '__main__':
atp = ATP()
# 测试
# from hfpy.structs import ReqPackage, BarType
# import sys
# req = ReqPackage()
# # req.Type = BarType.Real
# req.Instrument = 'rb2005'
# req.Type = BarType.Min
# req.Begin = '20190301'
# req.End = '20200701'
# atp.get_data_zmq(req)
# sys.exit()
atp.Run()
while True:
sleep(60*10)
# atp.close_api()
Python
1
https://gitee.com/haifengat/hfpy.git
git@gitee.com:haifengat/hfpy.git
haifengat
hfpy
hfpy
master

搜索帮助