Class: IGMarkets::DealingPlatform::SprintMarketPositionMethods::SprintMarketPositionCreateAttributes
- Inherits:
-
Model
- Object
- Model
- IGMarkets::DealingPlatform::SprintMarketPositionMethods::SprintMarketPositionCreateAttributes
- Defined in:
- lib/ig_markets/dealing_platform/sprint_market_position_methods.rb
Overview
Internal model used by #create
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#direction ⇒ Symbol
The direction attribute.
-
#epic ⇒ String
The epic attribute.
-
#expiry_period ⇒ Symbol
The expiry_period attribute.
-
#size ⇒ Float
The size attribute.
Methods inherited from Model
#==, allowed_values, attribute, attribute_type, defined_attribute_names, #initialize, #initialize_copy, #inspect
Constructor Details
This class inherits a constructor from IGMarkets::Model
Instance Method Details
#direction ⇒ Symbol
The direction attribute.
52 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 52 attribute :direction, Symbol, allowed_values: [:buy, :sell] |
#epic ⇒ String
The epic attribute.
53 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 53 attribute :epic, String, regex: Regex::EPIC |
#expiry_period ⇒ Symbol
The expiry_period attribute.
54 55 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 54 attribute :expiry_period, Symbol, allowed_values: [ :one_minute, :two_minutes, :five_minutes, :twenty_minutes, :sixty_minutes] |
#size ⇒ Float
The size attribute.
56 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 56 attribute :size, Float |