Class: Bitbot::Trader::Providers::MtGox::OpenOrderParser
- Inherits:
-
Object
- Object
- Bitbot::Trader::Providers::MtGox::OpenOrderParser
- Defined in:
- lib/bitbot/trader/providers/mt_gox/open_orders_parser.rb
Overview
Parses raw open orders
Instance Method Summary collapse
-
#parse ⇒ OpenOrder
private
Makes raw open order hash into OpenOrder object.
Instance Method Details
#parse ⇒ OpenOrder
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
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 |