Skip to content
This repository was archived by the owner on Jun 8, 2020. It is now read-only.
This repository was archived by the owner on Jun 8, 2020. It is now read-only.

[kraken] Exchange orderbook timestamp parse incorrect! #448

@sudo168

Description

@sudo168

The Kraken exchange orderbook timestamp is a seconds format since epoch. So need to multiply 1000. But this logic appear in two places:

One in:
info.bitrich.xchangestream.kraken.KrakenOrderBookUtils

private static long timestampToMs(String timestamp) {
return new BigDecimal(timestamp).multiply(new BigDecimal(1000)).longValue();
}

The other in:
org.knowm.xchange.kraken.KrakenAdapters.adaptOrders(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrequired-for-xchange-mergeThis issue has been identified as needing fixing before the project can be merged with XChange.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions