Ejemplo n.º 1
0
 public Builder withBid(BigDecimal rate, BigDecimal amount) {
   bids.add(new Offer(OfferType.bid, rate, new CurrencyValue(symbol.sourceCurrency(), amount)));
   return this;
 }
Ejemplo n.º 2
0
 public Builder withAsk(BigDecimal rate, BigDecimal amount) {
   asks.add(new Offer(OfferType.ask, rate, new CurrencyValue(symbol.sourceCurrency(), amount)));
   return this;
 }