简体   繁体   English

使用QuickFix / n读取FIX日志文件

[英]Using QuickFix/n to read a FIX log file

I have a FIX format log file and a data structure I've built myself in C#. 我有一个FIX格式的日志文件和一个用C#构建的数据结构。 What I want to do is to run the log file in QuickFix and build my own event listener. 我要做的是在QuickFix中运行日志文件并构建我自己的事件侦听器。 In that listener, I'll convert the FIX types into the types I need and fill my DS. 在该侦听器中,我将把FIX类型转换为所需的类型,并填写我的DS。

I've been going through the QuickFix tutorials and examples, but couldn't figure it out. 我一直在浏览QuickFix教程和示例,但无法弄清楚。 I don't need it to go through a network or anything like that. 我不需要它通过网络或类似的东西。

Please help and thank you, Yonatan 请帮助,谢谢你,Yonatan

None of the QuickFIX ports provide this functionality. QuickFIX端口均不提供此功能。 At best, you could build a simple app that could read the logfile line-by-line and pass each line to QF's Message(string) constructor. 充其量,您可以构建一个简单的应用程序,该应用程序可以逐行读取日志文件,并将每一行传递给QF的Message(string)构造函数。 To convert that Message to a more specific type, you can feed it to a more-specific-type constructor, such as ExecutionReport(Message) . 要将Message转换为更特定的类型,可以将其提供给更特定类型的构造函数,例如ExecutionReport(Message)

The above are for the original C++ QF. 以上是原始的C ++ QF。 The other ports (QF/J and QF/n) should have similar mechanisms. 其他端口(QF / J和QF / n)应具有类似的机制。

You will not be able to use the MessageCracker to fire OnMessage() events because you're not actually listening on a session. 您将无法使用MessageCracker触发OnMessage()事件,因为您实际上并未在监听会话。 Instead, I'd recommend using a switch or doing an overload based on message class arguments. 相反,我建议使用开关或基于消息类参数进行重载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM