Class: Options::Strategies::Straddle
- Defined in:
- lib/options/strategies.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Strategy
#ce_increment, #default_lot_size, #increment, #index_name, #input_lot_size, #legs, #option_type_klasses, #options_data, #pe_increment, #strike_price
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Straddle
constructor
A new instance of Straddle.
Methods inherited from Strategy
#construct, #long=, #lot_size=, #merge_legs, #parse_option_type_klasses, #short=, #to_hash, #to_json
Constructor Details
#initialize(options = {}) ⇒ Straddle
Returns a new instance of Straddle.
103 104 105 106 107 |
# File 'lib/options/strategies.rb', line 103 def initialize(={}) super() = @option_type_klasses = {CEOption => [:strike_price], PEOption => [:strike_price]} end |