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