Exemple #1
0
 public Position(
     string name,
     string figi,
     string ticker,
     string isin,
     InstrumentType instrumentType,
     decimal balance,
     decimal blocked,
     MoneyAmount expectedYield,
     int lots,
     MoneyAmount averagePositionPrice,
     MoneyAmount averagePositionPriceNoNkd)
 {
     Name                      = name;
     Figi                      = figi;
     Ticker                    = ticker;
     Isin                      = isin;
     InstrumentType            = instrumentType;
     Balance                   = balance;
     Blocked                   = blocked;
     ExpectedYield             = expectedYield;
     Lots                      = lots;
     AveragePositionPrice      = averagePositionPrice;
     AveragePositionPriceNoNkd = averagePositionPriceNoNkd;
 }
Exemple #2
0
 public PlacedLimitOrder(string orderId, OperationType operation, OrderStatus status, string rejectReason, int requestedLots, int executedLots, MoneyAmount commission)
 {
     OrderId       = orderId;
     Operation     = operation;
     Status        = status;
     RejectReason  = rejectReason;
     RequestedLots = requestedLots;
     ExecutedLots  = executedLots;
     Commission    = commission;
 }
Exemple #3
0
 public Operation(string id, OperationStatus status, List <Trade> trades, MoneyAmount commission, Currency currency, decimal payment, decimal price, int quantity, string figi, InstrumentType instrumentType, bool isMarginCall, DateTime date, ExtendedOperationType operationType)
 {
     Id             = id;
     Status         = status;
     Trades         = trades;
     Commission     = commission;
     Currency       = currency;
     Payment        = payment;
     Price          = price;
     Quantity       = quantity;
     Figi           = figi;
     InstrumentType = instrumentType;
     IsMarginCall   = isMarginCall;
     Date           = date;
     OperationType  = operationType;
 }