Capital Markets Adapters 10.15 | Apama Capital Markets Adapters Documentation 10.15 | Currenex FIX Adapter | Password management
 
Password management
The FIX_CNX_Support.mon service monitor can be used to reset the Currenex session password. This monitor file must be injected after all of the standard service monitors, but before any Currenex sessions are configured.
To reset the password for a Currenex session, send the following event to the correlator:
com.apama.fix.cnx.PasswordChangeRequest
(<transport>, <requestId>, <userId>, <oldPassword>, <newPassword>)
Where,
*<transport> is the session/transport name (for example, "CURRENEX_TRADING")
*<requestId> is a user-supplied key to identify replies to this request
*<userId> is the SenderCompId for this session
*<oldPassword> is the existing password for the session
*<newPassword> is the desired new password for the session
Each request should result in a com.apama.fix.cnx.PasswordChangeResponse() event being routed and logged by the monitor:
com.apama.fix.cnx.PasswordChangeResponse
(<transport>, <requestId>, <userId>, <success>, <status>, <message>)
Where,
*<transport> is the session/transport name
*<requestId> is the user-supplied identifier from the request
*<userId> is the SenderCompId from the request
*<success> is a boolean value indicating whether the password was changed
*<status> is one of the RESPONSE_* constants listed in the FIX_CNX_Support monitor. Typical values are RESPONSE_PASSWORD_CHANGED ("5") or RESPONSE_USER_NOT_RECOGNISED ("3") which Currenex uses as a catch-all failure code.
*<message> is any error message returned by the server
A password reset can be performed at any time after the session has been successfully logged on and a Trading Session Status of "Open" has been sent (this will be logged by the FIX Session Manager). A password reset is required if the server sends a Trading Session Status of "Halted" immediately after a successful logon (this will be logged at WARN level by the FIX CNX Password Manager). Note that you cannot successfully log on with an expired password, so perform a password reset as soon as the "Halted" session status is seen. The session will be locked after too many login attempts with an expired password. The session can be unlocked only by calling Currenex technical support.