ATAS
Loading...
Searching...
No Matches
ATAS.DataFeedsCore.SecurityPositionManager Class Reference
Inheritance diagram for ATAS.DataFeedsCore.SecurityPositionManager:
[legend]
Collaboration diagram for ATAS.DataFeedsCore.SecurityPositionManager:
[legend]

Public Member Functions

 SecurityPositionManager (ILoggerSource logger, Position position)
 
void Clear ()
 
bool GetIsChanged ()
 
bool GetIsNeedSubscribeLevel1 ()
 
bool Update (decimal? volume=null, decimal? averagePrice=null, decimal? openedPnL=null, decimal? closedPnL=null, decimal? commission=null, decimal? openVolume=null, RiskInfo? risk=null)
 
bool UpdateAveragePriceByTrades ()
 
bool UpdateOpenPnL (Security security, MarketDataType type, decimal price)
 
bool Process (Order order)
 
bool Process (MyTrade trade)
 
void SetAveragePrice (decimal avgPrice)
 
void Clear ()
 
bool GetIsChanged ()
 
bool GetIsNeedSubscribeLevel1 ()
 
bool Update (decimal? volume=null, decimal? averagePrice=null, decimal? openedPnL=null, decimal? closedPnL=null, decimal? commission=null, decimal? openVolume=null, RiskInfo? risk=null)
 
bool UpdateAveragePriceByTrades ()
 
bool UpdateOpenPnL (Security security, MarketDataType type, decimal price)
 
bool Process (Order order)
 
bool Process (MyTrade trade)
 
void SetAveragePrice (decimal avgPrice)
 

Protected Member Functions

virtual bool UpdateUnrealizedPnl (MarketDataType type, decimal price)
 
virtual decimal GetPnlMultiplier ()
 

Properties

Position Position [get]
 
bool IsPositionInitialized [get]
 
PositionAveragePriceValueTypes AveragePriceValueType [get, set]
 
decimal AveragePrice [get, set]
 
decimal Volume [get, set]
 
bool CalculateVolume [get, set]
 
bool CalculateAveragePrice [get, set]
 
bool CalculateOpenedPnL [get, set]
 
bool CalculateClosedPnL [get, set]
 
bool AllowSubscribeLevel1 [get, set]
 
- Properties inherited from ATAS.DataFeedsCore.ISecurityPositionManager
Position Position [get]
 
bool IsPositionInitialized [get]
 

Constructor & Destructor Documentation

◆ SecurityPositionManager()

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

Member Function Documentation

◆ Clear()

void ATAS.DataFeedsCore.SecurityPositionManager.Clear ( )

◆ GetIsChanged()

bool ATAS.DataFeedsCore.SecurityPositionManager.GetIsChanged ( )

◆ GetIsNeedSubscribeLevel1()

bool ATAS.DataFeedsCore.SecurityPositionManager.GetIsNeedSubscribeLevel1 ( )

◆ GetPnlMultiplier()

virtual decimal ATAS.DataFeedsCore.SecurityPositionManager.GetPnlMultiplier ( )
protectedvirtual

◆ Process() [1/2]

bool ATAS.DataFeedsCore.SecurityPositionManager.Process ( MyTrade  trade)

◆ Process() [2/2]

bool ATAS.DataFeedsCore.SecurityPositionManager.Process ( Order  order)

◆ SetAveragePrice()

void ATAS.DataFeedsCore.SecurityPositionManager.SetAveragePrice ( decimal  avgPrice)

◆ Update()

bool ATAS.DataFeedsCore.SecurityPositionManager.Update ( decimal?  volume = null,
decimal?  averagePrice = null,
decimal?  openedPnL = null,
decimal?  closedPnL = null,
decimal?  commission = null,
decimal?  openVolume = null,
RiskInfo risk = null 
)

◆ UpdateAveragePriceByTrades()

bool ATAS.DataFeedsCore.SecurityPositionManager.UpdateAveragePriceByTrades ( )

◆ UpdateOpenPnL()

bool ATAS.DataFeedsCore.SecurityPositionManager.UpdateOpenPnL ( Security  security,
MarketDataType  type,
decimal  price 
)

◆ UpdateUnrealizedPnl()

virtual bool ATAS.DataFeedsCore.SecurityPositionManager.UpdateUnrealizedPnl ( MarketDataType  type,
decimal  price 
)
protectedvirtual

Property Documentation

◆ AllowSubscribeLevel1

bool ATAS.DataFeedsCore.SecurityPositionManager.AllowSubscribeLevel1
getset

◆ AveragePrice

decimal ATAS.DataFeedsCore.SecurityPositionManager.AveragePrice
getset

◆ AveragePriceValueType

PositionAveragePriceValueTypes ATAS.DataFeedsCore.SecurityPositionManager.AveragePriceValueType
getset

◆ CalculateAveragePrice

bool ATAS.DataFeedsCore.SecurityPositionManager.CalculateAveragePrice
getset

◆ CalculateClosedPnL

bool ATAS.DataFeedsCore.SecurityPositionManager.CalculateClosedPnL
getset

◆ CalculateOpenedPnL

bool ATAS.DataFeedsCore.SecurityPositionManager.CalculateOpenedPnL
getset

◆ CalculateVolume

bool ATAS.DataFeedsCore.SecurityPositionManager.CalculateVolume
getset

◆ IsPositionInitialized

bool ATAS.DataFeedsCore.SecurityPositionManager.IsPositionInitialized
get

◆ Position

Position ATAS.DataFeedsCore.SecurityPositionManager.Position
get

◆ Volume

decimal ATAS.DataFeedsCore.SecurityPositionManager.Volume
getset

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