Skip to content

Commit a62dd2e

Browse files
shinny-packshinny-mayanqiong
authored andcommitted
Update Version 3.4.5
1 parent bcd03a8 commit a62dd2e

File tree

7 files changed

+10
-9
lines changed

7 files changed

+10
-9
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.4.4
3+
Version: 3.4.5
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.4.4'
51+
version = u'3.4.5'
5252
# The full version, including alpha/beta/rc tags.
53-
release = u'3.4.4'
53+
release = u'3.4.5'
5454

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

doc/version.rst

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

33
版本变更
44
=============================
5+
3.4.5 (2023/07/17)
6+
7+
* 修复::py:class:`~tqsdk.TargetPosTask` 及 :py:class:`~tqsdk.algorithm.twap` 支持红枣期货下单
8+
9+
510
3.4.4 (2023/07/12)
611

712
* 修复: 升级 numpy 后,tafunc.barlast 报错的问题

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name='tqsdk',
11-
version="3.4.4",
11+
version="3.4.5",
1212
description='TianQin SDK',
1313
author='TianQin',
1414
author_email='tianqincn@gmail.com',

tqsdk/__version__.py

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

tqsdk/algorithm/twap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ def __init__(self, api: TqApi, symbol: str, direction: str, offset: str, volume:
117117
print(target_twap.average_trade_price)
118118
api.close()
119119
"""
120-
if symbol.startswith("CZCE.CJ"):
121-
raise Exception("红枣期货不支持创建 targetpostask、twap、vwap 任务,交易所规定该品种最小开仓手数为大于等于 4 手,这些函数还未支持该规则!")
122120
if symbol.startswith("CZCE.ZC"):
123121
raise Exception("动力煤期货不支持创建 targetpostask、twap、vwap 任务,交易所规定该品种最小开仓手数为大于等于 4 手,这些函数还未支持该规则!")
124122
if symbol.startswith("CZCE.WH"):

tqsdk/lib/target_pos_task.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ def get_price(direction):
197197
# 2021-03-15 11:29:48 - INFO - 时间: 2021-03-15 11:29:47.533515, 合约: SHFE.rb2106, 开平: OPEN, 方向: BUY, 手数: 3, 价格: 4687.000,手续费: 14.12
198198
199199
"""
200-
if symbol.startswith("CZCE.CJ"):
201-
raise Exception("红枣期货不支持创建 targetpostask、twap、vwap 任务,交易所规定该品种最小开仓手数为大于等于 4 手,这些函数还未支持该规则!")
202200
if symbol.startswith("CZCE.ZC"):
203201
raise Exception("动力煤期货不支持创建 targetpostask、twap、vwap 任务,交易所规定该品种最小开仓手数为大于等于 4 手,这些函数还未支持该规则!")
204202
if symbol.startswith("CZCE.WH"):

0 commit comments

Comments
 (0)