Skip to content

Commit

Permalink
bitrich-info#448 revew fix - order timestamp more accurate now
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Chertalev committed Dec 4, 2019
1 parent 25566b2 commit 5bd9613
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ public static KrakenPublicOrder extractKrakenPublicOrder(List<String> list) {
return new KrakenPublicOrder(
new BigDecimal(list.get(0)).stripTrailingZeros(),
new BigDecimal(list.get(1)).stripTrailingZeros(),

//TODO: The XChange Kraken orderbook timestamp is a seconds format since epoch.
// But websocket order's timestamp is more accurate. It is required to improve the XChange Kraken for supporting higher precision.
// XChange method to fix: org.knowm.xchange.kraken.KrakenAdapters.adaptOrders
new BigDecimal(list.get(2)).multiply(BIG_DECIMAL_1000).longValue()
);
}
Expand Down

0 comments on commit 5bd9613

Please sign in to comment.