Method: IB::Vertical#to_human

Defined in:
lib/models/ib/vertical.rb

#to_humanObject



91
92
93
94
# File 'lib/models/ib/vertical.rb', line 91

def to_human
  x= [ combo_legs.map(&:weight) , legs.map( &:strike )].transpose
   "<Vertical #{symbol} #{legs.first.right}(#{x.map{|w,strike| "#{w} :#{strike} "}.join( '|+|' )} )[#{Date.parse(legs.first.last_trading_day).strftime("%b %Y")}]>"
end