Skip to content

Commit

Permalink
add version change, and fix params bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rainx committed Aug 11, 2017
1 parent 17d20c5 commit 177c157
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.22
------
* 解决扩展行情,无法指定数据长度的问题 https://github.com/rainx/pytdx/issues/22 wopalm

1.21
------
* Reader 支持 lc1, lc5 文件格式
Expand Down
4 changes: 2 additions & 2 deletions pytdx/exhq.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def get_instrument_quote(self, market, code):
return cmd.call_api()

@update_last_ack_time
def get_instrument_bars(self, category, market, code):
def get_instrument_bars(self, category, market, code, start=0, count=700):
cmd = GetInstrumentBars(self.client)
cmd.setParams(category, market, code, start=0, count=700)
cmd.setParams(category, market, code, start=start, count=count)
return cmd.call_api()

@update_last_ack_time
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='pytdx',
version='1.21',
version='1.22',
description='A Python Interface to TDX protocol',
author='RainX<Jing Xu>',
author_email='[email protected]',
Expand Down

0 comments on commit 177c157

Please sign in to comment.