contract, YearMonth.of(2017, 6), EtdVariant.ofMonthly(), 0, PutCall.PUT, 3d, YearMonth.of(2017, 9))) .longQuantity(15d) .shortQuantity(2d) .build(); assertBeanEquals(expected1, filtered.get(0)); 4d)) .longQuantity(0d) .shortQuantity(13d) .build(); assertBeanEquals(expected2, filtered.get(1)); .security(EtdOptionSecurity.of(contract, YearMonth.of(2017, 6), EtdVariant.ofWeekly(2), 0, PutCall.PUT, 5.1d)) .longQuantity(0d) .shortQuantity(20d) .build(); assertBeanEquals(expected3, filtered.get(2));
static EtdOptionPosition sut2() { return EtdOptionPosition.builder() .security(EtdOptionSecurityTest.sut2()) .longQuantity(4000) .shortQuantity(1000) .build(); }
static EtdOptionPosition sut() { return EtdOptionPosition.builder() .info(POSITION_INFO) .security(SECURITY) .longQuantity(LONG_QUANTITY) .shortQuantity(SHORT_QUANTITY) .build(); }