Class: IB::Datatypes::Execution

Inherits:
AbstractDatum show all
Defined in:
lib/ib-ruby/datatypes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractDatum

#initialize

Constructor Details

This class inherits a constructor from IB::Datatypes::AbstractDatum

Instance Attribute Details

#account_numberObject

Returns the value of attribute account_number.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def 
  @account_number
end

#client_idObject

Returns the value of attribute client_id.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def client_id
  @client_id
end

#exchangeObject

Returns the value of attribute exchange.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def exchange
  @exchange
end

#exec_idObject

Returns the value of attribute exec_id.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def exec_id
  @exec_id
end

#liquidationObject

Returns the value of attribute liquidation.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def liquidation
  @liquidation
end

#order_idObject

Returns the value of attribute order_id.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def order_id
  @order_id
end

#perm_idObject

Returns the value of attribute perm_id.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def perm_id
  @perm_id
end

#priceObject

Returns the value of attribute price.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def price
  @price
end

#sharesObject

Returns the value of attribute shares.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def shares
  @shares
end

#sideObject

Returns the value of attribute side.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def side
  @side
end

#timeObject

Returns the value of attribute time.



327
328
329
# File 'lib/ib-ruby/datatypes.rb', line 327

def time
  @time
end

Instance Method Details

#initObject



329
330
331
332
333
334
335
336
337
338
# File 'lib/ib-ruby/datatypes.rb', line 329

def init
  super

  @order_id = 0
  @client_id = 0
  @shares = 0
  @price = 0
  @perm_id = 0
  @liquidation =0
end