Class: BinanceClient::Order
- Inherits:
-
Object
- Object
- BinanceClient::Order
- Defined in:
- lib/binance_client/models/order.rb
Instance Attribute Summary collapse
-
#cummulative_quote_quantity ⇒ Object
readonly
Returns the value of attribute cummulative_quote_quantity.
-
#executed_quantity ⇒ Object
readonly
Returns the value of attribute executed_quantity.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#side ⇒ Object
readonly
Returns the value of attribute side.
-
#symbol ⇒ Object
readonly
Returns the value of attribute symbol.
Instance Method Summary collapse
-
#initialize(symbol:, executed_quantity:, cummulative_quote_quantity:, order_id:, side:) ⇒ Order
constructor
A new instance of Order.
Constructor Details
#initialize(symbol:, executed_quantity:, cummulative_quote_quantity:, order_id:, side:) ⇒ Order
Returns a new instance of Order.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/binance_client/models/order.rb', line 9 def initialize( symbol:, executed_quantity:, cummulative_quote_quantity:, order_id:, side: ) @symbol = symbol @executed_quantity = executed_quantity @cummulative_quote_quantity = cummulative_quote_quantity @order_id = order_id @side = side end |
Instance Attribute Details
#cummulative_quote_quantity ⇒ Object (readonly)
Returns the value of attribute cummulative_quote_quantity.
5 6 7 |
# File 'lib/binance_client/models/order.rb', line 5 def cummulative_quote_quantity @cummulative_quote_quantity end |
#executed_quantity ⇒ Object (readonly)
Returns the value of attribute executed_quantity.
4 5 6 |
# File 'lib/binance_client/models/order.rb', line 4 def executed_quantity @executed_quantity end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
6 7 8 |
# File 'lib/binance_client/models/order.rb', line 6 def order_id @order_id end |
#side ⇒ Object (readonly)
Returns the value of attribute side.
7 8 9 |
# File 'lib/binance_client/models/order.rb', line 7 def side @side end |
#symbol ⇒ Object (readonly)
Returns the value of attribute symbol.
3 4 5 |
# File 'lib/binance_client/models/order.rb', line 3 def symbol @symbol end |