Caplin Trader 5.1.0

Class: module:ct-trading/validation/MaxTierLimitExceededValidator

module:ct-trading/validation/MaxTierLimitExceededValidator()

The MaxTierLimitExceededValidator is a module:ct-trading/validation/Validator that is used during a trade to determine whether the max tier limit has been exceeded or not. This class is immutable.

Constructor

new module:ct-trading/validation/MaxTierLimitExceededValidator()

The constructor for the MaxTierLimitExceededValidator.

Implements:

Methods

validate(data, oValidationResult)

Determines whether the max tier limit has been exceeded or not.

Parameters:
Name Type Description
data module:ct-trading/trademodel/DataHolder

Trading data supplied by the trade such as the instrument, the trading protocol and the asset class. Must not be null or undefined.

oValidationResult module:ct-trading/validation/ValidationResult

The object used to report permission failure. Must not be null or undefined.

Implements: