@@ -0,0 +1,1846 @@
+package org.knowm.xchange.okcoin.v3.dto.marketdata;%0A%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0Aimport java.math.BigDecimal;%0Aimport java.util.Arrays;%0A%0Apublic class OkexOrderBook %7B%0A%0A  private final String timestamp;%0A  private final OkexOrderBookEntry%5B%5D bids;%0A  private final OkexOrderBookEntry%5B%5D asks;%0A%0A  public OkexOrderBook(%0A      @JsonProperty(%22timestamp%22) String timestamp,%0A      @JsonProperty(%22bids%22) Object%5B%5D%5B%5D bids,%0A      @JsonProperty(%22asks%22) Object%5B%5D%5B%5D asks) %7B%0A%0A    this.timestamp = timestamp;%0A%0A    if (bids != null && bids.length %3E 0) %7B%0A      this.bids = new OkexOrderBookEntry%5Bbids.length%5D;%0A      for (int i = 0; i %3C bids.length; i++) %7B%0A        this.bids%5Bi%5D = convertToBookEntry(bids%5Bi%5D);%0A      %7D%0A    %7D else %7B%0A      this.bids = null;%0A    %7D%0A%0A    if (asks != null && asks.length %3E 0) %7B%0A      this.asks = new OkexOrderBookEntry%5Basks.length%5D;%0A      for (int i = 0; i %3C asks.length; i++) %7B%0A        this.asks%5Bi%5D = convertToBookEntry(asks%5Bi%5D);%0A      %7D%0A    %7D else %7B%0A      this.asks = null;%0A    %7D%0A  %7D%0A%0A  private static OkexOrderBookEntry convertToBookEntry(Object%5B%5D dataObject) %7B%0A%0A    if (dataObject != null && dataObject.length == 3) %7B%0A      BigDecimal price = new BigDecimal((String) dataObject%5B0%5D);%0A      BigDecimal volume = new BigDecimal((String) dataObject%5B1%5D);%0A      String numberOfOrders = (String) dataObject%5B2%5D;%0A      return new OkexOrderBookEntry(price, volume, numberOfOrders);%0A    %7D%0A    return null;%0A  %7D%0A%0A  public String getTimestamp() %7B%0A%0A    return timestamp;%0A  %7D%0A%0A  public OkexOrderBookEntry%5B%5D getBids() %7B%0A%0A    return bids;%0A  %7D%0A%0A  public OkexOrderBookEntry%5B%5D getAsks() %7B%0A%0A    return asks;%0A  %7D%0A%0A  @Override%0A  public String toString() %7B%0A    return %22OkexOrderBook %5Btimestamp=%22%0A        + timestamp%0A        + %22, bids=%22%0A        + Arrays.toString(bids)%0A        + %22, asks=%22%0A        + Arrays.toString(asks)%0A        + %22%5D%22;%0A  %7D%0A%7D%0A

Order Book implementation