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

Commit

Permalink
use double to prevent loss of time precision (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-allen authored and dozd committed Mar 6, 2018
1 parent 9bf507b commit e726986
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public BitfinexTicker toBitfinexTicker() {
BigDecimal high = new BigDecimal(tickerArr[8]);
BigDecimal last = new BigDecimal(tickerArr[6]);
// Xchange-bitfinex adapter expects the timestamp to be seconds since Epoch.
float timestamp = System.currentTimeMillis() / 1000;
double timestamp = System.currentTimeMillis() / 1000;
BigDecimal volume = new BigDecimal(tickerArr[7]);

return new BitfinexTicker(mid, bid, ask, low, high, last, timestamp, volume);
Expand Down

0 comments on commit e726986

Please sign in to comment.