Skip to content

Commit 307470b

Browse files
committed
Merge branch 'dev' into 'master'
Dev See merge request server/openapi/openapi-python-sdk!148
2 parents d660987 + d4ca1ea commit 307470b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.2.6 (2022-12-14)
2+
### Fix
3+
- 修复 Windows 系统编码为gbk时安装报编码错误的问题
4+
15
## 2.2.5 (2022-12-12)
26
### New
37
- `TradeClient.get_contract` 返回的合约对象 `tigeropen.trade.domain.contract.Contract` 新增属性: `is_etf`, `etf_leverage`

setup.py

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

1111
with open(path.join(path.abspath(path.dirname(__file__)), 'requirements.txt')) as f:
1212
install_requires = f.read()
13-
with open(path.join(path.abspath(path.dirname(__file__)), 'README.md')) as f:
13+
with open(path.join(path.abspath(path.dirname(__file__)), 'README.md'), encoding='utf-8') as f:
1414
long_description = f.read()
1515

1616
setup(

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.5'
7+
__VERSION__ = '2.2.6'

tigeropen/tiger_open_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def __remove_common_params(self, params):
9595
"""
9696
内部方法,通过请求request对象构造请求查询字符串和业务参数
9797
"""
98-
def __prepare_request(self, request, url=None):
98+
def __prepare_request(self, request, url=''):
9999
THREAD_LOCAL.logger = self.__logger
100100
params = request.get_params()
101101
params[P_TIMESTAMP] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")

0 commit comments

Comments
 (0)