class BitflyerMarketDataService extends BitflyerMarketDataServiceRaw
    implements MarketDataService {
  /**
   * Constructor
   *
   * @param exchange baseExchange
   */
  public BitflyerMarketDataService(Exchange exchange) {
    super(exchange);
  }

  @Override
  public Ticker getTicker(CurrencyPair currencyPair, Object... args) throws IOException {
    BitflyerTicker ticker = getTicker(currencyPair.base + "_" + currencyPair.counter);
    return BitflyerAdapters.adaptTicker(ticker, currencyPair);
  }

  @Override
  public OrderBook getOrderBook(CurrencyPair currencyPair, Object... args) throws IOException {<FILL_FUNCTION_BODY>}
}

    BitflyerOrderbook orderbook = getOrderbook(currencyPair.base + "_" + currencyPair.counter);
    List<LimitOrder> bids =
        orderbook.getBids().stream()
            .map(
                e ->
                    new LimitOrder(
                        Order.OrderType.BID, e.getSize(), currencyPair, null, null, e.getPrice()))
            .collect(Collectors.toList());
    List<LimitOrder> asks =
        orderbook.getAsks().stream()
            .map(
                e ->
                    new LimitOrder(
                        Order.OrderType.ASK, e.getSize(), currencyPair, null, null, e.getPrice()))
            .collect(Collectors.toList());
    return new OrderBook(null, asks, bids);
  
<methods>public void <init>(org.knowm.xchange.Exchange) ,public List<org.knowm.xchange.bitflyer.dto.account.BitflyerMarket> getMarkets() throws java.io.IOException,public org.knowm.xchange.bitflyer.dto.marketdata.BitflyerOrderbook getOrderbook() throws java.io.IOException,public org.knowm.xchange.bitflyer.dto.marketdata.BitflyerOrderbook getOrderbook(java.lang.String) throws java.io.IOException,public org.knowm.xchange.bitflyer.dto.marketdata.BitflyerTicker getTicker() throws java.io.IOException,public org.knowm.xchange.bitflyer.dto.marketdata.BitflyerTicker getTicker(java.lang.String) throws java.io.IOException<variables>