-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble connecting #1
Comments
Wow! First issue =) Ok, it will be not easy, because I haven't touched it for 5 years, but let's try to help you. First enable Debug == true:
and let's check what do you send. You need to know that every FIX server and provider has his own reading of FIX protocol. It will strictly depend on your provider. Do you have manual from them? |
What I posted earlier is with Debug on ( i'm calling the library from Elixir ). |
try to put hardcoded value here: https://github.com/maxlapshin/fix/blob/master/src/fix.erl#L85 sender_sub_id is known field. |
It evolves :) |
https://github.com/maxlapshin/fix/blob/master/src/fix_read_conn.erl#L208 add {username,...} to list of fields. |
Login works! fix_read_conn:304 subscribe 1 20, [{symbol,<<"1">>},
|
58=ALREADY_LOGGED_IN:Already logged in is because there is a try for second connection. Are you sure that you do not have second tcp connection to them? |
Found the issue. My connection in dev environnement is a bit slow and a 500ms network timeout made the client reconnect. fix_read_manager:78 {unknown_fix,fix_read, {fix,<0.455.0>, {reject,<<"20171025-10:15:52.743">>,2,207,<<"V">>,2,<<"Tag not defined for this message type">>,undefined,[{sender_sub_id,<<"QUOTE">>}]},
|
Hi, |
Hi,
I'm trying to establish a connection, but it keeps on failing
fix_read_conn:226 {send,<<"8=FIX.4.4|9=95|35=A|49=fxpro.xxxxxxxx|56=cServer|34=1|52=20171025-05:43:10.085|98=0|108=30|141=Y|554=xxxxxxxx|10=065|">>} fix_connection:23 {in,<<"8=FIX.4.4|9=138|35=5|34=1|49=cServer|52=20171025-05:43:11.350|56=fxpro.xxxxxxxx|58=TargetSubID is assigned with the unexpected value '', expected 'QUOTE'|10=223|">>}
In my connection parameter given by my broker, i have a SenderSubID, should I use it as well ? if yes, how?
Thanks :)
The text was updated successfully, but these errors were encountered: