#define ONFRONTCONNECTED 1 #define ONFRONTDISCONNECTED 2 #define ONHEARTBEATWARNING 3 #define ONPACKAGESTART 4 #define ONPACKAGEEND 5 #define ONRSPERROR 6 #define ONRSPUSERLOGIN 7 #define ONRSPUSERLOGOUT 8 #define ONRSPUSERPASSWORDUPDATE 9 #define ONRSPORDERINSERT 10 #define ONRSPORDERACTION 11 #define ONRTNFLOWMESSAGECANCEL 12 #define ONRTNTRADE 13 #define ONRTNORDER 14 #define ONERRRTNORDERINSERT 15 #define ONERRRTNORDERACTION 16 #define ONRTNINSTRUMENTSTATUS 17 #define ONRTNINVESTORACCOUNTDEPOSIT 18 #define ONRSPQRYORDER 19 #define ONRSPQRYTRADE 20 #define ONRSPQRYUSERINVESTOR 21 #define ONRSPQRYTRADINGCODE 22 #define ONRSPQRYINVESTORACCOUNT 23 #define ONRSPQRYINSTRUMENT 24 #define ONRSPQRYEXCHANGE 25 #define ONRSPQRYINVESTORPOSITION 26 #define ONRSPSUBSCRIBETOPIC 27 #define ONRSPQRYCOMPLIANCEPARAM 28 #define ONRSPQRYTOPIC 29 #define ONRSPQRYINVESTORFEE 30 #define ONRSPQRYINVESTORMARGIN 31