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.
13 14 15 |
# File 'lib/bitex/order.rb', line 13 def self.active Api.private(:GET, '/private/orders/active').map { |response| Api.deserialize(response) } 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.
7 8 9 |
# File 'lib/bitex/order.rb', line 7 def self.all Api.private(:GET, '/private/orders').map { |response| Api.deserialize(response) } end |