Table of Contents

Interface ISupportChangePosition

Namespace
ATAS.DataFeedsCore
Assembly
ATAS.DataFeedsCore.dll

Implemented by a connector that lets the user override the average price of a position it calculates itself.

public interface ISupportChangePosition
Extension Methods

Methods

CanSetPositionAveragePrice(Position)

Checks whether the average price of the position can be changed, i.e. the connector calculates the position's average price itself.

bool CanSetPositionAveragePrice(Position position)

Parameters

position Position

The position.

Returns

bool

SetPositionAveragePrice(Position, decimal)

Sets the average price of the position and publishes the updated position. The change is applied asynchronously.

void SetPositionAveragePrice(Position position, decimal avgPrice)

Parameters

position Position

The position.

avgPrice decimal

The new average price.