Class: BinanceClient::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/binance_client/models/order.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_quantityObject (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_quantityObject (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_idObject (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

#sideObject (readonly)

Returns the value of attribute side.



7
8
9
# File 'lib/binance_client/models/order.rb', line 7

def side
  @side
end

#symbolObject (readonly)

Returns the value of attribute symbol.



3
4
5
# File 'lib/binance_client/models/order.rb', line 3

def symbol
  @symbol
end