Add user defined fields in the FIX dictionary

我的未来我决定 提交于 2019-11-28 21:38:38

The FIX Data Dictionary in QuickFIX contains Messages and Fields (among other things).

To add Messages you must add the message between the <messages></messages> tags like this:

<message name="CoolMessage" msgcat="app" msgtype="xCM">
    <field name="Currency" required="N"/>
    <field name="Text" required="N"/>
    <field name="Account" required="Y"/>
</message>

And then add the new msgtype to the MsgType field in the <fields></fields> section like this:

<field number='35' name='MsgType' type='STRING'>
    ...
    <value enum='xCM' description='COOLMESSAGE'/>
</field>

If you want to add new fields, just add them between the <fields></fields> tags like this:

<fields>
    <field number="1" name="Account" type="STRING"/>
    <field number="2" name="AdvId" type="STRING"/>
    <field number="3" name="AdvRefID" type="STRING"/>
    ...
    <field number="9006" name="AwesomeField" type="STRING"/>
</fields>

This and more information can be found in this tutorial.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!