#define ONFRONTCONNECTED 1 #define ONFRONTDISCONNECTED 2 #define ONHEARTBEATWARNING 3 #define ONRSPERROR 4 #define ONRSPUSERLOGIN 5 #define ONRSPUSERLOGOUT 6 #define ONRSPORDERINSERT 7 #define ONRSPORDERACTION 8 #define ONRSPUSERPASSWORDUPDATE 9 #define ONRSPTRADINGACCOUNTPASSWORDUPDATE 10 #define ONRSPQRYEXCHANGE 11 #define ONRSPQRYINSTRUMENT 12 #define ONRSPQRYINVESTOR 13 #define ONRSPQRYTRADINGCODE 14 #define ONRSPQRYTRADINGACCOUNT 15 #define ONRSPQRYDEPTHMARKETDATA 16 #define ONRSPQRYBONDINTEREST 17 #define ONRSPQRYMARKETRATIONINFO 18 #define ONRSPQRYINSTRUMENTCOMMISSIONRATE 19 #define ONRSPQRYETFINSTRUMENT 20 #define ONRSPQRYETFBASKET 21 #define ONRSPQRYOFINSTRUMENT 22 #define ONRSPQRYSFINSTRUMENT 23 #define ONRSPQRYORDER 24 #define ONRSPQRYTRADE 25 #define ONRSPQRYINVESTORPOSITION 26 #define ONRTNORDER 27 #define ONRTNTRADE 28 #define ONERRRTNORDERINSERT 29 #define ONERRRTNORDERACTION 30 #define ONRSPFUNDOUTBYLIBER 31 #define ONRTNFUNDOUTBYLIBER 32 #define ONERRRTNFUNDOUTBYLIBER 33 #define ONRTNFUNDINBYBANK 34 #define ONRSPQRYFUNDTRANSFERSERIAL 35 #define ONRSPFUNDINTERTRANSFER 36 #define ONRSPQRYFUNDINTERTRANSFERSERIAL 37 #define ONRTNFUNDINTERTRANSFERSERIAL 38 #define ONERRRTNFUNDINTERTRANSFER 39