Quantcast

Query on sending and receiving FIX app message

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Query on sending and receiving FIX app message

郭程
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Hi, 

I'm trying to implement the below scenario, however got some issues, could anyone help this? 
I want the initiator to send trade capture report request to the "acceptor" after logon successfully, then acceptor response the trade capture report, however, when acceptor receive the msg,  throw the "Unsupported Message Type", so couldnt handle this request
Also how acceptor response the trade capture to Initiator after successfully processed this request, can be implemented in the fromApp() method? 
May I have your suggestion on this?

the trade capture report request message was sent in the initiator onlogon(SessionID sessionID)  method like:
{
    quickfix.fix44.TradeCaptureReportRequest test = new  quickfix.fix44.TradeCaptureReportRequest();
    test.set(new Text("requesting capture report"));
    test.set(new TradeRequestType(0));
    test.set(new TradeRequestID("0"));
    Session.sendToTarget(test, "XXXXXXX", "XXXXXXX")
}

Acceptor side, in fromApp(...) method:
    crack(message, sessionID);
    // implemented the response here???
}



thanks,
Cheng



 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Query on sending and receiving FIX app message

Robert Engels-2
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



You should review the code in the provided samples. It will show you how to do it.

On Apr 13, 2017, at 9:55 AM, 郭程 <[hidden email]> wrote:

QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi, 

I'm trying to implement the below scenario, however got some issues, could anyone help this? 
I want the initiator to send trade capture report request to the "acceptor" after logon successfully, then acceptor response the trade capture report, however, when acceptor receive the msg,  throw the "Unsupported Message Type", so couldnt handle this request
Also how acceptor response the trade capture to Initiator after successfully processed this request, can be implemented in the fromApp() method? 
May I have your suggestion on this?

the trade capture report request message was sent in the initiator onlogon(SessionID sessionID)  method like:
{
    quickfix.fix44.TradeCaptureReportRequest test = new  quickfix.fix44.TradeCaptureReportRequest();
    test.set(new Text("requesting capture report"));
    test.set(new TradeRequestType(0));
    test.set(new TradeRequestID("0"));
    Session.sendToTarget(test, "XXXXXXX", "XXXXXXX")
}

Acceptor side, in fromApp(...) method:
    crack(message, sessionID);
    // implemented the response here???
}



thanks,
Cheng



 
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Query on sending and receiving FIX app message

Mike Gatny
In reply to this post by 郭程
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



Cheng,

The crack() method calls an onMessage(...) method based on the MsgType of the message.

So you need to define the following method:

public void onMessage(TradeCaptureReport msg, SessionID sessionID) throws FieldNotFound
{
  // implement the response here
}

Quickfix automatically sends an Unsupported Message Type message if you have not defined the onMessage(...) method for the message you are cracking.

--
Mike Gatny
Connamara Systems, LLC

On Thu, Apr 13, 2017 at 10:55 AM, 郭程 <[hidden email]> wrote:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J
Support: http://www.quickfixj.org/support/



Hi, 

I'm trying to implement the below scenario, however got some issues, could anyone help this? 
I want the initiator to send trade capture report request to the "acceptor" after logon successfully, then acceptor response the trade capture report, however, when acceptor receive the msg,  throw the "Unsupported Message Type", so couldnt handle this request
Also how acceptor response the trade capture to Initiator after successfully processed this request, can be implemented in the fromApp() method? 
May I have your suggestion on this?

the trade capture report request message was sent in the initiator onlogon(SessionID sessionID)  method like:
{
    quickfix.fix44.TradeCaptureReportRequest test = new  quickfix.fix44.TradeCaptureReportRequest();
    test.set(new Text("requesting capture report"));
    test.set(new TradeRequestType(0));
    test.set(new TradeRequestID("0"));
    Session.sendToTarget(test, "XXXXXXX", "XXXXXXX")
}

Acceptor side, in fromApp(...) method:
    crack(message, sessionID);
    // implemented the response here???
}



thanks,
Cheng



 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...