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
positionPositionThe 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
positionPositionThe position.
avgPricedecimalThe new average price.