ReadonlyasReturns the quantity, or undefined when this is a volume amount.
ReadonlyasReturns the volume, or undefined when this is a quantity amount.
ReadonlyisReturns true when this amount is a quantity.
ReadonlyisReturns true when this amount is a volume.
Returns a fresh TradeAmount holding the same value.
StaticquantityBuilds a quantity-denominated trade amount.
Accepts a Quantity value object or a DecimalInput.
Throws ParamError on an invalid value.
StaticvolumeBuilds a volume-denominated trade amount.
Accepts a Volume value object or a DecimalInput.
Throws ParamError on an invalid value.
A tagged trade amount: either a
Quantityor aVolume.