Class: IGMarkets::DealingPlatform::SprintMarketPositionMethods::SprintMarketPositionCreateAttributes

Inherits:
Model
  • Object
show all
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

#attributes

Instance Method Summary collapse

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

#directionSymbol

The direction attribute.

Returns:

  • (Symbol)


52
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 52

attribute :direction, Symbol, allowed_values: [:buy, :sell]

#epicString

The epic attribute.

Returns:

  • (String)


53
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 53

attribute :epic, String, regex: Regex::EPIC

#expiry_periodSymbol

The expiry_period attribute.

Returns:

  • (Symbol)


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]

#sizeFloat

The size attribute.

Returns:

  • (Float)


56
# File 'lib/ig_markets/dealing_platform/sprint_market_position_methods.rb', line 56

attribute :size, Float