class Bitex::Order
Convenience class for fetching heterogeneous lists with all your Bids and Asks.
Public Class Methods
active()
click to toggle source
@return [Array<Bitex::Bid, Bitex::Ask>] Returns an heterogeneous array with all your active orders. @see bitex.la/developers#active-orders
# File lib/bitex/order.rb, line 13 def self.active Api.private(:GET, '/private/orders/active').map { |response| Api.deserialize(response) } end
all()
click to toggle source
@return [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 bitex.la/developers#orders
# File lib/bitex/order.rb, line 7 def self.all Api.private(:GET, '/private/orders').map { |response| Api.deserialize(response) } end