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, defined_attribute_names, from, #initialize, #inspect
Constructor Details
This class inherits a constructor from IGMarkets::Model
Instance Method Details
#direction ⇒ Symbol
The direction attribute.
38 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 38 attribute :direction, Symbol, allowed_values: [:buy, :sell] |
#epic ⇒ String
The epic attribute.
39 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 39 attribute :epic, String, regex: Regex::EPIC |
#expiry_period ⇒ Symbol
The expiry_period attribute.
40 41 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 40 attribute :expiry_period, Symbol, allowed_values: [ :one_minute, :two_minutes, :five_minutes, :twenty_minutes, :sixty_minutes] |
#size ⇒ Float
The size attribute.
42 |
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 42 attribute :size, Float |