コード例 #1
0
 // -------------------------------------------------------------------------
 @Override
 public FunctionRequirements requirements(GenericFutureOptionTrade trade) {
   QuoteKey key = QuoteKey.of(trade.getSecurity().getStandardId());
   return FunctionRequirements.builder()
       .singleValueRequirements(ImmutableSet.of(key))
       .outputCurrencies(trade.getProduct().getCurrency())
       .build();
 }
コード例 #2
0
 @Override
 public Optional<Currency> defaultReportingCurrency(GenericFutureOptionTrade target) {
   return Optional.of(target.getProduct().getCurrency());
 }