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