Constructor
new module:ct-trading /validation /Trading System Available Validator()
Constructs a new TradingSystemAvailableValidator
.
Extends:
Extends
Methods
(static) validate(data, result)
Extracts the module:ct-trading/trademodel/Trade
from the __trade
field within
the specified data to validate. If the trading status for the Trade is
module:ct-trading/trademodel/TradingStatus#UNAVAILABLE
, a message will be logged and an
error added to the specified ValidationResult
.
Parameters:
Name | Type | Description |
---|---|---|
data |
module:ct-trading |
The data to validate. Must not be null or undefined. |
result |
module:ct-trading |
The |
validate(oData ToValidate, oValidation Result)
Performs the validation on oDataToValidate according to rules in the class that implements the interface and appends information about errors found to oValidationResult.
Parameters:
Name | Type | Description |
---|---|---|
oDataToValidate |
module:ct-trading |
The data to validate. Must not be null or undefined. |
oValidationResult |
module:ct-trading |
A |
- Inherited From:
Throws:
-
if there is something wrong with the data to validate or some other exception occurs during validation.
- Type
-
module:ct-core
/Error