Skip to content

Commit

Permalink
Merge pull request shidenggui#100 from xgdgsc/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
shidenggui authored Jan 21, 2022
2 parents 4177563 + 165bfb2 commit 63ab501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easyquotation/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_stock_type(stock_code):
:param stock_code:股票ID, 若以 'sz', 'sh' 开头直接返回对应类型,否则使用内置规则判断
:return 'sh' or 'sz'"""
assert type(stock_code) is str, "stock code need str type"
sh_head = ("50", "51", "60", "90", "110", "113",
sh_head = ("50", "51", "60", "90", "110", "113", "118",
"132", "204", "5", "6", "9", "7")
if stock_code.startswith(("sh", "sz", "zz")):
return stock_code[:2]
Expand Down

0 comments on commit 63ab501

Please sign in to comment.