Class: Bitstamp::Orders
- Inherits:
-
Collection
- Object
- Collection
- Bitstamp::Orders
- Defined in:
- lib/bitstamp/orders.rb
Instance Attribute Summary
Attributes inherited from Collection
#access_token, #model, #module, #name, #path
Instance Method Summary collapse
- #all(options = {}) ⇒ Object
- #buy(options = {}) ⇒ Object
- #create(options = {}) ⇒ Object
- #sell(options = {}) ⇒ Object
Methods inherited from Collection
Constructor Details
This class inherits a constructor from Bitstamp::Collection
Instance Method Details
#all(options = {}) ⇒ Object
3 4 5 |
# File 'lib/bitstamp/orders.rb', line 3 def all( = {}) Bitstamp::Helper.parse_objects! Bitstamp::Net::post('/open_orders').body_str, self.model end |
#buy(options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/bitstamp/orders.rb', line 17 def buy( = {}) .merge!({type: Bitstamp::Order::BUY}) self.create end |