Class: Bitex::Ask
Overview
An Ask is an order to sell a given order book.
Instance Attribute Summary collapse
-
#created_at ⇒ Time
Time when this Ask was created.
-
#id ⇒ Integer
This Ask’s unique ID.
-
#issuer ⇒ String
The issuer of this order, helps you tell apart orders created from the web UI and the API.
-
#order_book ⇒ Symbol
:btc_usd or :btc_ars.
-
#price ⇒ BigDecimal
Minimum price to charge per unit.
-
#produced_amount ⇒ BigDecimal
Amount of USD produced from this sale.
-
#quantity ⇒ Object
TODO: rever esta documentacion @return [BigDecimal] Quantity of specie to sell in this Ask.
-
#reason ⇒ Object
The cancellation reason of this Ask.
-
#remaining_quantity ⇒ Object
TODO: rever esta documentacion @return [BigDecimal] Quantity of specie left to sell in this Ask.
-
#status ⇒ Object
The status of this Ask in its lifecycle.
Class Method Summary collapse
-
.create!(order_book, quantity, price, wait = false) ⇒ Object
TODO: rever esta documentacion Create a new Ask for selling a Quantity of specie charging no less than Price per each.
Methods inherited from BaseOrder
Instance Attribute Details
#created_at ⇒ Time
Returns Time when this Ask was created.
|
# File 'lib/bitex/ask.rb', line 8
|
#id ⇒ Integer
Returns This Ask’s unique ID.
|
# File 'lib/bitex/ask.rb', line 5
|
#issuer ⇒ String
Returns The issuer of this order, helps you tell apart orders created from the web UI and the API.
|
# File 'lib/bitex/ask.rb', line 46
|
#order_book ⇒ Symbol
Returns :btc_usd or :btc_ars.
|
# File 'lib/bitex/ask.rb', line 11
|
#price ⇒ BigDecimal
Returns Minimum price to charge per unit.
|
# File 'lib/bitex/ask.rb', line 24
|
#produced_amount ⇒ BigDecimal
Returns Amount of USD produced from this sale.
44 45 46 |
# File 'lib/bitex/ask.rb', line 44 def produced_amount @produced_amount end |
#quantity ⇒ Object
TODO: rever esta documentacion
@return [BigDecimal] Quantity of specie to sell in this Ask.
17 18 19 |
# File 'lib/bitex/ask.rb', line 17 def quantity @quantity end |
#reason ⇒ Object
The cancellation reason of this Ask.
-
:not_cancelled Has not been cancelled.
-
:not_enough_funds Not enough funds to place this order.
-
:user_cancelled Cancelled per user’s request.
-
:system_cancelled Bitex cancelled this order, for a good reason.
|
# File 'lib/bitex/ask.rb', line 35
|
#remaining_quantity ⇒ Object
TODO: rever esta documentacion
@return [BigDecimal] Quantity of specie left to sell in this Ask.
22 23 24 |
# File 'lib/bitex/ask.rb', line 22 def remaining_quantity @remaining_quantity end |
#status ⇒ Object
The status of this Ask in its lifecycle.
-
:received queued to check if you have enough funds.
-
:executing available in our ourderbook waiting to be matched.
-
:cancelling To be cancelled as soon as our trading engine unlocks it.
-
:cancelled no further executed. May have some Remaining Quantity.
-
:completed Fully executed, Remaining Quantity should be 0.
|
# File 'lib/bitex/ask.rb', line 27
|
Class Method Details
.create!(order_book, quantity, price, wait = false) ⇒ Object
TODO: rever esta documentacion Create a new Ask for selling a Quantity of specie charging no less than Price per each.
61 62 63 |
# File 'lib/bitex/ask.rb', line 61 def self.create!(order_book, quantity, price, wait = false) super end |