You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: order_book.rb
    path of file: ./repos/cryptoexchange/lib/cryptoexchange/exchanges/wazirx/services
    
    the code of the file until where you have to start completion: module Cryptoexchange::Exchanges
  module Wazirx
    module Services
      class OrderBook < Cryptoe
    
        def adapt(output, market_pair)
          order_book = Cryptoexchange::Models::OrderBook.new

          order_book.base      = market_pair.base
          order_book.target    = market_pair.target
          order_book.market    = Wazirx::Market::NAME
          order_book.asks      = adapt_orders(output['asks'])
          order_book.bids      = adapt_orders(output['bids'])
          order_book.timestamp = output['timestamp']
          order_book.payload   = output
          order_book
        end