예제 #1
0
 public AccountSummary(
     string id,
     string?alias,
     string currency,
     int createdByUserId,
     DateTime createdTime,
     GuaranteedStopLossOrderParameters?guaranteedStopLossOrderParameters,
     GuaranteedStopLossOrderMode guaranteedStopLossOrderMode,
     decimal?marginRate,
     int openTradeCount,
     int openPositionCount,
     int pendingOrderCount,
     bool hedgingEnabled,
     decimal unrealizedPL,
     decimal nAV,
     decimal marginUsed,
     decimal marginAvailable,
     decimal positionValue,
     decimal marginCloseoutUnrealizedPL,
     decimal marginCloseoutNAV,
     decimal marginCloseoutMarginUsed,
     decimal marginCloseoutPercent,
     decimal marginCloseoutPositionValue,
     decimal withdrawalLimit,
     decimal marginCallMarginUsed,
     decimal marginCallPercent,
     decimal balance,
     decimal pL,
     decimal resettablePL,
     decimal financing,
     decimal commission,
     decimal dividendAdjustment,
     decimal guaranteedExecutionFees,
     DateTime?marginCallEnterTime,
     int marginCallExtensionCount,
     DateTime lastMarginCallExtensionTime,
     string lastTransactionID)
 {
     Id              = id;
     Alias           = alias;
     Currency        = currency;
     CreatedByUserId = createdByUserId;
     CreatedTime     = createdTime;
     GuaranteedStopLossOrderParameters = guaranteedStopLossOrderParameters;
     GuaranteedStopLossOrderMode       = guaranteedStopLossOrderMode;
     MarginRate        = marginRate;
     OpenTradeCount    = openTradeCount;
     OpenPositionCount = openPositionCount;
     PendingOrderCount = pendingOrderCount;
     HedgingEnabled    = hedgingEnabled;
     UnrealizedPL      = unrealizedPL;
     NAV                         = nAV;
     MarginUsed                  = marginUsed;
     MarginAvailable             = marginAvailable;
     PositionValue               = positionValue;
     MarginCloseoutUnrealizedPL  = marginCloseoutUnrealizedPL;
     MarginCloseoutNAV           = marginCloseoutNAV;
     MarginCloseoutMarginUsed    = marginCloseoutMarginUsed;
     MarginCloseoutPercent       = marginCloseoutPercent;
     MarginCloseoutPositionValue = marginCloseoutPositionValue;
     WithdrawalLimit             = withdrawalLimit;
     MarginCallMarginUsed        = marginCallMarginUsed;
     MarginCallPercent           = marginCallPercent;
     Balance                     = balance;
     PL                          = pL;
     ResettablePL                = resettablePL;
     Financing                   = financing;
     Commission                  = commission;
     DividendAdjustment          = dividendAdjustment;
     GuaranteedExecutionFees     = guaranteedExecutionFees;
     MarginCallEnterTime         = marginCallEnterTime;
     MarginCallExtensionCount    = marginCallExtensionCount;
     LastMarginCallExtensionTime = lastMarginCallExtensionTime;
     LastTransactionID           = lastTransactionID;
 }
예제 #2
0
 public Account(
     string id,
     string?alias,
     string currency,
     int createdByUserId,
     DateTime createdTime,
     GuaranteedStopLossOrderParameters?guaranteedStopLossOrderParameters,
     GuaranteedStopLossOrderMode guaranteedStopLossOrderMode,
     decimal?marginRate,
     int openTradeCount,
     int openPositionCount,
     int pendingOrderCount,
     bool hedgingEnabled,
     decimal unrealizedPL,
     decimal nAV,
     decimal marginUsed,
     decimal marginAvailable,
     decimal positionValue,
     decimal marginCloseoutUnrealizedPL,
     decimal marginCloseoutNAV,
     decimal marginCloseoutMarginUsed,
     decimal marginCloseoutPercent,
     decimal marginCloseoutPositionValue,
     decimal withdrawalLimit,
     decimal marginCallMarginUsed,
     decimal marginCallPercent,
     decimal balance,
     decimal pL,
     decimal resettablePL,
     decimal financing,
     decimal commission,
     decimal dividendAdjustment,
     decimal guaranteedExecutionFees,
     DateTime?marginCallEnterTime,
     int marginCallExtensionCount,
     DateTime lastMarginCallExtensionTime,
     string lastTransactionID,
     ImmutableList <TradeSummary> trades,
     ImmutableList <Position> positions,
     ImmutableList <Order> orders)
     : base(
         id,
         alias,
         currency,
         createdByUserId,
         createdTime,
         guaranteedStopLossOrderParameters,
         guaranteedStopLossOrderMode,
         marginRate,
         openTradeCount,
         openPositionCount,
         pendingOrderCount,
         hedgingEnabled,
         unrealizedPL,
         nAV,
         marginUsed,
         marginAvailable,
         positionValue,
         marginCloseoutUnrealizedPL,
         marginCloseoutNAV,
         marginCloseoutMarginUsed,
         marginCloseoutPercent,
         marginCloseoutPositionValue,
         withdrawalLimit,
         marginCallMarginUsed,
         marginCallPercent,
         balance,
         pL,
         resettablePL,
         financing,
         commission,
         dividendAdjustment,
         guaranteedExecutionFees,
         marginCallEnterTime,
         marginCallExtensionCount,
         lastMarginCallExtensionTime,
         lastTransactionID)
 {
     Trades    = trades;
     Positions = positions;
     Orders    = orders;
 }