forked from bitrich-info/xchange-stream
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bitrich-info#446 Bitstamp v2 not getting trades - fixed
- Loading branch information
Pavel Chertalev
committed
Nov 27, 2019
1 parent
8133322
commit c20a7d4
Showing
5 changed files
with
20 additions
and
63 deletions.
There are no files selected for viewing
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
30 changes: 0 additions & 30 deletions
30
...nge-bitstamp/src/main/java/info/bitrich/xchangestream/bitstamp/dto/BitstampOrderBook.java
This file was deleted.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
...p/src/main/java/info/bitrich/xchangestream/bitstamp/dto/BitstampWebSocketTransaction.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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package info.bitrich.xchangestream.bitstamp.dto; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import org.knowm.xchange.bitstamp.dto.marketdata.BitstampTransaction; | ||
|
||
import java.math.BigDecimal; | ||
|
||
public class BitstampWebSocketTransaction extends BitstampTransaction { | ||
public BitstampWebSocketTransaction(@JsonProperty("datetime") long date, @JsonProperty("id") long tid, @JsonProperty("price") BigDecimal price, | ||
public BitstampWebSocketTransaction(@JsonProperty("microtimestamp") BigDecimal microtimestamp, @JsonProperty("id") long tid, @JsonProperty("price") BigDecimal price, | ||
@JsonProperty("amount") BigDecimal amount, @JsonProperty("order_type") int type) { | ||
super(date, tid, price, amount, type); | ||
|
||
super(microtimestamp.divide(new BigDecimal(1000), BigDecimal.ROUND_DOWN).longValue(), | ||
tid, price, amount, type); | ||
} | ||
} |
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
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