Class: Bitex::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/bitex/order.rb

Overview

Convenience class for fetching heterogeneous lists with all your Bids and Asks.

Class Method Summary collapse

Class Method Details

.activeArray<Bitex::Bid, Bitex::Ask>

Returns an heterogeneous array with all your active orders.

Returns:

See Also:



242
243
244
# File 'lib/bitex/order.rb', line 242

def self.active
  Api.private(:GET, '/private/orders/active').collect{|o| Api.deserialize(o) }
end

.allArray<Bitex::Bid, Bitex::Ask>

Returns an heterogeneous array with all your active orders and any other order that was active in the last 2 hours.

Returns:

  • (Array<Bitex::Bid, Bitex::Ask>)

    Returns an heterogeneous array with all your active orders and any other order that was active in the last 2 hours.

See Also:



235
236
237
# File 'lib/bitex/order.rb', line 235

def self.all
  Api.private(:GET, '/private/orders').collect{|o| Api.deserialize(o) }
end