Skip to content

Commit e95274f

Browse files
committed
add taker and liquidation members to Trade model
1 parent d7f6527 commit e95274f

File tree

1 file changed

+19
-1
lines changed
  • src/main/java/com/cryptomarket/sdk/models

1 file changed

+19
-1
lines changed

src/main/java/com/cryptomarket/sdk/models/Trade.java

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ public class Trade {
1010
private String side;
1111
private String fee;
1212
private String timestamp;
13+
private boolean liquidation;
14+
private boolean taker;
1315

1416
public long getId() {
1517
return id;
@@ -19,6 +21,22 @@ public void setId(long id) {
1921
this.id = id;
2022
}
2123

24+
public boolean isTaker() {
25+
return taker;
26+
}
27+
28+
public void setTaker(boolean taker) {
29+
this.taker = taker;
30+
}
31+
32+
public boolean isLiquidation() {
33+
return liquidation;
34+
}
35+
36+
public void setLiquidation(boolean liquidation) {
37+
this.liquidation = liquidation;
38+
}
39+
2240
public String getClientOrderId() {
2341
return clientOrderId;
2442
}
@@ -87,7 +105,7 @@ public void setTimestamp(String timestamp) {
87105
public String toString() {
88106
return "Trade [clientOrderId=" + clientOrderId + ", fee=" + fee + ", id=" + id + ", orderId=" + orderId
89107
+ ", price=" + price + ", quantity=" + quantity + ", side=" + side + ", symbol=" + symbol
90-
+ ", timestamp=" + timestamp + "]";
108+
+ ", timestamp=" + timestamp + ", liquidation=" + liquidation + ", taker=" + taker +"]";
91109
}
92110

93111
}

0 commit comments

Comments
 (0)