@XmlTransient public ITrade getTrade() { if (trade == null) { getPriceData(); trade = new Trade(priceData.getTime(), priceData.getLast(), null, priceData.getVolume()); } return trade; }
@XmlTransient public IQuote getQuote() { if (quote == null) { getPriceData(); quote = new Quote( priceData.getBid(), priceData.getAsk(), priceData.getBidSize(), priceData.getAskSize()); } return quote; }
@XmlTransient public ILastClose getLastClose() { if (lastClose == null) { getPriceData(); lastClose = new LastClose(priceData.getClose(), null); } return lastClose; }
@XmlTransient public ITodayOHL getTodayOHL() { if (todayOHL == null) { getPriceData(); if (priceData.getOpen() != null && priceData.getOpen() != 0.0 && priceData.getHigh() != null && priceData.getHigh() != 0.0 && priceData.getLow() != null && priceData.getLow() != 0.0) { todayOHL = new TodayOHL(priceData.getOpen(), priceData.getHigh(), priceData.getLow()); } } return todayOHL; }