Class: Bitex::Order
- Inherits:
-
Object
- Object
- Bitex::Order
- Defined in:
- lib/bitex/order.rb
Overview
Convenience class for fetching heterogeneous lists with all your Bids and Asks.
Class Method Summary collapse
-
.active ⇒ Array<Bitex::Bid, Bitex::Ask>
Returns an heterogeneous array with all your active orders.
-
.all ⇒ 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.
Class Method Details
.active ⇒ Array<Bitex::Bid, Bitex::Ask>
Returns an heterogeneous array with all your active orders.
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 |
.all ⇒ 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.
235 236 237 |
# File 'lib/bitex/order.rb', line 235 def self.all Api.private(:GET, '/private/orders').collect{|o| Api.deserialize(o) } end |