#define ONFRONTCONNECTED 1 #define ONFRONTDISCONNECTED 2 #define ONHEARTBEATWARNING 3 #define ONRSPERROR 4 #define ONRSPUSERLOGIN 5 #define ONRSPUSERLOGOUT 6 #define ONRSPSUBL2MARKETDATA 7 #define ONRSPUNSUBL2MARKETDATA 8 #define ONRSPSUBL2INDEX 9 #define ONRSPUNSUBL2INDEX 10 #define ONRTNL2MARKETDATA 11 #define ONRTNL2INDEX 12 #define ONRSPSUBL2ORDERANDTRADE 13 #define ONRSPUNSUBL2ORDERANDTRADE 14 #define ONRTNL2ORDER 15 #define ONRTNL2TRADE 16 #define ONNTFCHECKORDERLIST 17