[Kraken] KrakenStreamingAdapters.adaptOrderbookMessage always sets lastTime to 1/1/1970
See original GitHub issueThere is a bug in KrakenStreamingAdapters.adaptOrderbookMessage
the lastTime
value is never updated and this results in always returning same value which is epoch time = 0.
line 60:
final AtomicReference<Date> lastTime = new AtomicReference<>(Date.from(Instant.EPOCH));
line 91:
return new OrderBook(lastTime.get(), Lists.newArrayList(asks), Lists.newArrayList(bids), true);
There are 2 options I see as a potential fix:
- Set time equal to latest timestamp observed in the individual orders
- Or, Set time to “current time”
ping @nielsdraaisma
This affects current develop
branch
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would like to fix this issue. PR should be ready this week.
Up vote! i see the Timestamp passed, and then get lost