-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4861 from rvullriede/develop
Kraken: add support for OHLC Streaming (2nd try)
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...tream-kraken/src/main/java/info/bitrich/xchangestream/kraken/dto/KrakenStreamingOhlc.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
+ "]"; | ||
} | ||
} |