MarketFactory C# API 3.0
 All Classes Namespaces Functions Variables Properties
MFAdmin.RiskMarketPosition Class Reference

Admin interface: Use this if interested in market position rather than RiskUsage's net open position. More...

Inheritance diagram for MFAdmin.RiskMarketPosition:
MFAdmin.RiskUsage

Public Member Functions

 RiskMarketPosition (string group, int marketID, MFDecimal position, long syncTime)
 
MFDecimal getPositionPotential ()
 
MFDecimal getPositionRealized ()
 
RiskUsage setFeedID (int feedID)
 
RiskUsage setSettlDate (long settlDate)
 
RiskUsage setSyncTime (long syncTime)
 
override string ToString ()
 

Public Attributes

MFDecimal boughtBase
 
MFDecimal boughtCounter
 
int feedID = FEED_NULL
 
string group
 
int marketID
 
MFDecimal pendingBoughtBase = MFDecimal.NA
 
MFDecimal pendingSoldBase = MFDecimal.NA
 
long settlDate = SETTL_DATE_CASH
 
MFDecimal soldBase
 
MFDecimal soldCounter
 
long syncTime = MFUtil.now()
 

Protected Member Functions

 RiskMarketPosition (string group, int marketID, MFDecimal boughtBase, MFDecimal soldBase)
 

Detailed Description

Admin interface: Use this if interested in market position rather than RiskUsage's net open position.

The amount is in units of base currency (X in X/Y) and should be negative when short. Note: feedID and settlDate are not used by default but may be set if desired.

Constructor & Destructor Documentation

RiskMarketPosition ( string  group,
int  marketID,
MFDecimal  boughtBase,
MFDecimal  soldBase 
)
protected
RiskMarketPosition ( string  group,
int  marketID,
MFDecimal  position,
long  syncTime 
)

Member Function Documentation

MFDecimal getPositionRealized ( )
MFDecimal getPositionPotential ( )
override string ToString ( )
RiskUsage setSettlDate ( long  settlDate)
inherited
RiskUsage setSyncTime ( long  syncTime)
inherited
RiskUsage setFeedID ( int  feedID)
inherited

Member Data Documentation

string group
inherited
int marketID
inherited
MFDecimal boughtBase
inherited
MFDecimal soldBase
inherited
MFDecimal boughtCounter
inherited
MFDecimal soldCounter
inherited
MFDecimal pendingBoughtBase = MFDecimal.NA
inherited
MFDecimal pendingSoldBase = MFDecimal.NA
inherited
long settlDate = SETTL_DATE_CASH
inherited
long syncTime = MFUtil.now()
inherited
int feedID = FEED_NULL
inherited
Confidential. Copyright © 2011 MarketFactory, Inc.