package org.knowm.xchange.okcoin.v3.dto.marketdata;

import java.math.BigDecimal;

public class OkexOrderBookEntry {

  private final BigDecimal price;
  private final BigDecimal volume;
  private final String numOrdersOnLevel;

  public OkexOrderBookEntry(BigDecimal price, BigDecimal volume, String numOrdersOnLevel) {

    this.price = price;
    this.volume = volume;
    this.numOrdersOnLevel = numOrdersOnLevel;
  }

  public BigDecimal getPrice() {

    return price;
  }

  public BigDecimal getVolume() {

    return volume;
  }

  public String getNumOrdersOnLevel() {
    return numOrdersOnLevel;
  }

  @Override
  public String toString() {
    return "OkexOrderBookEntry [price=" + price + ", volume=" + volume + "]";
  }
}

@@ -57,30 +57,259 @@
 ort 
-java.math.BigDecimal;%0A
+com.fasterxml.jackson.annotation.JsonCreator;%0Aimport com.fasterxml.jackson.annotation.JsonFormat;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0Aimport java.math.BigDecimal;%0Aimport lombok.Data;%0A%0A@Data%0A@JsonFormat(shape = JsonFormat.Shape.ARRAY)
 %0Apub
@@ -342,38 +342,32 @@
 ry %7B%0A%0A  private 
-final 
 BigDecimal price
@@ -378,22 +378,16 @@
 private 
-final 
 BigDecim
@@ -411,14 +411,8 @@
 ate 
-final 
 Stri
@@ -433,16 +433,31 @@
 Level;%0A%0A
+  @JsonCreator%0A
   public
@@ -480,44 +480,144 @@
 try(
-BigDecimal price, BigDecimal volume,
+%0A      @JsonProperty(%22price%22) BigDecimal price,%0A      @JsonProperty(%22volume%22) BigDecimal volume,%0A      @JsonProperty(%22numOrdersOnLevel%22)
  Str
@@ -1016,21 +1016,50 @@
 ce=%22
- + price + %22,
+%0A        + price%0A        + %22,%22%0A        + %22
  vol
@@ -1063,16 +1063,24 @@
 volume=%22
+%0A       
  + volum
@@ -1080,16 +1080,96 @@
 + volume
+%0A        + %22,%22%0A        + %22 numOrdersOnLevel=%22%0A        + numOrdersOnLevel%0A       
  + %22%5D%22;%0A

Order Book implementation