com.xeiam.xchange.mexbt.dto.account.MeXBTTradeResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-mexbt Show documentation
Show all versions of xchange-mexbt Show documentation
XChange implementation for the Mexican Bitcoin Exchange.
The newest version!
package com.xeiam.xchange.mexbt.dto.account;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.xeiam.xchange.mexbt.dto.MeXBTResponse;
import com.xeiam.xchange.mexbt.dto.TickDeserializer;
public class MeXBTTradeResponse extends MeXBTResponse {
private final Date dateTimeUtc;
private final String ins;
private final long startIndex;
private final int count;
private final MeXBTUserTrade[] trades;
public MeXBTTradeResponse(@JsonProperty("isAccepted") boolean isAccepted, @JsonProperty("rejectReason") String rejectReason,
@JsonProperty("dateTimeUtc") @JsonDeserialize(using = TickDeserializer.class) Date dateTimeUtc, @JsonProperty("ins") String ins,
@JsonProperty("startIndex") long startIndex, @JsonProperty("count") int count, @JsonProperty("trades") MeXBTUserTrade[] trades) {
super(isAccepted, rejectReason);
this.dateTimeUtc = dateTimeUtc;
this.ins = ins;
this.startIndex = startIndex;
this.count = count;
this.trades = trades;
}
public Date getDateTimeUtc() {
return dateTimeUtc;
}
public String getIns() {
return ins;
}
public long getStartIndex() {
return startIndex;
}
public int getCount() {
return count;
}
public MeXBTUserTrade[] getTrades() {
return trades;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy