MarketFactory C# API 3.0
MFAdmin.RiskUsage Class Reference

Admin interface: user state. More...

Inheritance diagram for MFAdmin.RiskUsage:
MFAdmin.RiskMarketPosition

Public Member Functions

 RiskUsage (string group, int marketID, MFDecimal boughtBase, MFDecimal soldBase, MFDecimal boughtCounter, MFDecimal soldCounter)
 
 RiskUsage (string group, int marketID, MFDecimal boughtBase, MFDecimal soldBase, MFDecimal boughtCounter, MFDecimal soldCounter, MFDecimal pendingBoughtBase, MFDecimal pendingSoldBase, long settlDate, long syncTime, int feedID)
 
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()
 

Detailed Description

Admin interface: user state.

Each user is tracked by feed/market/date and the amounts are summed into parent groups. To specify state by parent group, set state for a single user and set remaining users to zero. Amounts should all be provided in units of base currency (X for X/Y).

Ex: buy 2mm EUR/USD @ 1.3: boughtBase=2|EUR, boughtCounter=2.6|USD Ex: sell 2mm EUR/USD @ 1.3: sellBase=2|EUR, sellCounter=2.6|USD

Note: Amounts are split to support both NOP and DSL tracking. Note: feedID is only required when providing feed-specific limits. Note: syncTime (timeapiserver of last trade capture) is required to sync admin/server view.

Constructor & Destructor Documentation

◆ RiskUsage() [1/2]

RiskUsage ( string  group,
int  marketID,
MFDecimal  boughtBase,
MFDecimal  soldBase,
MFDecimal  boughtCounter,
MFDecimal  soldCounter 
)

◆ RiskUsage() [2/2]

RiskUsage ( string  group,
int  marketID,
MFDecimal  boughtBase,
MFDecimal  soldBase,
MFDecimal  boughtCounter,
MFDecimal  soldCounter,
MFDecimal  pendingBoughtBase,
MFDecimal  pendingSoldBase,
long  settlDate,
long  syncTime,
int  feedID 
)

Member Function Documentation

◆ setSettlDate()

RiskUsage setSettlDate ( long  settlDate)

◆ setSyncTime()

RiskUsage setSyncTime ( long  syncTime)

◆ setFeedID()

RiskUsage setFeedID ( int  feedID)

◆ ToString()

override string ToString ( )

Member Data Documentation

◆ group

string group

◆ marketID

int marketID

◆ boughtBase

MFDecimal boughtBase

◆ soldBase

MFDecimal soldBase

◆ boughtCounter

MFDecimal boughtCounter

◆ soldCounter

MFDecimal soldCounter

◆ pendingBoughtBase

MFDecimal pendingBoughtBase = MFDecimal.NA

◆ pendingSoldBase

MFDecimal pendingSoldBase = MFDecimal.NA

◆ settlDate

long settlDate = SETTL_DATE_CASH

◆ syncTime

long syncTime = MFUtil.now()

◆ feedID

int feedID = FEED_NULL
Confidential. Copyright © 2011 MarketFactory, Inc.