Configuration file: trapi-connection.properties

This page describes configuration properties that can be set in a RET adapter’s trapi-connection.properties file, whichi configures the adapter’s connection to RET.

For descriptions of a RET adapter’s Caplin DataSource options, see Configuration file: datasource.conf.

For descriptions of a RET adapter’s application options, see Configuration file: adapter.properties.

File location and format

When a RET adapter is deployed to a Caplin Deployment Framework, the adapter’s TrAPI connection configuration file is available for editing at global_config/overrides/adapter/etc/trapi-connection.properties.

The configuration file is in INI format.

Example trapi-connection.properties file for a RET LBN adapter
[common]
host=192.168.1.50
port=8912
reconnection_exponential_initial_interval=5
reconnection_exponential_max_interval=600

[LBNConnection]
username=lbn_proxy
password=letmein
order_type=LBN

[AdminConnection]
username=lbn_admin
password=letmein
order_type=admin

Common connection properties

Configuration properties common to all connections.

Option Default Description

admin_log_wrapped

false

Enables wrapping of Admin API log output with the Adapter logging framework

add_userset_users

false

Loads the users from a user’s userset assignments

add_user_to_own_userset

true

Adds the user to the userset

available_locations

A comma separated list of locations and their time zones in the following format:

<location>:<timezone>,...

where <timezone> is a valid tzdata timezone.

cache_order_histories

true

When true order history is cached as part of order caching.

can_trade_on_settlement_ccy_holidays

Whether or not settlement currency holidays should be valid to trade on

connection_type

direct_scs

The connection type

conf_directory

etc

Folder holding all configuration files.

connection_pool_key

default_connection_pool_key

Connection pool key

currency_pairs_to_load

If only certain currency pairs should be loaded, list them here. By default all currency pairs are loaded.

default_transaction_timeout

15000

The default timeout for keeping a connection locked in each of the engine locking transactions

host

A comma-separated list of hosts on which the SCS Relay runs. Each host can be a hostname or IP address.

instruments

The instruments configured in the RET system. Required if there are more instruments than FX.CROSS.

label

no label

Reserved property name that is populated from the section header, e.g [connection 1]

lbn_heartbeat

10

lbn_log_append

true

lbn_log_location

var

Location of the LBN ret log files

lbn_log_name

LBN_@.log

lbn_resource

GID.orders

The RET LBN Order resource name.

lbn_paging_enabled

Enable query records with paging.

lbn_paging_records_per_page

500

Number of records per page.

load_inverse_currency_pairs

false

Whether the admin connection should automatically create inverse currency pairs

modify_strategy_timeout

120000

The time to keeping a strategy locked measured from the last action in a strategy modify transaction

non_negotiated

true

When set to true, ESP trades cannot be negotiated by a dealer.

obfuscated_password_method

aes256

The cypher used to encrypt passwords

obfuscated_password_data

Base 64 encoded key

obfuscated_password

Base 64 encoded password to the key in obfuscated_password_data

order_register_delay

1500

The delay in milliseconds to wait between receiving an onOrderRegister callback from TrAPI and processing it. This is a workaround allowing TrAPI time to put itself in a consistent state.

order_cancel_transaction_timeout

The default timeout for keeping a connection locked for cancel order engine transactions

order_delete_transaction_timeout

The default timeout for keeping a connection locked for delete order engine transactions

order_modify_transaction_timeout

The default timeout for keeping a connection locked for modify order engine transactions

port

A comma-separate list of ports, corresponding the comma-separated list of option host, at which the SCS Relay can be contacted.

rate_subscription_thread_pool_size

12

Pool size of rate subscription threads.

restrict_inverse_currency_pairs

true

Determines whether the inverse of a restricted currency pair should also be restricted

reconnection_interval

5

The interval, in seconds, between connection and re-connection attempts.

reconnection_attempts

-1

The number of re-connection attempts to be made. Set to -1 for no limit.

reconnection_exponential_initial_interval

The initial reconnection interval interval value which will be increased exponentially

reconnection_exponential_max_interval

The maximum reconnection interval value which can be set exponentially

re_request_new_notifications

false

If true we re-request the deal from Reuters. On Default false we just process the incoming deal as it is.

ret_log_name

ret.log

The desired name of the TrAPI log

ret_log_location

var

The desired location of the TrAPI/LBN/AdminAPI logs. Bypassed on Admin API if admin_log_wrapped is true

ret_log_append

true

True if you want the logs to be appended or false if you want individual logs

ret_log_enabled

false

Enable TrAPI/LBN/AdminAPI logging. Bypassed on Admin API if admin_log_wrapped is true

strategy_unlock_transaction_timeout

The default timeout for keeping a connection locked for unlock order engine transactions

strategy_lock_transaction_timeout

The default timeout for keeping a connection locked for lock order engine transactions

strategy_activate_transaction_timeout

The default timeout for keeping a connection locked for activate order engine transactions

strategy_deactivate_transaction_timeout

The default timeout for keeping a connection locked for deactivate order engine transactions

strategy_submit_and_activate_transaction_timeout

The default timeout for keeping a connection locked for submit and activate order engine transactions

strategy_submit_only_transaction_timeout

The default timeout for keeping a connection locked for submit order engine transactions

timeout_multiplier

0.990

Optional property to multiply calculate how many seconds per time unit used in timeouts

trading_connection_staging_interval

5000

The time in milliseconds between which trading connections are connected to RET.

trapi_properties

A pipe separated list of TrAPIProperties

trapi_system_properties

A pipe separated list of TrAPIProperties

use_encrypted_passwords

user_groups_to_load

If only certain user groups should be loaded, list them here. By default all user groups are loaded.

userset_users

A comma-separated list of users from which to load user sets.

use_legacy_modification_handling

false

When received onOrderModify update the order with modified event data instead of retrieving it from RET.

use_check_price_tolerance

false

Set this flag for order submit if LOMSServer setting CheckPriceTolerance=1 is set to wait for onTolerancePass and/or onToleranceFail callbacks

use_client_decimal_places

true

If true then sets 'Use Client Decimal Places' to true on a trade before submitting it. This must be true if 'Edit Extra Spot DPS' is enabled in your RET Admin Applet, else you may see inconsistent SPOT and All In Rates.

url_encode_taker_order_custom

false

Defines whether the taker order custom field for orders and trades is URL Encoded.

wait_for_activate_success

false

Determines whether Order Activation should be regarded as successful on a onOrderModify state change to ACCEPTING (e.g. if Trader approval is required), or if it should wait for onTolerancePass and/or (depending on USE_CHECK_PRICE_TOLERANCE) onOrderActivate callbacks.

Specific connection properties

Configuration properties specific to a single connection.

Option Default Description

client

Optional parameter for rates connections, if specified then the rate connection will explicitly select this proxy client

order_type

market

Specifies which type of RET Connection to make: market, limit_monitor, limit_trading, LBN, or admin.

password

Password of the RET user for this connection

use_for_trading

false

Set to true if this is a trading connection, which means it is not necessary to specify a client (unlike rates connections).

username

Username of the RET user for this connection (all connections in a suite of RET adapters must have unique user names)