Class: Bitbot::Trader::Providers::MtGox::OpenOrdersRequest

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

Overview

POST request to /money/orders

Instance Attribute Summary

Attributes inherited from Request

#client

Instance Method Summary collapse

Methods inherited from Request

#initialize

Constructor Details

This class inherits a constructor from Bitbot::Trader::Request

Instance Method Details

#callArray<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.

Fetches user’s open orders

Returns:



16
17
18
19
20
# File 'lib/bitbot/trader/providers/mt_gox/open_orders_request.rb', line 16

def call
  client.post("money/orders")["data"].map { |raw_order|
    OpenOrderParser.new(raw_order).parse
  }
end