vnpy/vn.ksgold/ksgoldapi/APIError.h

26 lines
1.1 KiB
C
Raw Normal View History

#ifndef API_ERROR_H
#define API_ERROR_H
#define ERR_SUCCESS 0 //<2F>ɹ<EFBFBD>
#define ERR_UNKNOWN -1 //δ֪<CEB4><D6AA><EFBFBD><EFBFBD>
#define ERR_API_NOT_INITED -2 //APIδ<49><CEB4><EFBFBD><EFBFBD>
#define ERR_NOT_CONNECTED -3 //δ<><CEB4><EFBFBD><EFBFBD>
#define ERR_NOT_LOGIN -4 //δ<><CEB4>¼
#define ERR_ALREADY_LOGIN -5 //<2F>Ѿ<EFBFBD><D1BE><EFBFBD>¼
#define ERR_TIME_OUT -6 //<2F><>ʱ
#define ERR_STREAM_CONTROL -7//<2F>ܵ<EFBFBD><DCB5><EFBFBD><EFBFBD><EFBFBD>
#define ERR_LOGON_GATEWAY -8//<2F><>½<EFBFBD><C2BD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
#define ERR_REGISTER_QUOT -9//ע<><D7A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD>ʧ<EFBFBD><CAA7>
#define ERR_QUERY_QUOTSERVER_LIST -10//<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>վ<EFBFBD><D5BE>ʧ<EFBFBD><CAA7>
#define ERR_LOGOUT_BACK -11 //<2F>dz<EFBFBD>ʧ<EFBFBD><CAA7>,<2C><>̨<EFBFBD><CCA8><EFBFBD><EFBFBD>
#define ERR_LOGOUT_FORE -12 //<2F>dz<EFBFBD>ʧ<EFBFBD><CAA7>,ǰ̨<C7B0><CCA8><EFBFBD><EFBFBD>
#define ERR_QRY_DATA -13 //<2F><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
#define ERR_ORDER_INSERT -14 //<2F>µ<EFBFBD>ʧ<EFBFBD><CAA7>
#define ERR_ORDER_CANCEL -15 //<2F><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
#define ERR_EMPTY_PUBLICKEY -16 //<2F><>ԿΪ<D4BF><CEAA>
#define ERR_PASSWD_FORMAT -17 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD><EFBFBD>ȷ
#define ERR_REPEAT_INITED -18 //api<70>ظ<EFBFBD><D8B8><EFBFBD>ʼ<EFBFBD><CABC>
#define ERR_NET_INIT -19 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define ERR_GATEWAY_INIT -20 //<2F><><EFBFBD>س<EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define ERR_CHECK_VERSION -21 //<2F><EFBFBD><E6B1BE>֤ʧ<D6A4><CAA7>
#endif