Skip to content

Commit

Permalink
add trade get_active_clients support
Browse files Browse the repository at this point in the history
  • Loading branch information
rainx committed Mar 22, 2018
1 parent 8f64ada commit 9758258
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.66
---
*`get_tts`支持`TdxTradeServer1.7.0.0`版本
* trade模块增加 `get_active_clients` 功能

1.65
---
* 增加历史财务数据相关下载和解析方法 ,参考文档 https://rainx.gitbooks.io/pytdx/content/pytdx_crawler.html
Expand Down
2 changes: 1 addition & 1 deletion pytdx/bin/get_tdx_trader_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


TRADE_DLL_KEY = "http://rainx1982.coding.me/tts/Trade.dll"
TDX_TRADE_SEVER_KEY = "http://rainx1982.coding.me/tts/TdxTradeServer-Release-1.6_20180205171449.zip"
TDX_TRADE_SEVER_KEY = "http://rainx1982.coding.me/tts/TdxTradeServer-Release-1.7_20180322150311.zip"



Expand Down
3 changes: 3 additions & 0 deletions pytdx/trade/trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ def query_history_data(self, client_id, category, begin_date, end_date):
'end_date': end_date
})

def get_active_clients(self):
return self.call(func="get_active_clients")

if __name__ == "__main__":
import os
api = TdxTradeApi(endpoint="http://10.11.5.175:10092/api", enc_key=b"4f1cf3fec4c84c84", enc_iv=b"0c78abc083b011e7")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

setup(
name=pkg_name,
version='1.65',
version='1.66',
description='A Python Interface to TDX protocol',
long_description=long_description,
author='RainX<Jing Xu>',
Expand Down

0 comments on commit 9758258

Please sign in to comment.