Method: Cryptoexchange::Exchanges::Gate::Services::OrderBook#adapt_orders

Defined in:
lib/cryptoexchange/exchanges/gate/services/order_book.rb

#adapt_orders(orders) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/cryptoexchange/exchanges/gate/services/order_book.rb', line 33

def adapt_orders(orders)
  orders.collect do |order_entry|
    price, amount = order_entry
    Cryptoexchange::Models::Order.new(price: price,
                                      amount: amount,
                                      timestamp: Time.now.to_i)
  end
end