ManageBuyOfferOperation constructor

ManageBuyOfferOperation(
  1. Asset selling,
  2. Asset buying,
  3. String amount,
  4. String price,
  5. String offerId
)

Creates, updates, or deletes an offer to buy one asset for another, otherwise known as a "bid" order on a traditional orderbook: selling is the asset the offer creator is selling. buying is the asset the offer creator is buying. amount is the amount of buying being bought. Set to 0 if you want to delete an existing offer. price is the price of 1 unit of buying in terms of selling. (e.g. "0.1" => pay up to 0.1 asset selling for 1 unit asset of buying). offerId set to "0" for a new offer, otherwise the id of the offer to be changed or removed.

Implementation

ManageBuyOfferOperation(Asset selling, Asset buying, String amount,
    String price, String offerId) {
  this._selling = checkNotNull(selling, "selling cannot be null");
  this._buying = checkNotNull(buying, "buying cannot be null");
  this._amount = checkNotNull(amount, "amount cannot be null");
  this._price = checkNotNull(price, "price cannot be null");
  this._offerId = offerId;
}