Giter VIP home page Giter VIP logo

Comments (8)

refraction-ray avatar refraction-ray commented on June 25, 2024 1

66a1f5a 已修复该问题,非常感谢这个发现

from xalpha.

refraction-ray avatar refraction-ray commented on June 25, 2024

关于交易数字的一些特别约定,交易数字小数点一位之后的非零位有特别约定,不代表交易的部分。 小数点后第二位如果是5,且当日恰好为对应基金分红日,标志着选择了分红再投入的方式,否则默认分红拿现金。(该默认行为 property 含 2 时可翻转)比如 100.05 的意思是当日分红再投入且又申购了 500 元。

会不会和这个有关系呀,对应日期是分红日吗

from xalpha.

kaharjan avatar kaharjan commented on June 25, 2024

那天不是分红日期,我还发现其他基金的这种份额变化问题,比如csv 文件中的 xx.46 在ctable上变成xx.47 等的问题

from xalpha.

kaharjan avatar kaharjan commented on June 25, 2024
2020-11-03 6197.94 -4950.43
我在举一下例子:上面的 是002207前海开源金银珠宝混合C 基金的ctable值,在csv文件上的值是-4950.44,我为了确保同一个文件,改了其他值正常变。我最近打印ctable 后发现这个问题,以前我对于0.1份额的差异,主要以为我同一天几次买而计算产生的误差问题,没有仔细分析,现在发现不仅是这个误差问题,还有以上的问题

from xalpha.

refraction-ray avatar refraction-ray commented on June 25, 2024

非常感谢你这个发现,有时间我会看一下,初步猜想和电脑二进制表示十进制数可能是有关的,也可能是代码纪录交易数据时有逻辑错误,这个是只和数据有关吗。比如如果记录的是 -4950.44 不管哪个基金或者日期,都会变数字

from xalpha.

kaharjan avatar kaharjan commented on June 25, 2024

我也查看了一下其他基金的*.44份额的数据,有些基金没出现这个问题,目前我发现3-4个基金的这种赎回份额在csv和ctable不一致问题,包括*.44,*.45, *.47 等份额上 。 和上面所说的那样 006229中欧医疗创新股票 的 -266.65 变成-266.64,而 002207前海开源金银珠宝混合C的-4950.44 变成 -4950.43

from xalpha.

refraction-ray avatar refraction-ray commented on June 25, 2024

复现该问题,问题根源:

-266.65*100 # -26664.999999999996
int(-226.65*100) = -22664

from xalpha.

kaharjan avatar kaharjan commented on June 25, 2024

也谢谢你,太好了

from xalpha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.