public override void onMessage(QuickFix44.UserResponse message, SessionID session) { // getting attributes UserRequestID userRequestID = message.getUserRequestID(); Username username = message.getUsername(); // firing event Console.WriteLine("QuickFix44.ExecutionReport: {0}, {1}", userRequestID, username); }
/** * Retrieve and process the user requests. Initially part of the login process */ public override void onMessage(QuickFix44.UserResponse response, QuickFix.SessionID session) { // send notification Console.WriteLine("UserResponse received"); // check if the credentials used have been accepted if (response.getInt(QuickFix.UserStatus.FIELD) == QuickFix.UserStatus.LOGGED_IN) { // create a new TradingSessionStatusRequest QuickFix44.TradingSessionStatusRequest statusRequest = new QuickFix44.TradingSessionStatusRequest(); // set the RequestID statusRequest.set(new QuickFix.TradSesReqID(this.username + "_TSSR_" + nextID())); // set the subscription type statusRequest.set(subscriptionType); // send notification Console.WriteLine("TradingSessionStatusRequest sent"); // send the message to the API send(statusRequest, session); } }