Constructs an order-size limit.
Each cap accepts its value object, a DecimalInput, or
null/undefined. The core rejects a limit with neither cap when the
containing policy is built.
Throws ParamError on an invalid value.
ReadonlymaxThe maximum notional, or undefined when notional is unconstrained.
ReadonlymaxThe maximum order quantity, or undefined when quantity is
unconstrained.
Returns a fresh copy of this order-size limit.
Independent quantity and notional caps for one order.
On asset-keyed barriers, quantity resolves by the instrument's underlying asset and notional by its settlement asset. A cap may be absent and then constrains nothing; its chain skips a matching barrier without that cap. A cap set to zero rejects positive metric values and admits a value of exactly zero.