Esempio n. 1
0
 @XmlTransient
 public ITrade getTrade() {
   if (trade == null) {
     getPriceData();
     trade = new Trade(priceData.getTime(), priceData.getLast(), null, priceData.getVolume());
   }
   return trade;
 }
Esempio n. 2
0
 @XmlTransient
 public IQuote getQuote() {
   if (quote == null) {
     getPriceData();
     quote =
         new Quote(
             priceData.getBid(),
             priceData.getAsk(),
             priceData.getBidSize(),
             priceData.getAskSize());
   }
   return quote;
 }
Esempio n. 3
0
 @XmlTransient
 public ILastClose getLastClose() {
   if (lastClose == null) {
     getPriceData();
     lastClose = new LastClose(priceData.getClose(), null);
   }
   return lastClose;
 }
Esempio n. 4
0
 @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;
 }