lib/ig_markets/dealing_platform/sprint_market_position_methods.rb
def create(attributes)
        body = RequestBodyFormatter.format SprintMarketPositionCreateAttributes.new(attributes)

        @dealing_platform.session.post('positions/sprintmarkets', body).fetch :deal_reference
      end
# Creates a new sprint market position.
#
# @param [Hash] attributes The attributes for the new sprint market position.
# @option attributes [String] :epic The EPIC for the instrument to create a sprint market position for. Required.
# @option attributes [:buy, :sell] :direction The position direction. Required.
# @option attributes [:one_minute, :two_minutes, :five_minutes, :twenty_minutes, :sixty_minutes] :expiry_period
#                    The expiry period. Required.
# @option attributes [Float] :size The size of the sprint market position to create. Required.
#
# @return [String] The resulting deal reference, use {DealingPlatform#deal_confirmation} to check the result of
#         the sprint market position creation.
Creates a new sprint market position.
Creates a new sprint market position .
def create(attributes)
        body = RequestBodyFormatter.format SprintMarketPositionCreateAttributes.new(attributes)
        @dealing_platform.session.post('positions/sprintmarkets', body).fetch :deal_reference
      end
def create ( attributes ) body = RequestBodyFormatter . format SprintMarketPositionCreateAttributes . new ( attributes ) @dealing_platform . session . post ( 'positions/sprintmarkets' , body ) . fetch :deal_reference end
Creates a new sprint market position.
Creates a new sprint market position .
The resulting deal reference, use {DealingPlatform#deal_confirmation} to check the result of the sprint market position creation.
The resulting deal reference use { DealingPlatform#deal_confirmation } to check the result of the sprint market position creation .
String
attributes
:size The size of the sprint market position to create. Required.
: size The size of the sprint market position to create . Required .
attributes The attributes for the new sprint market position.
attributes The attributes for the new sprint market position .