Skip to content

MutableQuote Object ​

A MutableQuote is what the E(PriceAuthority).mutableQuoteWhen*() methods resolve to. It has the following methods:

aMutableQuote.cancel(e) ​

  • e String

Causes the Promise to reject with the message e. When the promise is used with a E.when() the message is part of the rejection notification.

aMutableQuote.getPromise() ​

aMutableQuote.updateLevel(newAmountIn, newAmountOutLimit) ​

  • newAmountIn Amount
  • newAmountOutLimit Amount

Changes the MutableQuote's trigger levels to the specified values without requiring a second Promise.

newAmountIn's and newAmountOutLimit's Brands must match the original amountIn and amountOutLimit Brands, respectively.