info.bitrich.xchangestream.krakenfutures.dto.KrakenFuturesStreamingOrderBookSnapshotResponse Maven / Gradle / Ivy
The newest version!
package info.bitrich.xchangestream.krakenfutures.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import lombok.Getter;
@Getter
@JsonInclude(JsonInclude.Include.NON_NULL)
public class KrakenFuturesStreamingOrderBookSnapshotResponse {
private final String feed;
private final String product_id;
private final Date timestamp;
private final Long seq;
private final String tickSize;
private final List bids;
private final List asks;
public KrakenFuturesStreamingOrderBookSnapshotResponse(
@JsonProperty("feed") String feed,
@JsonProperty("product_id") String product_id,
@JsonProperty("timestamp") Date timestamp,
@JsonProperty("seq") Long seq,
@JsonProperty("tickSize") String tickSize,
@JsonProperty("bids") List bids,
@JsonProperty("asks") List asks) {
this.feed = feed;
this.product_id = product_id;
this.timestamp = timestamp;
this.seq = seq;
this.tickSize = tickSize;
this.bids = bids;
this.asks = asks;
}
@Getter
public static class KrakenFuturesSnapShotOrder {
private final BigDecimal price;
private final BigDecimal quantity;
public KrakenFuturesSnapShotOrder(
@JsonProperty("price") BigDecimal price, @JsonProperty("qty") BigDecimal quantity) {
this.price = price;
this.quantity = quantity;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy