Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #241 from shixiongfei/master
Browse files Browse the repository at this point in the history
修复local variable 'nature_name' referenced before assignment
  • Loading branch information
yutiansut committed Mar 2, 2020
2 parents dd36044 + 31a00d2 commit 2857fda
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytdx/parser/ex_get_history_transaction_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def parseResponse(self, body_buf):
second = direction % 10000
nature = direction #### 为了老用户接口的兼容性,已经转换为使用 nature_value
value = direction // 10000
nature_name = '换手'
# 对于大于59秒的值,属于无效数值
if second > 59:
second = 0
Expand Down

0 comments on commit 2857fda

Please sign in to comment.