开发者

ojAlgo library: data mismatch bug?

Recently, I start to use ojAlgo library. You can get more information from http://ojalgo.org/index.html.

However, I have a problem when I try to use that. The problem is the stock date and stock开发者_如何学Python price do not match when I want to retrieve the stock data from yahoo finance.

The following is the Java code snippet.

YahooSymbol ysymbol = new YahooSymbol("BAC");

DateSeries<BigDecimal> ypriceSeries = ysymbol.getPriceSeries();

System.out.println(ypriceSeries.firstKey() + " " + ypriceSeries.firstValue().toString());

The return result is

Wed May 28 17:00:00 PDT 1986 2.89

But I think the result should be

Thu May 29 17:00:00 PDT 1986 2.89

As you can see, the date has offset. This problem affect the whole ypriceSeries result. The date of the corresponding stock price is moving backward by one day.

It made the whole stock data is not correct. Anyone has ideas?

Is it a bug or something else? Thanks.


Why don't you ask this question on the ojAlgo-user mailing list?

https://lists.sourceforge.net/lists/listinfo/ojalgo-user

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜