Skip to content

Commit

Permalink
version0.8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
refraction-ray committed May 1, 2020
1 parent f9cf44d commit 8e727af
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog
## Unreleased

## v0.8.10 - 2020.05.01
### added
* 增加场内账单分红派息合拆送股的处理,支持特定行跳过
* 为 trade.v_tradecost() 增加买卖点标记(类似蚂蚁财富显示效果)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setuptools.setup(
name="xalpha",
version="0.8.9",
version="0.8.10",
author="refraction-ray",
author_email="[email protected]",
description="all about fund investment",
Expand Down
2 changes: 1 addition & 1 deletion xalpha/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.8.9"
__version__ = "0.8.10"
__author__ = "refraction-ray"
__name__ = "xalpha"

Expand Down
3 changes: 2 additions & 1 deletion xalpha/universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1894,7 +1894,7 @@ def get_stock_peb_range(code, start, end, wrapper=False):
@lru_cache()
def ttjjcode(code):
"""
将天天基金的持仓股票代码标准化
将天天基金的持仓股票代码或其他来源的代码标准化
:param code: str.
:return: str.
Expand All @@ -1908,6 +1908,7 @@ def ttjjcode(code):
return "HK" + code
elif code.isdigit() and len(code) == 6:
if code.startswith("1") or code.startswith("0") or code.startswith("3"):
# 注意这里只能对应个股,指数代码有重叠没有办法的事
return "SZ" + code
elif code.startswith("5") or code.startswith("6"):
return "SH" + code
Expand Down

0 comments on commit 8e727af

Please sign in to comment.