Skip to content

Commit

Permalink
Merge pull request #4861 from rvullriede/develop
Browse files Browse the repository at this point in the history
Kraken: add support for OHLC Streaming (2nd try)
  • Loading branch information
timmolter authored Apr 29, 2024
2 parents ac17bad + 8852cca commit 55071fd
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package info.bitrich.xchangestream.kraken.dto;

import java.math.BigDecimal;
import org.knowm.xchange.kraken.dto.marketdata.KrakenOHLC;

public class KrakenStreamingOhlc extends KrakenOHLC {

private final long etime;

public KrakenStreamingOhlc(long time, long etime, BigDecimal open,
BigDecimal high, BigDecimal low, BigDecimal close,
BigDecimal vwap, BigDecimal volume, long count) {
super(time, open, high, low, close, vwap, volume, count);
this.etime = etime;
}

public long getEtime() {
return this.etime;
}

@Override
public String toString() {

return "KrakenStreamingOhlc [time="
+ this.getTime()
+ ", etime="
+ this.etime
+ ", open="
+ this.getOpen()
+ ", high="
+ this.getHigh()
+ ", low="
+ this.getLow()
+ ", close="
+ this.getClose()
+ ", vwap="
+ this.getVwap()
+ ", volume="
+ this.getVwap()
+ ", count="
+ this.getCount()
+ "]";
}
}

0 comments on commit 55071fd

Please sign in to comment.