Skip to content

Commit a24d884

Browse files
shinny-hongyanshinny-chenli
authored andcommitted
Update Version 3.7.2
1 parent 3ab4cf1 commit a24d884

File tree

16 files changed

+121
-20
lines changed

16 files changed

+121
-20
lines changed

PKG-INFO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: tqsdk
3-
Version: 3.7.1
3+
Version: 3.7.2
44
Summary: TianQin SDK
55
Home-page: https://www.shinnytech.com/tqsdk
66
Author: TianQin

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = u'3.7.1'
51+
version = u'3.7.2'
5252
# The full version, including alpha/beta/rc tags.
53-
release = u'3.7.1'
53+
release = u'3.7.2'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.

doc/reference/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ TqSdk 模块参考
1212
tqsdk.tqkq.rst
1313
tqsdk.tqzq.rst
1414
tqsdk.tqctp.rst
15+
tqsdk.tqrohon.rst
1516
tqsdk.sim.rst
1617
tqsdk.multiaccount.rst
1718
tqsdk.objs.rst

doc/reference/tqsdk.tqrohon.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. _tqsdk.tqrohon:
2+
3+
tqsdk.TqRohon - 融航资管交易类
4+
------------------------------------------------------------------
5+
.. autoclass:: tqsdk.TqRohon
6+
:members:
7+
:inherited-members:

doc/version.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
版本变更
44
=============================
5+
3.7.2 (2024/09/12)
6+
7+
* 新增::py:class:`~tqsdk.TqRohon` 账户类型,支持融航资管柜台
8+
* BREAKING:从安装依赖中移除 tqsdk_zq_otg 模块,用户使用多柜台需要手动安装依赖包:``pip install -U tqsdk_zq_otg``
9+
10+
511
3.7.1 (2024/08/29)
612

713
* 修复:在 Windows 系统上使用 :py:class:`~tqsdk.TqCtp` 账户导致多 TqApi 实例无法运行的问题

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name='tqsdk',
11-
version="3.7.1",
11+
version="3.7.2",
1212
description='TianQin SDK',
1313
author='TianQin',
1414
author_email='[email protected]',
@@ -18,7 +18,7 @@
1818
packages=setuptools.find_packages(exclude=["tqsdk.test", "tqsdk.test.*"]),
1919
python_requires='>=3.6.4',
2020
install_requires=["websockets>=8.1", "requests", "numpy", "pandas>=1.1.0", "scipy", "simplejson", "aiohttp",
21-
"certifi", "pyjwt", "psutil", "shinny_structlog", "sgqlc", "filelock", "tqsdk_ctpse", "tqsdk_sm", "tqsdk_zq_otg==1.1.1"],
21+
"certifi", "pyjwt", "psutil", "shinny_structlog", "sgqlc", "filelock", "tqsdk_ctpse", "tqsdk_sm"],
2222
classifiers=[
2323
"Programming Language :: Python :: 3",
2424
"License :: OSI Approved :: Apache Software License",

tqsdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name = "tqsdk"
55

66
from tqsdk.api import TqApi
7-
from tqsdk.tradeable import TqAccount, TqZq, TqKq, TqKqStock, TqSim, TqSimStock, TqCtp
7+
from tqsdk.tradeable import TqAccount, TqZq, TqKq, TqKqStock, TqSim, TqSimStock, TqCtp, TqRohon
88
from tqsdk.auth import TqAuth
99
from tqsdk.channel import TqChan
1010
from tqsdk.backtest import TqBacktest, TqReplay

tqsdk/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.7.1'
1+
__version__ = '3.7.2'

tqsdk/api.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
from tqsdk.risk_rule import TqRiskRule
7373
from tqsdk.ins_schema import ins_schema, basic, derivative, future, option
7474
from tqsdk.symbols import TqSymbols
75-
from tqsdk.tradeable import TqAccount, TqZq, TqKq, TqKqStock, TqSim, TqSimStock, BaseSim, BaseOtg, TqCtp
75+
from tqsdk.tradeable import TqAccount, TqZq, TqKq, TqKqStock, TqSim, TqSimStock, BaseSim, BaseOtg, TqCtp, TqRohon
7676
from tqsdk.trading_status import TqTradingStatus
7777
from tqsdk.tqwebhelper import TqWebHelper
7878
from tqsdk.utils import _generate_uuid, _query_for_quote, BlockManagerUnconsolidated, _quotes_add_night, _bisect_value, \
@@ -82,7 +82,7 @@
8282
from .__version__ import __version__
8383

8484

85-
UnionTradeable = Union[TqAccount, TqKq, TqZq, TqKqStock, TqSim, TqSimStock, TqCtp]
85+
UnionTradeable = Union[TqAccount, TqKq, TqZq, TqKqStock, TqSim, TqSimStock, TqCtp, TqRohon]
8686

8787

8888
class TqApi(TqBaseApi):
@@ -119,8 +119,10 @@ def __init__(self, account: Optional[Union[TqMultiAccount, UnionTradeable]] = No
119119
120120
* :py:class:`~tqsdk.TqCtp` : 使用直连 CTP 账号
121121
122+
* :py:class:`~tqsdk.TqRohon` : 使用融航资管账号
123+
122124
* :py:class:`~tqsdk.TqMultiAccount` : 多账户列表,列表中支持 :py:class:`~tqsdk.TqAccount`、:py:class:`~tqsdk.TqKq`、:py:class:`~tqsdk.TqKqStock`、\
123-
:py:class:`~tqsdk.TqSim`、:py:class:`~tqsdk.TqSimStock`、:py:class:`~tqsdk.TqZq` 和 :py:class:`~tqsdk.TqCtp` 中的 0 至 N 个或者组合
125+
:py:class:`~tqsdk.TqSim`、:py:class:`~tqsdk.TqSimStock`、:py:class:`~tqsdk.TqZq`、:py:class:`~tqsdk.TqRohon` 和 :py:class:`~tqsdk.TqCtp` 中的 0 至 N 个或者组合
124126
125127
auth (TqAuth/str): [必填]用户快期账户:
126128
* :py:class:`~tqsdk.TqAuth` : 添加快期账户类,例如:TqAuth("[email protected]", "123456")

tqsdk/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ async def _run(self, api, url, send_chan, recv_chan):
130130
url_info = url_info._replace(scheme="ws", path="/".join(sm_info[:1]+sm_info[4:]))
131131
elif url_info.scheme.startswith("zqotg"):
132132
url_info = url_info._replace(scheme="ws")
133-
cm = ZqOtgContext()
133+
cm = ZqOtgContext(self._api)
134134

135135
count = 0
136136
async with cm:

0 commit comments

Comments
 (0)