public GooOperationMarketInstrumentGroup( GooMarketInstrument marketInstrument, GooCurrency currency, GooOperationPair[] pairs) { MarketInstrument = marketInstrument; Currency = currency; Pairs = pairs; }
public GooOperation( GooMarketInstrument marketInstrument, Operation operation) { MarketInstrument = marketInstrument; Date = operation.Date; OperationType = ParseOperationType(operation.OperationType); Quantity = operation.Trades.Sum(x => x.Quantity); Currency = ParseCurrency(operation.Currency); PricePerShare = operation.Price; Fee = (operation.Commission?.Value ?? 0) * -1; }