All Downloads are FREE. Search and download functionalities are using the official Maven repository.

info.bitrich.xchangestream.bitget.dto.response.BitgetWsOrderBookSnapshotNotification Maven / Gradle / Ivy

The newest version!
package info.bitrich.xchangestream.bitget.dto.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import info.bitrich.xchangestream.bitget.dto.response.BitgetWsOrderBookSnapshotNotification.OrderBookData;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.SuperBuilder;
import lombok.extern.jackson.Jacksonized;

@Data
@SuperBuilder(toBuilder = true)
@Jacksonized
public class BitgetWsOrderBookSnapshotNotification extends BitgetWsNotification {

  @Data
  @Builder
  @Jacksonized
  public static class OrderBookData {

    @JsonProperty("asks")
    private List asks;

    @JsonProperty("bids")
    private List bids;

    @JsonProperty("checksum")
    private Long checksum;

    @JsonProperty("ts")
    private Instant timestamp;

    @Data
    @Builder
    @Jacksonized
    @JsonFormat(shape = JsonFormat.Shape.ARRAY)
    public static class PriceSizeEntry {

      private BigDecimal price;

      private BigDecimal size;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy