@Test public void test_Combo() { Exchangeable e = Exchangeable.fromString("SPD ZC012&ZC102"); ExchangeableTradingTimes tradingTimes = e.exchange().getTradingTimes(e, DateUtil.str2localdate("20200814")); assertTrue(tradingTimes.getInstrument().equals(e)); }
public Exchangeable getInstrument() { return instrument; }
ExchangeableTradingTimes { public Exchangeable getInstrument() { return instrument; } }
ExchangeableTradingTimes { public Exchangeable getInstrument() { return instrument; } ExchangeableTradingTimes(Exchangeable instrument, LocalDate tradingDay, LocalDateTime[] marketTimes, List<MarketTimeSegmentInfo> segmentInfos); }
ExchangeableTradingTimes { public Exchangeable getInstrument() { return instrument; } ExchangeableTradingTimes(Exchangeable instrument, LocalDate tradingDay, LocalDateTime[] marketTimes, List<MarketTimeSegmentInfo> segmentInfos); Exchangeable getInstrument(); LocalDate getTradingDay(); int getTotalTradingMillis(); int getTotalTradingMillisInSegment(MarketType marketType); LocalDateTime[] getMarketTimes(); LocalDateTime[] getMarketTimes(MarketType marketType); LocalDateTime getMarketOpenTime(); LocalDateTime getMarketCloseTime(); int getTradingTime(LocalDateTime marketTime); MarketType getSegmentType(LocalDateTime time); int getTradingTimeInSegment(LocalDateTime time, MarketType marketType); MarketTimeStage getTimeStage(LocalDateTime time); }
ExchangeableTradingTimes { public Exchangeable getInstrument() { return instrument; } ExchangeableTradingTimes(Exchangeable instrument, LocalDate tradingDay, LocalDateTime[] marketTimes, List<MarketTimeSegmentInfo> segmentInfos); Exchangeable getInstrument(); LocalDate getTradingDay(); int getTotalTradingMillis(); int getTotalTradingMillisInSegment(MarketType marketType); LocalDateTime[] getMarketTimes(); LocalDateTime[] getMarketTimes(MarketType marketType); LocalDateTime getMarketOpenTime(); LocalDateTime getMarketCloseTime(); int getTradingTime(LocalDateTime marketTime); MarketType getSegmentType(LocalDateTime time); int getTradingTimeInSegment(LocalDateTime time, MarketType marketType); MarketTimeStage getTimeStage(LocalDateTime time);  }