
estonlabs.cxtl.exchanges.gateio.api.v4.domain.GateIOTradeResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cxtl Show documentation
Show all versions of cxtl Show documentation
CXTL – Crypto eXchange Trading Library
The newest version!
package estonlabs.cxtl.exchanges.gateio.api.v4.domain;
import estonlabs.cxtl.exchanges.a.specification.domain.Trade;
import lombok.Data;
import java.math.BigDecimal;
@Data
public class GateIOTradeResponse implements Trade {
private String id;
private String createTime;
private String createTimeMs;
private String currencyPair;
private String side;
private String role;
private BigDecimal amount;
private BigDecimal price;
private String orderId;
private String fee;
private String feeCurrency;
private String pointFee;
private String gtFee;
private String amendText;
private String sequenceId;
private String text;
@Override
public double getQuantity() {
return amount.doubleValue();
}
@Override
public double getPrice(){
return price.doubleValue();
}
@Override
public String getSymbol() {
return currencyPair;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy