In this section we will cover validation rules for FX Tiles.
When setting up an FX tile, any data entered by users is checked for validation. Entering non-numerical amounts or using invalid date formats will trigger error messages that prompt the user to make amendments:
In both of the above error cases the FX Tile will remain in a disabled state until a valid amount or settlement date is entered. When the tile is disabled in such a way, it prevents the user from viewing rates or attempting to trade.
Field validation rules
This section lists validation rules for the following fields:
- Trade amount
- Settlement date
Data type: Currency
Range: >0.01 to GFA for the particular currency pair.
Amounts must be stated using numerical characters or a notational shortcut that is supported by the FX Tile e.g. 1K (this means 1000), 5M (this means 5,000,000).
If the amount is invalid, an error message is displayed "Please supply a valid amount"
If input exceeds the GFA for the currency, then the user can longer view streaming rates or trade.
Data type: Date
The field accepts user input and also provides visual controls for selecting dates using a date picker utility. Shortcut notations for picking Tenor dates are also supported e.g. 1W (one week from Spot), 2M (two months from Spot).
If the date is invalid, an error message will be displayed indicating the correct format to be used when inputting a date: "Invalid date [user input]. Date must be in YYYY-MM-DD or YYYYMMDD format."
FX Tiles Documentation:
- Section 1 - Using an FX Tile
- Section 2 - Using other FX Tile components
- Section 3 - Validation and Error messages
- Section 4 - One-way pricing
- Section 5 - NDF Tiles
- Section 6 - Integrating FX data with a tile
- Section 7 - System Availability and Permissioning
- Section 8 - Code architecture