[Quickfix-developers] Tradeclient and ODBC
Brought to you by:
orenmnero
|
From: Frank J. <fra...@ho...> - 2006-09-13 18:30:19
|
I'm familiar with FIX, but new to QuickFix and programming FIX in general,
and have been using the Tradeclient application to get a feel for both.
The default configuration of TradeClient uses files on the local machine to
store messages/settings, and I am trying instead to use mssql to do so.
My question is twofold- First off, in the .body file, it's seems to be only
saving the outgoing messages and none of the incoming ones. Is there
additional config that needs to be done to save incoming messages?
Second involves using the ODBC to store things. It was compiled with ODBC
support, some of tradeclient.cpp was altered. Currently the 'sessions'
table is being written to, as is the table 'messages', although the
'message' column in the 'messages' table only has '8=FIX.4.2' for a value.
None of the sent orders are showing up anywhere, nor are any reports from
the server.
The tables 'event_log' and 'messages_log' never get written to.
What needs to be done to write to the two _log tables, log incoming
messages, and log the entirety of the messages (not just the header)?
Here's the code that was added/altered from tradeclient.cpp:
...
FIX::OdbcStoreFactory m_factory("sa","","DATABASE=quickfix;DRIVER={SQL
Server};SERVER=x.x.x.x;");
FIX::SessionID sessionID( FIX::BeginString( "FIX.4.2" ), FIX::SenderCompID(
"TEST" ), FIX::TargetCompID( "SERV" ) );
m_factory.create(sessionID);
FIX::SocketInitiator initiator( application, m_factory, settings );
...
I see the definition for FIX::OdbcLog, but don't know how/where do implement
it.
This is with version 1.12.2
Any help would be greatly appreciated.
Thanks
Frank
_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
|