Class: IB::Messages::Incoming::TickOption

Inherits:
Object
  • Object
show all
Defined in:
lib/ib/messages/incoming/ticks.rb

Instance Method Summary collapse

Instance Method Details

#greeksObject



141
142
143
# File 'lib/ib/messages/incoming/ticks.rb', line 141

def greeks
 { delta: delta, gamma: gamma, vega: vega, theta: theta }
end

#greeks?Boolean

Returns:

  • (Boolean)


150
151
152
# File 'lib/ib/messages/incoming/ticks.rb', line 150

def greeks? 
 greeks.values.any? &:present?
end

#ivObject



145
146
147
# File 'lib/ib/messages/incoming/ticks.rb', line 145

def iv
 implied_volatility
end