Skip to content

Commit

Permalink
version0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
refraction-ray committed Mar 8, 2020
1 parent 24863f1 commit 2f3db8d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Changelog

## Unreleased


## v0.3.0 - 2020.03.08
### added
* 重磅增加几乎万能的日线数据获取器 ``get_daily``
* 增加几乎万能的实时数据获取器 ``get_rt``
### fixed
* pandas 1.0+ 的 `pandas.Timestamp` API 要求更严,bs 的 NavigableString 不被接受,需要先用 `str` 转回 python str
* day gap when incremental update: if today's data is published, add logic to avoid this
### changed
* `fundinfo` 解析网页逻辑重构,直接按字符串解析,不再引入 js parser,更加简洁。
* `fundinfo` 解析网页逻辑重构,直接按字符串解析,不再引入 js parser,更加简洁, 依赖更少

## v0.2.0 - 2020.02.19
### fixed
Expand Down
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,33 @@ xalpha

**国内基金投资的全流程管理**

场外基金的信息与净值获取,投资账户记录整合分析与丰富可视化,简单的策略回测以及根据预设策略的定时投资提醒。尤其适合资金反复进出的定投型和网格型投资的概览与管理分析。
场外基金的信息与净值获取,精确到分的投资账户记录整合分析与丰富可视化,简单的策略回测以及根据预设策略的定时投资提醒。尤其适合资金反复进出的定投型和网格型投资的概览与管理分析。

🎉 最新版本支持通用日线和实时数据获取器,统一接口一行可以获得几乎任何市场上存在产品的价格数据,进行分析。

一行拿到基金信息:

```python
nfyy = xa.fundinfo("501018")
```

一行根据账单进行基金组合全模拟,和实盘完全相符:

```python
jiaoyidan = xa.record(path).status # 额外一行先读入 path 处的 csv 账单
shipan = xa.mul(jiaoyidan) # Let's rock
shipan.combsummary() # 看所有基金总结效果
```

一行获取历史日线数据或实时数据

```python
xa.get_daily("SH518880") # 沪深市场历史数据
xa.get_daily("USD/CNY") # 人民币中间价历史数据
xa.get_rt("commodities/crude-oil") # 原油期货实时数据
```

xalpha 不止如此,更多特性,欢迎探索。

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="xalpha",
version="0.2.0",
version="0.3.0",
author="refraction-ray",
author_email="refraction-ray@protonmail.com",
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.2.0"
__version__ = "0.3.0"
__author__ = "refraction-ray"
__name__ = "xalpha"

Expand Down

0 comments on commit 2f3db8d

Please sign in to comment.