Class: Bitstamp::Order
Constant Summary collapse
- MARKET_ORDER =
:market- LIMIT_ORDER =
:limit_order- BUY =
0- SELL =
1
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#datetime ⇒ Object
Returns the value of attribute datetime.
-
#error ⇒ Object
Returns the value of attribute error.
-
#id ⇒ Object
Returns the value of attribute id.
-
#message ⇒ Object
Returns the value of attribute message.
-
#price ⇒ Object
Returns the value of attribute price.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Methods inherited from Model
#attributes, #attributes=, #initialize
Constructor Details
This class inherits a constructor from Bitstamp::Model
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
86 87 88 |
# File 'lib/bitstamp/orders.rb', line 86 def amount @amount end |
#datetime ⇒ Object
Returns the value of attribute datetime.
86 87 88 |
# File 'lib/bitstamp/orders.rb', line 86 def datetime @datetime end |
#error ⇒ Object
Returns the value of attribute error.
87 88 89 |
# File 'lib/bitstamp/orders.rb', line 87 def error @error end |
#id ⇒ Object
Returns the value of attribute id.
86 87 88 |
# File 'lib/bitstamp/orders.rb', line 86 def id @id end |
#message ⇒ Object
Returns the value of attribute message.
87 88 89 |
# File 'lib/bitstamp/orders.rb', line 87 def end |
#price ⇒ Object
Returns the value of attribute price.
86 87 88 |
# File 'lib/bitstamp/orders.rb', line 86 def price @price end |
#reason ⇒ Object
Returns the value of attribute reason.
87 88 89 |
# File 'lib/bitstamp/orders.rb', line 87 def reason @reason end |
#status ⇒ Object
Returns the value of attribute status.
86 87 88 |
# File 'lib/bitstamp/orders.rb', line 86 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
86 87 88 |
# File 'lib/bitstamp/orders.rb', line 86 def type @type end |
Instance Method Details
#cancel! ⇒ Object
89 90 91 |
# File 'lib/bitstamp/orders.rb', line 89 def cancel! Bitstamp::Net.post('/cancel_order', {id: self.id}).body end |