-
Notifications
You must be signed in to change notification settings - Fork 37
auto detect seperator #42
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
base: master
Are you sure you want to change the base?
Conversation
Using the string between field 8= and 35= as seperator. Allow multiple char seperators.
c6fd624 to
d4e6cc8
Compare
|
Thanks for the PR! Can you share some data to test this change with, that shows a case where it improves parsing? |
|
Because different software products different foormat of FIX log, the Following is several types of log we have met: |
Are we sure about that? I don't work much with FIX at the moment. My recollection of FIX is that there are very few standard behaviours in the wild. I'm all for auto-detecting the separator, but I am concerned about doing so based on an assumption that might not be universally true. |
|
Hi both,
indeed FIX tags 8/9/35 are some sort of usual start in messages for what I
saw in my FIX years, but I also remember that FIX can have very "exotic"
variations to say the least ;-)
I guess adding some sort of auto-detection is indeed nice.
It would be good if the detection is not "stubborn" and behave like an
extra "magic" feature if it detects a format, and just quietly does nothing
(or maybe a little warning in the UI) if the format is not matching a list
a pre-configured formats (that users may be able to customize?)
Sorry if I am not clear ...
…On Fri, 24 Feb 2023 at 10:27, Drew Noakes ***@***.***> wrote:
Because the first 3 tags in FIX message is 8/9/35
Are we sure about that? I don't work much with FIX at the moment. My
recollection of FIX is that there are very few standard behaviours in the
wild. I'm all for auto-detecting the separator, but I am concerned about
doing so based on an assumption that might not be universally true.
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFVM3VBS37PD4MYOBVOKYTWZB5HRANCNFSM6AAAAAAUP5I4ZY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
In page 20 of the
So, if we use the standard header, it should works. If not, this algorithm will fall back to one of the seperators ( |
Because the first 3 tags in FIX message is 8/9/35, we can assume the same seperator is used in whole message, so we can detect it from these 3 tags.
Because the value of
9=is always numbers, so we can use the string from the first non-number charater after9=to35=as seperator.