Skip to content

Commit 7b9ef36

Browse files
committed
fix trade tick begin_index param
1 parent 47aa2af commit 7b9ef36

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.2.1 (2022-11-07)
2+
### Fixed
3+
- 修复 `TradeClient.get_trade_ticks` begin_index 参数传 0 不生效的问题
4+
5+
16
## 2.2.0 (2022-11-01)
27
### New
38
- 长链接支持期货逐笔推送. 可通过 `PushClient.subscribe_tick` 订阅,使用 `PushClient.tick_changed` 接收回调

tigeropen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
@author: gaoan
66
"""
7-
__VERSION__ = '2.2.0'
7+
__VERSION__ = '2.2.1'

tigeropen/quote/request/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,13 @@ def to_openapi_dict(self):
363363
if self.end_time:
364364
params['end_time'] = self.end_time
365365

366-
if self.limit:
366+
if self.limit is not None:
367367
params['limit'] = self.limit
368368

369-
if self.begin_index:
369+
if self.begin_index is not None:
370370
params['begin_index'] = self.begin_index
371371

372-
if self.end_index:
372+
if self.end_index is not None:
373373
params['end_index'] = self.end_index
374374

375375
if self.date:

0 commit comments

Comments
 (0)