示例#1
0
 public GooOperationMarketInstrumentGroup(
     GooMarketInstrument marketInstrument,
     GooCurrency currency,
     GooOperationPair[] pairs)
 {
     MarketInstrument = marketInstrument;
     Currency         = currency;
     Pairs            = pairs;
 }
示例#2
0
 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;
 }