![]() |
MarketFactory C# API 3.0
|
Admin interface: user state. More...
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() |
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.
| 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 setSettlDate | ( | long | settlDate | ) |
| RiskUsage setSyncTime | ( | long | syncTime | ) |
| RiskUsage setFeedID | ( | int | feedID | ) |
| override string ToString | ( | ) |
| string group |
| int marketID |
| MFDecimal boughtBase |
| MFDecimal soldBase |
| MFDecimal boughtCounter |
| MFDecimal soldCounter |
| MFDecimal pendingBoughtBase = MFDecimal.NA |
| MFDecimal pendingSoldBase = MFDecimal.NA |
| long settlDate = SETTL_DATE_CASH |
| long syncTime = MFUtil.now() |
| int feedID = FEED_NULL |