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.
222 223 224 |
# File 'lib/bitex/order.rb', line 222 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.
215 216 217 |
# File 'lib/bitex/order.rb', line 215 def self.all Api.private(:GET, '/private/orders').collect{|o| Api.deserialize(o) } end |