ATAS
Loading...
Searching...
No Matches
ATAS.DataFeedsCore.PositionTradesQueue Class Reference

Public Member Functions

 PositionTradesQueue (ILoggerSource logger, Portfolio portfolio, Security security, decimal openVolume)
 
 PositionTradesQueue (ILoggerSource logger, Position position)
 
void Add (MyTrade newTrade)
 
void AddTrade (bool isBuy, decimal price, decimal volume)
 
void AddTrade (decimal price, decimal volume)
 
bool CalculateAveragePrice (decimal volume, bool checkTotalVolume, out decimal averagePrice)
 
void Clear ()
 
decimal decimal avgPrice GetPosition ()
 

Public Attributes

decimal volume
 

Properties

decimal Volume [get]
 

Constructor & Destructor Documentation

◆ PositionTradesQueue() [1/2]

ATAS.DataFeedsCore.PositionTradesQueue.PositionTradesQueue ( ILoggerSource  logger,
Portfolio  portfolio,
Security  security,
decimal  openVolume 
)

◆ PositionTradesQueue() [2/2]

ATAS.DataFeedsCore.PositionTradesQueue.PositionTradesQueue ( ILoggerSource  logger,
Position  position 
)

Member Function Documentation

◆ Add()

void ATAS.DataFeedsCore.PositionTradesQueue.Add ( MyTrade  newTrade)

◆ AddTrade() [1/2]

void ATAS.DataFeedsCore.PositionTradesQueue.AddTrade ( bool  isBuy,
decimal  price,
decimal  volume 
)

◆ AddTrade() [2/2]

void ATAS.DataFeedsCore.PositionTradesQueue.AddTrade ( decimal  price,
decimal  volume 
)

◆ CalculateAveragePrice()

bool ATAS.DataFeedsCore.PositionTradesQueue.CalculateAveragePrice ( decimal  volume,
bool  checkTotalVolume,
out decimal  averagePrice 
)

◆ Clear()

void ATAS.DataFeedsCore.PositionTradesQueue.Clear ( )

◆ GetPosition()

decimal decimal avgPrice ATAS.DataFeedsCore.PositionTradesQueue.GetPosition ( )

Member Data Documentation

◆ volume

decimal ATAS.DataFeedsCore.PositionTradesQueue.volume

Property Documentation

◆ Volume

decimal ATAS.DataFeedsCore.PositionTradesQueue.Volume
get

The documentation for this class was generated from the following file: