This page will show you how to edit any configurations for each of the RET Adapters. You will look at configuring the RET connection properties as well as defining various adapter properties.
Configure your Adapters
There are different ways to configure the <Adapters> depending on which layer and which connection you are looking at.
Configure your Adapters within the Deployment Framework
The adapter configuration options of the datasource itself and configuring its behaviour to Liberator and Transformer can be found in this document: Change server-specific configuration.
adapter.properties define the behaviour of the Adapter itself. You can find the adapters properties under global_config/overrides/<Adapter>/etc/adapter.properties
|All possible configuration options of an Adapter can be found either in your adapters adapter.properties file or the documentation folder in the CaplinRETAdapterSuite as templates.|
Example adapter.properties with mandatory options:
# Common adapter settings # These are the precious metal unit conversions. metal_conversion=XAUUSD:[KG 995, 31.99], [KG 999, 32.12], [KG 9999, 32.148], [100G 999, 3.212], [10 TOLA, 3.746] metal_conversion=XAGUSD:[KG,32.1507], [TON, 32150.7] metal_conversion=XPTUSD:[KG, 32.150722] metal_conversion=XPDUSD:[KG, 32.150722] # Error messages from RET message_translation=code:100,category:TradeRejection,pattern:.*client price has been expired.* message_translation=code:101,category:TradeRejection,pattern:.*not favour to bank.* message_translation=code:102,category:TradeRejection,pattern:.*gap time period.* message_translation=code:103,category:TradeRejection,pattern:.*No manual trader currently logged in.* message_translation=code:104,category:TradeRejection,pattern:.*One click deal do not have valid price.* # OrderAdapter # Set this to true to enable the alert feature for orders enable_order_alerts=false # The order statuses that trigger an alert on the front end. alert_on_status=Submitted alert_on_status=Cancelled alert_on_status=Deleted alert_on_status=Done alert_on_status=Completed alert_on_status=Active alert_on_status=Dormant alert_on_status=Expired alert_on_status=Rejected alert_on_status=Activating alert_on_status=Cancelling alert_on_status=Deactivating # FxTradingAdapter # Enable to check time gap between two trades for the same currency use_global_one_click_gap_time=false # LBNAdapter # How many days to fetch for historic blotter and hour when to restart the adapter # historic_blotter_days_to_fetch= # blotter_rollover_hour= # Set this if you want the executed & historic blotters to show # only the completed deals. Otherwise don't set these attributes as by default they are both false. executed_blotter_display_only_completed_deals=false historic_blotter_display_only_completed_deals=false # PermissioningAdapter # Load permissions from different sources in one transaction instead of separate once load_permissions_in_single_transaction=true
The trapi-connection.properties define the connection and behaviour to RET. You find the TrAPI connection properties under global_config/overrides/<Adapter>/etc/trapi-connection.properties.
|All trapi-connection.properties configuration options of an Adapter can be found either in your adapters trapi-connection.properties file or in the documentation folder in the CaplinRETAdapterSuite as templates.|