Class: Bitbot::Trader::Providers::MtGox::OpenOrderParser

Inherits:
Object
  • Object
show all
Defined in:
lib/bitbot/trader/providers/mt_gox/open_orders_parser.rb

Overview

Parses raw open orders

Instance Method Summary collapse

Instance Method Details

#parseOpenOrder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Makes raw open order hash into OpenOrder object

Returns:



23
24
25
26
27
28
29
30
# File 'lib/bitbot/trader/providers/mt_gox/open_orders_parser.rb', line 23

def parse
  OpenOrder.new(
    id: oid,
    price: price,
    amount: effective_amount,
    bid: type == "bid"
  )
end