FIX消息定界符 [英] FIX message delimiter

查看:151
本文介绍了FIX消息定界符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对FIX协议比较陌生.

I am relatively new to FIX-Protocol.

FIX协议消息的分隔符有时显示^,而其他时候显示|. FIX-协议的维基百科说 [SOH] (十六进制0x01的< 标头开始 >)是字符.

The delimiter for a FIX-Protocol message sometimes show ^ and other times |. Wikipedia for FIX-Protocol says [SOH] ( <Start of Header> for hex 0x01 ) being the character.

请解释一下含义.

例如,FIX协议消息可以可视化表示为

For example a FIX-Protocol message can be visually represented as

8=FIX.4.4^9=122^35=D^34=215^49=CLIENT12^52=20100225-19:41:57.316^56=B^1=Marcel^11=13346^21=1^40=2^44=5^54=1^59=0^60=20100225-19:39:52.020^10=072^

8=FIX.4.4|9=122|35=D|34=215|49=CLIENT12|52=20100225-19:41:57.316|56=B|1=Marcel|11=13346|21=1|40=2|44=5|54=1|59=0|60=20100225-19:39:52.020|10=072|

那么使用^ over |到底有什么区别?

So what exactly is the difference in using a ^ over |

是否也使用其他定界符.目前尚不清楚为什么 [SOH] (0x01)适合^或|

Are there other delimiters used as well. Its not clear why [SOH] (0x01) fits for ^ or |

它可能是数字1.

推荐答案

定界符SOH = ASCII代码01是不可打印的字符.查看消息的二进制表示形式(例如,在十六进制编辑器视图中),您会看到字符为0x01.为了显示消息,似乎有些人使用|,而另一些人使用^,这些字符很少使用,因此是一个很好的定界符.

The delimiter SOH = ASCII code 01 is a non-printable character. Looking at the binary representation of the message (e.g. in a hex editor view), you'll see the character as 0x01. To display the messages, it seems that some people use | and other use ^ which are rarely used characters and thus a good delimiter.

这篇关于FIX消息定界符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆