vnpy/api/vn.ksgold/ksgoldapi/Constant.h

72 lines
1.9 KiB
C
Raw Normal View History

2016-07-02 03:12:44 +00:00
#ifndef _NEWCONSTANT_H
#define _NEWCONSTANT_H
//<2F>г<EFBFBD><D0B3><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:TMarketType
#define SPOT "00" //<2F>ֻ<EFBFBD>
#define DEFER "10" //<2F><><EFBFBD><EFBFBD>
#define FUTURES "11" //<2F>ڻ<EFBFBD>
#define FORWARD "01" //Զ<><D4B6>
#define DELIVERY "AP" //<2F><><EFBFBD><EFBFBD>
#define MIDDLE "MD" //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F>г<EFBFBD>״̬
#define M_INITING '0' //<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>
#define M_INIT '1' //<2F><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define M_OPEN '2' //<2F><><EFBFBD><EFBFBD>
#define M_TRADE '3' //<2F><><EFBFBD><EFBFBD>
#define M_PAUSE '4' //<2F><>ͣ
#define M_CLOSE '5' //<2F><><EFBFBD><EFBFBD>
//ί<>е<EFBFBD>״̬
#define Entrust_Sending '1' //1<><31><EFBFBD>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>ͣ<EFBFBD>
#define Entrust_Waiting '2' //2<><32><EFBFBD>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD><EFBFBD>
#define Entrust_In '3' //3<><33><EFBFBD>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD>
#define Entrust_All_Cancel '4' //4<><34>ȫ<EFBFBD><C8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define Entrust_All_Done '5' //5<><35>ȫ<EFBFBD><C8AB><EFBFBD>ɽ<EFBFBD><C9BD><EFBFBD>
#define Entrust_Part_Done '6' //6<><36><EFBFBD><EFBFBD><EFBFBD>ֳɽ<D6B3><C9BD><EFBFBD>
#define Entrust_Part_Done_Cancel '7' //7<><37><EFBFBD><EFBFBD><EFBFBD>ɲ<EFBFBD><C9B2><EFBFBD>
#define Entrust_Wait_Cancel '8' //<2F>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD><EFBFBD>
#define Entrust_Error '9' //<2F><><EFBFBD><EFBFBD>ί<EFBFBD><CEAF>
#define Entrust_By_Exch 'A' //<2F><><EFBFBD>ڳ<EFBFBD><DAB3><EFBFBD>
#define Entrust_By_Emergency 'B' //Ӧ<><D3A6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F><>ƽ<EFBFBD>ֱ<EFBFBD>־ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:TOffsetFlag
#define P_OPEN '0' //<2F><><EFBFBD><EFBFBD>
#define p_OFFSET '1' //ƽ<><C6BD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>:TBSFlag
#define BUY '0' //<2F><>
#define SELL '1' //<2F><>
//ί<><CEAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define SPOT_ENTRUST '0' //<2F>ֻ<EFBFBD>
#define TN_ENTRUST '4' //<2F>ֻ<EFBFBD>T+N
#define DEFER_ENTRUST '1' //<2F>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD>
#define DELIVERY_ENTRUST '2' //<2F><><EFBFBD><EFBFBD>
#define MIDDLE_ENTRUST '3' //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define COUNTER_CHANNEL '1' //<2F><>̨
#define TEL_CHANNEL '2' //<2F><EFBFBD><E7BBB0><EFBFBD><EFBFBD>
#define NET_CHANNEL '3' //<2F><><EFBFBD><EFBFBD>
#define TRADER_CHANNEL '4' //<2F><><EFBFBD><EFBFBD>Ա
#define SELF_CHANNEL '5' //<2F><><EFBFBD><EFBFBD><EFBFBD>ն<EFBFBD>
#define PHONE_CHANNEL '6' //<2F>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD>
#define TRADEAPI_CHANNEL '7' //<2F><><EFBFBD><EFBFBD>API
//<2F>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD>
#define CLIENT_SPOT '0' //<2F>ֻ<EFBFBD>
#define CLIENT_FUTURE '1' //<2F>ڻ<EFBFBD>
#define CLIENT_GENERAL '2' //ͨ<><CDA8>
//<2F><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>
#define BANKACC_TYPE "1" //<2F><><EFBFBD><EFBFBD><EFBFBD>˺ŵ<CBBA>¼
#define TRADECODE_TYPE "2" //<2F><><EFBFBD>ױ<EFBFBD><D7B1><EFBFBD><EFBFBD><EFBFBD>¼
//<2F><>Ծ<EFBFBD><D4BE>־
#define ACTIVITY_ON '1' //ѯ<>ۺ<EFBFBD>Լ
#endif _NEWCONSTANT_H