Skip to content

Commit

Permalink
Update Version 3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shinny-pack authored and shinny-chenli committed Aug 23, 2024
1 parent 5cc39d4 commit 0a6b40a
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: tqsdk
Version: 3.6.1
Version: 3.7.0
Summary: TianQin SDK
Home-page: https://www.shinnytech.com/tqsdk
Author: TianQin
Expand Down
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = u'3.6.1'
version = u'3.7.0'
# The full version, including alpha/beta/rc tags.
release = u'3.6.1'
release = u'3.7.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
1 change: 1 addition & 0 deletions doc/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ TqSdk 模块参考
tqsdk.account.rst
tqsdk.tqkq.rst
tqsdk.tqzq.rst
tqsdk.tqctp.rst
tqsdk.sim.rst
tqsdk.multiaccount.rst
tqsdk.objs.rst
Expand Down
7 changes: 7 additions & 0 deletions doc/reference/tqsdk.tqctp.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.. _tqsdk.tqctp:

tqsdk.TqCtp - 直连 CTP 交易类
------------------------------------------------------------------
.. autoclass:: tqsdk.TqCtp
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions doc/version.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

版本变更
=============================
3.7.0 (2024/08/22)

* 新增::py:class:`~tqsdk.TqCtp` 账户类型,支持直连 CTP 柜台


3.6.1 (2024/08/16)

* 优化:仅在发送过订阅请求后,才会发送退订请求
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='tqsdk',
version="3.6.1",
version="3.7.0",
description='TianQin SDK',
author='TianQin',
author_email='[email protected]',
Expand All @@ -18,7 +18,7 @@
packages=setuptools.find_packages(exclude=["tqsdk.test", "tqsdk.test.*"]),
python_requires='>=3.6.4',
install_requires=["websockets>=8.1", "requests", "numpy", "pandas>=1.1.0", "scipy", "simplejson", "aiohttp",
"certifi", "pyjwt", "psutil", "shinny_structlog", "sgqlc", "filelock", "tqsdk_ctpse", "tqsdk_sm", "tqsdk_zq_otg==1.0.1"],
"certifi", "pyjwt", "psutil", "shinny_structlog", "sgqlc", "filelock", "tqsdk_ctpse", "tqsdk_sm", "tqsdk_zq_otg==1.1.0"],
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
Expand Down
2 changes: 1 addition & 1 deletion tqsdk/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.6.1'
__version__ = '3.7.0'
2 changes: 2 additions & 0 deletions tqsdk/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,8 @@ def get_kline_serial(self, symbol: Union[str, List[str]], duration_seconds: int,
chart_id (str): [Deprecated] 由 api 自动生成,此参数不再使用
**获取后的 kline 对象请不要修改/重命名原始的 kline 序列,可能会导致后续的 kline 数据不更新 **
**注:关于传入合约代码列表 获取多合约K线的说明:**
1. 主合约的字段名为原始K线数据字段,从第一个副合约开始,字段名在原始字段后加数字,如第一个副合约的开盘价为 "open1" , 第二个副合约的收盘价为 "close2"。
Expand Down
3 changes: 2 additions & 1 deletion tqsdk/zq_otg.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import json
import os
import tempfile
import signal
import sys
import subprocess
import contextlib
Expand Down Expand Up @@ -62,7 +63,7 @@ async def get_addr(self):
async def __aexit__(self, exc_type, exc, tb):
if self._zq_otg_proc is not None:
with contextlib.suppress(ProcessLookupError):
self._zq_otg_proc.terminate()
self._zq_otg_proc.send_signal(signal.CTRL_BREAK_EVENT if sys.platform.startswith("win") else signal.SIGTERM)
if sys.platform.startswith("win"):
self._zq_otg_proc.wait()
else:
Expand Down

0 comments on commit 0a6b40a

Please sign in to comment.