Fix8 - FIx-4.4 - logon message issue with username and password

366 views
Skip to first unread message

daniele.b...@gmail.com

unread,
May 25, 2016, 5:03:01 PM5/25/16
to fix8 support
Dear support
I'm working on a new project and I decided to adopt fix8 platform (c++ last version).
My data provider requires fields 553 and 554 (username and password) to validate the connection.
I sow they are defined in XML definition and in all classes I compiled as per the instructions in your documentation. So, I guess no changes at the code are needed.

I don't understand where have I to set that values.
I tried to add them in both initiator and session tags of MyFix.xml for the example program.
I also can see them while debugging the message building but the packet sent to the network does not contain them.

Attached you can see the packet (from wireshark) and below the last xml parameters.
The FIX server close the connection asking for missing fields.


Thanks for support
BR
Daniele


<default role="initiator"
fix_version="4400"
ip="127.0.0.1"
session_log="session_log_file"
protocol_log="protocol_log_file"
login_retry_interval="3000"
reset_sequence_numbers="true"
connect_timeout="3"
default_appl_ver_id="8"
heartbeat_interval="20"
tcp_nodelay="true"
always_seqnum_assign="false"
/* server_group="FO_Group0" if present means use failover */
process_model="threaded"
enforce_compids="false"
login_retries="5"
tabsize="3"
persist="file0" />

<session name="datasession"
sender_comp_id="mysender"
target_comp_id="mytarget"
active="true"
port="41233"
username="myuser"
password="mypass" />

<session name="tradingsession"
sender_comp_id="mysender"
target_comp_id="mytarget"
active="true"
port="41231"
username="myuser"
password="mypass" />
WS-Fix-Logon.png

Daniele Basaldella

unread,
May 30, 2016, 11:03:50 AM5/30/16
to fix8 support
nobody knows the argument?
autenticate to fix server with user and pw in normal channel (not encription)
How to specify login and pw in xml conf file and get them into the message?

Thanks
Daniele

dakka

unread,
Jun 2, 2016, 5:32:34 PM6/2/16
to fix8 support
The answer to this is described in the FAQ
/dakka

Daniele Basaldella

unread,
Jun 3, 2016, 10:52:36 AM6/3/16
to fix8 support
Dear Dakka,
this is not the case described in FAQ.
When I use that method everything is putted in the trait 96 "Raw Data".
I need to use the traits 553 and 554 as my provider expects.
A question, why standard fields requires changes to the code?

Please send me some clarifications
BR
Daniele

Ian McKane

unread,
Jun 3, 2016, 5:51:35 PM6/3/16
to fix8 support
Daniele - it is in the faq. Question 4.a. The method described in the faq simply tells you how to add custom fields to the logon. Why are you adding the example rawdata fields? you should be adding your username and password.

Username and password are not standard or mandatory fields and are not normally required for a FIX logon. Some exchanges and brokers may require it.

Ian
Reply all
Reply to author
Forward
0 new messages