Skip to content

Commit

Permalink
version0.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
refraction-ray committed Apr 16, 2020
1 parent f15da02 commit 916df52
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 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.8 - 2020.04.16
### added
* get_rt 新浪源,A 股标的增加买卖前5手数据,可通过添加选项 _from="sina" 调用
* 增加根据持仓的基金历史估值分析,同时使 PEBHistory 可以 dispatch 到指数,申万行业,个股和基金估值系统
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.7",
version="0.8.8",
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.7"
__version__ = "0.8.8"
__author__ = "refraction-ray"
__name__ = "xalpha"

Expand Down
2 changes: 1 addition & 1 deletion xalpha/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# 该模块只是保存其他一些爬虫的函数,其接口很不稳定,不提供文档和测试,且随时增删,慎用!


@lru_cache_time(ttl=7200, maxsize=64)
@lru_cache_time(ttl=600, maxsize=64)
def get_ri_status(suburl=None):
if not suburl:
suburl = "m=cb&a=cb_all" # 可转债
Expand Down
2 changes: 1 addition & 1 deletion xalpha/toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def _repr_datatable_(self):
script += """
require(["DT"], function(DT) {$(document).ready( () => {
// Turn existing table into datatable
$(element).find("table.dataframe").DataTable();
$(element).find("table.dataframe").DataTable({'scrollX': '100%'});
})
});
"""
Expand Down
1 change: 1 addition & 0 deletions xalpha/universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,7 @@ def ttjjcode(code):
:param code: str.
:return: str.
"""
code = code.strip()
if code.endswith(".HK"):
return "HK" + code[:-3]
elif code.endswith(".US"):
Expand Down

0 comments on commit 916df52

Please sign in to comment.