class ZaifAdapters {

  private static Logger logger = LoggerFactory.getLogger(ZaifAdapters.class);

  public ZaifAdapters() {}

  public static OrderBook adaptOrderBook(ZaifFullBook book, CurrencyPair currencyPair) {

    List<LimitOrder> asks = toLimitOrderList(book.getAsks(), Order.OrderType.ASK, currencyPair);
    List<LimitOrder> bids = toLimitOrderList(book.getBids(), Order.OrderType.BID, currencyPair);

    return new OrderBook(null, asks, bids);
  }

  private static List<LimitOrder> toLimitOrderList(
      ZaifFullBookTier[] levels, Order.OrderType orderType, CurrencyPair currencyPair) {<FILL_FUNCTION_BODY>}

  public static ExchangeMetaData adaptMetadata(List<ZaifMarket> markets) {
    Map<Instrument, InstrumentMetaData> pairMeta = new HashMap<>();
    for (ZaifMarket zaifMarket : markets) {
      pairMeta.put(zaifMarket.getName(), new InstrumentMetaData.Builder().build());
    }
    return new ExchangeMetaData(pairMeta, null, null, null, null);
  }
}


    List<LimitOrder> allLevels = new ArrayList<>();

    if (levels != null) {
      for (ZaifFullBookTier tier : levels) {
        allLevels.add(
            new LimitOrder(orderType, tier.getVolume(), currencyPair, "", null, tier.getPrice()));
      }
    }

    return allLevels;
  
<no_super_class>