SmartQuant Discussion
http://www.smartquant.com/forums/

EmitExecutionReport Exception after OpenQuant Reboot
http://www.smartquant.com/forums/viewtopic.php?f=86&t=14852
Page 1 of 1

Author:  adam8560@163.com [ Tue Aug 21, 2018 8:02 am ]
Post subject:  EmitExecutionReport Exception after OpenQuant Reboot

The steps to make the exception happened is as the below:
1.The running strategy sent a limit buy order
2.Stop the strategy and close the OpenQuant 2014
3.Reboot the OpenQuant2014 and start the stragegy
4. Move to the view of order manager and righ click the pending limit buy order and select cancel
5. The provider will execute the cancel command and EmitExecutionReport to report the order status using EmitExecutionReport
6. And then the exception happened:

EventManager::OnException Exception occured in EventHandler - 08/21/2018 12:42:49.036 600113 ExecCancelReject Buy 0 - System.NullReferenceException: Object reference not set to an instance of an object.
at SmartQuant.OrderManager.QDsUnwB6Ic(ExecutionReport )
at SmartQuant.EventManager.gy0ybEfwg0(Event )
at SmartQuant.EventManager.OnEvent(Event e)


But if you don't reboot and restart the strategy, then everything is OK. Why?

Author:  skuvv [ Mon Sep 03, 2018 11:30 am ]
Post subject:  Re: EmitExecutionReport Exception after OpenQuant Reboot

Hello,
looks like you save executions using persistence.
In this case after rebooting of OQ2014 and loading of executions you have proper orders in OrderManager.
But it not enough for managing in real providers, because most of providers have additional specific information for orders or for working in general. After rebooting of OQ2014 this information cleaned.

I recommend that you restart OQ2014 only when all orders are done to prevent cases with management them.

ps I described only one of possible reasons of error.

Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/