info.bitrich.xchangestream.bitfinex.dto.BitfinexWebSocketAuthPreTrade Maven / Gradle / Ivy
package info.bitrich.xchangestream.bitfinex.dto;
import java.math.BigDecimal;
import java.util.Objects;
public class BitfinexWebSocketAuthPreTrade {
private final long id;
private final String pair;
private final long mtsCreate;
private final long orderId;
private final BigDecimal execAmount;
private final BigDecimal execPrice;
private final String orderType;
private final BigDecimal orderPrice;
private final long maker;
public BitfinexWebSocketAuthPreTrade(
long id,
String pair,
long mtsCreate,
long orderId,
BigDecimal execAmount,
BigDecimal execPrice,
String orderType,
BigDecimal orderPrice,
long maker) {
this.id = id;
this.pair = pair;
this.mtsCreate = mtsCreate;
this.orderId = orderId;
this.execAmount = execAmount;
this.execPrice = execPrice;
this.orderType = orderType;
this.orderPrice = orderPrice;
this.maker = maker;
}
public long getId() {
return id;
}
public String getPair() {
return pair;
}
public long getMtsCreate() {
return mtsCreate;
}
public long getOrderId() {
return orderId;
}
public BigDecimal getExecAmount() {
return execAmount;
}
public BigDecimal getExecPrice() {
return execPrice;
}
public String getOrderType() {
return orderType;
}
public BigDecimal getOrderPrice() {
return orderPrice;
}
public long getMaker() {
return maker;
}
@Override
public String toString() {
return "BitfinexWebSocketAuthPreTrade{"
+ "id="
+ id
+ ", pair='"
+ pair
+ '\''
+ ", mtsCreate="
+ mtsCreate
+ ", orderId="
+ orderId
+ ", execAmount="
+ execAmount
+ ", execPrice="
+ execPrice
+ ", orderType='"
+ orderType
+ '\''
+ ", orderPrice="
+ orderPrice
+ ", maker="
+ maker
+ '}';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof BitfinexWebSocketAuthPreTrade)) return false;
BitfinexWebSocketAuthPreTrade that = (BitfinexWebSocketAuthPreTrade) o;
return getId() == that.getId()
&& getMtsCreate() == that.getMtsCreate()
&& getOrderId() == that.getOrderId()
&& getMaker() == that.getMaker()
&& Objects.equals(getPair(), that.getPair())
&& Objects.equals(getExecAmount(), that.getExecAmount())
&& Objects.equals(getExecPrice(), that.getExecPrice())
&& Objects.equals(getOrderType(), that.getOrderType())
&& Objects.equals(getOrderPrice(), that.getOrderPrice());
}
@Override
public int hashCode() {
return Objects.hash(
getId(),
getPair(),
getMtsCreate(),
getOrderId(),
getExecAmount(),
getExecPrice(),
getOrderType(),
getOrderPrice(),
getMaker());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy