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, defined_attribute_names, from, #initialize, #inspect

Constructor Details

This class inherits a constructor from IGMarkets::Model

Instance Method Details

#directionSymbol

The direction attribute.

Returns:

  • (Symbol)


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

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

#epicString

The epic attribute.

Returns:

  • (String)


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

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

#expiry_periodSymbol

The expiry_period attribute.

Returns:

  • (Symbol)


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]

#sizeFloat

The size attribute.

Returns:

  • (Float)


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

attribute :size, Float