Comments (8)
66a1f5a 已修复该问题,非常感谢这个发现
from xalpha.
关于交易数字的一些特别约定,交易数字小数点一位之后的非零位有特别约定,不代表交易的部分。 小数点后第二位如果是5,且当日恰好为对应基金分红日,标志着选择了分红再投入的方式,否则默认分红拿现金。(该默认行为 property 含 2 时可翻转)比如 100.05 的意思是当日分红再投入且又申购了 500 元。
会不会和这个有关系呀,对应日期是分红日吗
from xalpha.
那天不是分红日期,我还发现其他基金的这种份额变化问题,比如csv 文件中的 xx.46 在ctable上变成xx.47 等的问题
from xalpha.
2020-11-03 | 6197.94 | -4950.43 |
---|
from xalpha.
非常感谢你这个发现,有时间我会看一下,初步猜想和电脑二进制表示十进制数可能是有关的,也可能是代码纪录交易数据时有逻辑错误,这个是只和数据有关吗。比如如果记录的是 -4950.44 不管哪个基金或者日期,都会变数字
from xalpha.
我也查看了一下其他基金的*.44份额的数据,有些基金没出现这个问题,目前我发现3-4个基金的这种赎回份额在csv和ctable不一致问题,包括*.44,*.45, *.47 等份额上 。 和上面所说的那样 006229中欧医疗创新股票 的 -266.65 变成-266.64,而 002207前海开源金银珠宝混合C的-4950.44 变成 -4950.43
from xalpha.
复现该问题,问题根源:
-266.65*100 # -26664.999999999996
int(-226.65*100) = -22664
from xalpha.
也谢谢你,太好了
from xalpha.
Related Issues (20)
- 场内分红问题 HOT 1
- 期待解锁宏观数据 from ycharts HOT 1
- ycharts 数据拉取错误 HOT 3
- 可以回测基于策略的基金买入卖出收益吗 HOT 1
- 增量更新分拆信息解析出错 HOT 1
- 测试”技术指标交叉类“时报错 HOT 1
- 使用多进程时报错 HOT 1
- xa.indexinfo接口无法使用 HOT 3
- indicator_cross中start日期问题 HOT 1
- 计算基金收益报错
- pandas更新之后dataframe没有append了 HOT 2
- the pinning pyecharts version doesn't support python3.10+
- sqlalchemy >= 2 报错 HOT 2
- [Warning] RCE in xalpha v0.11.4 ~ v0.11.8 HOT 4
- 请问作者怎么通过基金交易单申赎基金呀 HOT 1
- VInfo失效。
- 添加米筐数据源支持。
- 数据错误。 HOT 1
- indexinfo报错 HOT 1
- 这个问题是2023年年末提出的,请问当前数据源是否是正常运行的,包含最近三年的及时数据 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xalpha.