@hitrading/ctp-node 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +208 -0
  3. package/README.zh-CN.md +185 -0
  4. package/binding.gyp +90 -0
  5. package/dist/client.d.ts +115 -0
  6. package/dist/client.d.ts.map +1 -0
  7. package/dist/client.js +466 -0
  8. package/dist/client.js.map +1 -0
  9. package/dist/codec.d.ts +29 -0
  10. package/dist/codec.d.ts.map +1 -0
  11. package/dist/codec.js +131 -0
  12. package/dist/codec.js.map +1 -0
  13. package/dist/generated/enums.gen.d.ts +2257 -0
  14. package/dist/generated/enums.gen.d.ts.map +1 -0
  15. package/dist/generated/enums.gen.js +2576 -0
  16. package/dist/generated/enums.gen.js.map +1 -0
  17. package/dist/generated/structs.gen.d.ts +11041 -0
  18. package/dist/generated/structs.gen.d.ts.map +1 -0
  19. package/dist/generated/structs.gen.js +939 -0
  20. package/dist/generated/structs.gen.js.map +1 -0
  21. package/dist/generated/trader.gen.d.ts +273 -0
  22. package/dist/generated/trader.gen.d.ts.map +1 -0
  23. package/dist/generated/trader.gen.js +653 -0
  24. package/dist/generated/trader.gen.js.map +1 -0
  25. package/dist/index.d.ts +9 -0
  26. package/dist/index.d.ts.map +1 -0
  27. package/dist/index.js +9 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/market-data.d.ts +66 -0
  30. package/dist/market-data.d.ts.map +1 -0
  31. package/dist/market-data.js +105 -0
  32. package/dist/market-data.js.map +1 -0
  33. package/dist/native-binding.d.ts +2 -0
  34. package/dist/native-binding.d.ts.map +1 -0
  35. package/dist/native-binding.js +22 -0
  36. package/dist/native-binding.js.map +1 -0
  37. package/dist/trader.d.ts +234 -0
  38. package/dist/trader.d.ts.map +1 -0
  39. package/dist/trader.js +388 -0
  40. package/dist/trader.js.map +1 -0
  41. package/package.json +69 -0
  42. package/prebuilds/linux-x64/@hitrading+ctp-node.node +0 -0
  43. package/prebuilds/linux-x64/thostmduserapi_se.so +0 -0
  44. package/prebuilds/linux-x64/thosttraderapi_se.so +0 -0
  45. package/prebuilds/win32-x64/@hitrading+ctp-node.node +0 -0
  46. package/prebuilds/win32-x64/thostmduserapi_se.dll +0 -0
  47. package/prebuilds/win32-x64/thosttraderapi_se.dll +0 -0
  48. package/src/addon.cc +171 -0
  49. package/src/client.ts +539 -0
  50. package/src/codec.ts +160 -0
  51. package/src/generated/enums.gen.ts +2576 -0
  52. package/src/generated/layout.gen.cc +5771 -0
  53. package/src/generated/layout.gen.h +8 -0
  54. package/src/generated/structids.gen.h +470 -0
  55. package/src/generated/structs.gen.ts +12437 -0
  56. package/src/generated/trader.gen.ts +656 -0
  57. package/src/generated/traderreq.gen.cc +706 -0
  58. package/src/generated/traderreq.gen.h +127 -0
  59. package/src/generated/traderspi.gen.cc +636 -0
  60. package/src/generated/traderspi.gen.h +334 -0
  61. package/src/index.ts +14 -0
  62. package/src/market-data.ts +145 -0
  63. package/src/native/arm.cc +77 -0
  64. package/src/native/arm.h +71 -0
  65. package/src/native/channel.cc +175 -0
  66. package/src/native/channel.h +117 -0
  67. package/src/native/gbk.cc +54 -0
  68. package/src/native/gbk.h +17 -0
  69. package/src/native/mdapi.cc +412 -0
  70. package/src/native/mdapi.h +14 -0
  71. package/src/native/mdspi.cc +103 -0
  72. package/src/native/mdspi.h +81 -0
  73. package/src/native/risk.cc +461 -0
  74. package/src/native/risk.h +183 -0
  75. package/src/native/traderapi.cc +533 -0
  76. package/src/native/traderapi.h +14 -0
  77. package/src/native-binding.ts +25 -0
  78. package/src/trader.ts +522 -0
  79. package/tradeapi/ThostFtdcMdApi.h +168 -0
  80. package/tradeapi/ThostFtdcTraderApi.h +914 -0
  81. package/tradeapi/ThostFtdcUserApiDataType.h +7068 -0
  82. package/tradeapi/ThostFtdcUserApiStruct.h +12386 -0
  83. package/tradeapi/error.dtd +9 -0
  84. package/tradeapi/error.xml +284 -0
  85. package/tradeapi/linux/thostmduserapi_se.so +0 -0
  86. package/tradeapi/linux/thosttraderapi_se.so +0 -0
  87. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcMdApi.h +168 -0
  88. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +7068 -0
  89. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +12386 -0
  90. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -0
  91. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -0
  92. package/tradeapi/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
  93. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcTraderApi.h +914 -0
  94. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +7068 -0
  95. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiStruct.h +12386 -0
  96. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -0
  97. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -0
  98. package/tradeapi/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
  99. package/tradeapi/windows/thostmduserapi_se.dll +0 -0
  100. package/tradeapi/windows/thostmduserapi_se.lib +0 -0
  101. package/tradeapi/windows/thosttraderapi_se.dll +0 -0
  102. package/tradeapi/windows/thosttraderapi_se.lib +0 -0
@@ -0,0 +1,2576 @@
1
+ /* AUTO-GENERATED by scripts/codegen/generate.mjs. Do not edit. */
2
+ /** TThostFtdcExchangePropertyType */
3
+ export var ExchangeProperty;
4
+ (function (ExchangeProperty) {
5
+ ExchangeProperty["Normal"] = "0";
6
+ ExchangeProperty["GenOrderByTrade"] = "1";
7
+ })(ExchangeProperty || (ExchangeProperty = {}));
8
+ /** TThostFtdcIdCardTypeType */
9
+ export var IdCardType;
10
+ (function (IdCardType) {
11
+ IdCardType["EID"] = "0";
12
+ IdCardType["IDCard"] = "1";
13
+ IdCardType["OfficerIDCard"] = "2";
14
+ IdCardType["PoliceIDCard"] = "3";
15
+ IdCardType["SoldierIDCard"] = "4";
16
+ IdCardType["HouseholdRegister"] = "5";
17
+ IdCardType["Passport"] = "6";
18
+ IdCardType["TaiwanCompatriotIDCard"] = "7";
19
+ IdCardType["HomeComingCard"] = "8";
20
+ IdCardType["LicenseNo"] = "9";
21
+ IdCardType["TaxNo"] = "A";
22
+ IdCardType["HMMainlandTravelPermit"] = "B";
23
+ IdCardType["TwMainlandTravelPermit"] = "C";
24
+ IdCardType["DrivingLicense"] = "D";
25
+ IdCardType["SocialID"] = "F";
26
+ IdCardType["LocalID"] = "G";
27
+ IdCardType["BusinessRegistration"] = "H";
28
+ IdCardType["HKMCIDCard"] = "I";
29
+ IdCardType["AccountsPermits"] = "J";
30
+ IdCardType["FrgPrmtRdCard"] = "K";
31
+ IdCardType["CptMngPrdLetter"] = "L";
32
+ IdCardType["HKMCTwResidencePermit"] = "M";
33
+ IdCardType["UniformSocialCreditCode"] = "N";
34
+ IdCardType["CorporationCertNo"] = "O";
35
+ IdCardType["OtherCard"] = "x";
36
+ })(IdCardType || (IdCardType = {}));
37
+ /** TThostFtdcInvestorRangeType */
38
+ export var InvestorRange;
39
+ (function (InvestorRange) {
40
+ InvestorRange["All"] = "1";
41
+ InvestorRange["Group"] = "2";
42
+ InvestorRange["Single"] = "3";
43
+ })(InvestorRange || (InvestorRange = {}));
44
+ /** TThostFtdcDepartmentRangeType */
45
+ export var DepartmentRange;
46
+ (function (DepartmentRange) {
47
+ DepartmentRange["All"] = "1";
48
+ DepartmentRange["Group"] = "2";
49
+ DepartmentRange["Single"] = "3";
50
+ })(DepartmentRange || (DepartmentRange = {}));
51
+ /** TThostFtdcDataSyncStatusType */
52
+ export var DataSyncStatus;
53
+ (function (DataSyncStatus) {
54
+ DataSyncStatus["Asynchronous"] = "1";
55
+ DataSyncStatus["Synchronizing"] = "2";
56
+ DataSyncStatus["Synchronized"] = "3";
57
+ })(DataSyncStatus || (DataSyncStatus = {}));
58
+ /** TThostFtdcBrokerDataSyncStatusType */
59
+ export var BrokerDataSyncStatus;
60
+ (function (BrokerDataSyncStatus) {
61
+ BrokerDataSyncStatus["Synchronized"] = "1";
62
+ BrokerDataSyncStatus["Synchronizing"] = "2";
63
+ })(BrokerDataSyncStatus || (BrokerDataSyncStatus = {}));
64
+ /** TThostFtdcExchangeConnectStatusType */
65
+ export var ExchangeConnectStatus;
66
+ (function (ExchangeConnectStatus) {
67
+ ExchangeConnectStatus["NoConnection"] = "1";
68
+ ExchangeConnectStatus["QryInstrumentSent"] = "2";
69
+ ExchangeConnectStatus["GotInformation"] = "9";
70
+ })(ExchangeConnectStatus || (ExchangeConnectStatus = {}));
71
+ /** TThostFtdcTraderConnectStatusType */
72
+ export var TraderConnectStatus;
73
+ (function (TraderConnectStatus) {
74
+ TraderConnectStatus["NotConnected"] = "1";
75
+ TraderConnectStatus["Connected"] = "2";
76
+ TraderConnectStatus["QryInstrumentSent"] = "3";
77
+ TraderConnectStatus["SubPrivateFlow"] = "4";
78
+ })(TraderConnectStatus || (TraderConnectStatus = {}));
79
+ /** TThostFtdcFunctionCodeType */
80
+ export var FunctionCode;
81
+ (function (FunctionCode) {
82
+ FunctionCode["DataAsync"] = "1";
83
+ FunctionCode["ForceUserLogout"] = "2";
84
+ FunctionCode["UserPasswordUpdate"] = "3";
85
+ FunctionCode["BrokerPasswordUpdate"] = "4";
86
+ FunctionCode["InvestorPasswordUpdate"] = "5";
87
+ FunctionCode["OrderInsert"] = "6";
88
+ FunctionCode["OrderAction"] = "7";
89
+ FunctionCode["SyncSystemData"] = "8";
90
+ FunctionCode["SyncBrokerData"] = "9";
91
+ FunctionCode["BachSyncBrokerData"] = "A";
92
+ FunctionCode["SuperQuery"] = "B";
93
+ FunctionCode["ParkedOrderInsert"] = "C";
94
+ FunctionCode["ParkedOrderAction"] = "D";
95
+ FunctionCode["SyncOTP"] = "E";
96
+ FunctionCode["DeleteOrder"] = "F";
97
+ })(FunctionCode || (FunctionCode = {}));
98
+ /** TThostFtdcBrokerFunctionCodeType */
99
+ export var BrokerFunctionCode;
100
+ (function (BrokerFunctionCode) {
101
+ BrokerFunctionCode["ForceUserLogout"] = "1";
102
+ BrokerFunctionCode["UserPasswordUpdate"] = "2";
103
+ BrokerFunctionCode["SyncBrokerData"] = "3";
104
+ BrokerFunctionCode["BachSyncBrokerData"] = "4";
105
+ BrokerFunctionCode["OrderInsert"] = "5";
106
+ BrokerFunctionCode["OrderAction"] = "6";
107
+ BrokerFunctionCode["AllQuery"] = "7";
108
+ BrokerFunctionCode["log"] = "a";
109
+ BrokerFunctionCode["BaseQry"] = "b";
110
+ BrokerFunctionCode["TradeQry"] = "c";
111
+ BrokerFunctionCode["Trade"] = "d";
112
+ BrokerFunctionCode["Virement"] = "e";
113
+ BrokerFunctionCode["Risk"] = "f";
114
+ BrokerFunctionCode["Session"] = "g";
115
+ BrokerFunctionCode["RiskNoticeCtl"] = "h";
116
+ BrokerFunctionCode["RiskNotice"] = "i";
117
+ BrokerFunctionCode["BrokerDeposit"] = "j";
118
+ BrokerFunctionCode["QueryFund"] = "k";
119
+ BrokerFunctionCode["QueryOrder"] = "l";
120
+ BrokerFunctionCode["QueryTrade"] = "m";
121
+ BrokerFunctionCode["QueryPosition"] = "n";
122
+ BrokerFunctionCode["QueryMarketData"] = "o";
123
+ BrokerFunctionCode["QueryUserEvent"] = "p";
124
+ BrokerFunctionCode["QueryRiskNotify"] = "q";
125
+ BrokerFunctionCode["QueryFundChange"] = "r";
126
+ BrokerFunctionCode["QueryInvestor"] = "s";
127
+ BrokerFunctionCode["QueryTradingCode"] = "t";
128
+ BrokerFunctionCode["ForceClose"] = "u";
129
+ BrokerFunctionCode["PressTest"] = "v";
130
+ BrokerFunctionCode["RemainCalc"] = "w";
131
+ BrokerFunctionCode["NetPositionInd"] = "x";
132
+ BrokerFunctionCode["RiskPredict"] = "y";
133
+ BrokerFunctionCode["DataExport"] = "z";
134
+ BrokerFunctionCode["RiskTargetSetup"] = "A";
135
+ BrokerFunctionCode["MarketDataWarn"] = "B";
136
+ BrokerFunctionCode["QryBizNotice"] = "C";
137
+ BrokerFunctionCode["CfgBizNotice"] = "D";
138
+ BrokerFunctionCode["SyncOTP"] = "E";
139
+ BrokerFunctionCode["SendBizNotice"] = "F";
140
+ BrokerFunctionCode["CfgRiskLevelStd"] = "G";
141
+ BrokerFunctionCode["TbCommand"] = "H";
142
+ BrokerFunctionCode["DeleteOrder"] = "J";
143
+ BrokerFunctionCode["ParkedOrderInsert"] = "K";
144
+ BrokerFunctionCode["ParkedOrderAction"] = "L";
145
+ BrokerFunctionCode["ExecOrderNoCheck"] = "M";
146
+ BrokerFunctionCode["Designate"] = "N";
147
+ BrokerFunctionCode["StockDisposal"] = "O";
148
+ BrokerFunctionCode["BrokerDepositWarn"] = "Q";
149
+ BrokerFunctionCode["CoverWarn"] = "S";
150
+ BrokerFunctionCode["PreExecOrder"] = "T";
151
+ BrokerFunctionCode["ExecOrderRisk"] = "P";
152
+ BrokerFunctionCode["PosiLimitWarn"] = "U";
153
+ BrokerFunctionCode["QryPosiLimit"] = "V";
154
+ BrokerFunctionCode["FBSign"] = "W";
155
+ BrokerFunctionCode["FBAccount"] = "X";
156
+ })(BrokerFunctionCode || (BrokerFunctionCode = {}));
157
+ /** TThostFtdcOrderActionStatusType */
158
+ export var OrderActionStatus;
159
+ (function (OrderActionStatus) {
160
+ OrderActionStatus["Submitted"] = "a";
161
+ OrderActionStatus["Accepted"] = "b";
162
+ OrderActionStatus["Rejected"] = "c";
163
+ })(OrderActionStatus || (OrderActionStatus = {}));
164
+ /** TThostFtdcOrderStatusType */
165
+ export var OrderStatus;
166
+ (function (OrderStatus) {
167
+ OrderStatus["AllTraded"] = "0";
168
+ OrderStatus["PartTradedQueueing"] = "1";
169
+ OrderStatus["PartTradedNotQueueing"] = "2";
170
+ OrderStatus["NoTradeQueueing"] = "3";
171
+ OrderStatus["NoTradeNotQueueing"] = "4";
172
+ OrderStatus["Canceled"] = "5";
173
+ OrderStatus["Unknown"] = "a";
174
+ OrderStatus["NotTouched"] = "b";
175
+ OrderStatus["Touched"] = "c";
176
+ })(OrderStatus || (OrderStatus = {}));
177
+ /** TThostFtdcOrderSubmitStatusType */
178
+ export var OrderSubmitStatus;
179
+ (function (OrderSubmitStatus) {
180
+ OrderSubmitStatus["InsertSubmitted"] = "0";
181
+ OrderSubmitStatus["CancelSubmitted"] = "1";
182
+ OrderSubmitStatus["ModifySubmitted"] = "2";
183
+ OrderSubmitStatus["Accepted"] = "3";
184
+ OrderSubmitStatus["InsertRejected"] = "4";
185
+ OrderSubmitStatus["CancelRejected"] = "5";
186
+ OrderSubmitStatus["ModifyRejected"] = "6";
187
+ })(OrderSubmitStatus || (OrderSubmitStatus = {}));
188
+ /** TThostFtdcPositionDateType */
189
+ export var PositionDate;
190
+ (function (PositionDate) {
191
+ PositionDate["Today"] = "1";
192
+ PositionDate["History"] = "2";
193
+ })(PositionDate || (PositionDate = {}));
194
+ /** TThostFtdcPositionDateTypeType */
195
+ export var PositionDateType;
196
+ (function (PositionDateType) {
197
+ PositionDateType["UseHistory"] = "1";
198
+ PositionDateType["NoUseHistory"] = "2";
199
+ })(PositionDateType || (PositionDateType = {}));
200
+ /** TThostFtdcTradingRoleType */
201
+ export var TradingRole;
202
+ (function (TradingRole) {
203
+ TradingRole["Broker"] = "1";
204
+ TradingRole["Host"] = "2";
205
+ TradingRole["Maker"] = "3";
206
+ })(TradingRole || (TradingRole = {}));
207
+ /** TThostFtdcProductClassType */
208
+ export var ProductClass;
209
+ (function (ProductClass) {
210
+ ProductClass["Futures"] = "1";
211
+ ProductClass["Options"] = "2";
212
+ ProductClass["Combination"] = "3";
213
+ ProductClass["Spot"] = "4";
214
+ ProductClass["EFP"] = "5";
215
+ ProductClass["SpotOption"] = "6";
216
+ ProductClass["TAS"] = "7";
217
+ ProductClass["MI"] = "I";
218
+ })(ProductClass || (ProductClass = {}));
219
+ /** TThostFtdcAPIProductClassType */
220
+ export var APIProductClass;
221
+ (function (APIProductClass) {
222
+ APIProductClass["FutureSingle"] = "1";
223
+ APIProductClass["OptionSingle"] = "2";
224
+ APIProductClass["Futures"] = "3";
225
+ APIProductClass["Options"] = "4";
226
+ APIProductClass["TradingComb"] = "5";
227
+ APIProductClass["UnTradingComb"] = "6";
228
+ APIProductClass["AllTrading"] = "7";
229
+ APIProductClass["All"] = "8";
230
+ })(APIProductClass || (APIProductClass = {}));
231
+ /** TThostFtdcInstLifePhaseType */
232
+ export var InstLifePhase;
233
+ (function (InstLifePhase) {
234
+ InstLifePhase["NotStart"] = "0";
235
+ InstLifePhase["Started"] = "1";
236
+ InstLifePhase["Pause"] = "2";
237
+ InstLifePhase["Expired"] = "3";
238
+ })(InstLifePhase || (InstLifePhase = {}));
239
+ /** TThostFtdcDirectionType */
240
+ export var Direction;
241
+ (function (Direction) {
242
+ Direction["Buy"] = "0";
243
+ Direction["Sell"] = "1";
244
+ })(Direction || (Direction = {}));
245
+ /** TThostFtdcPositionTypeType */
246
+ export var PositionType;
247
+ (function (PositionType) {
248
+ PositionType["Net"] = "1";
249
+ PositionType["Gross"] = "2";
250
+ })(PositionType || (PositionType = {}));
251
+ /** TThostFtdcPosiDirectionType */
252
+ export var PosiDirection;
253
+ (function (PosiDirection) {
254
+ PosiDirection["Net"] = "1";
255
+ PosiDirection["Long"] = "2";
256
+ PosiDirection["Short"] = "3";
257
+ })(PosiDirection || (PosiDirection = {}));
258
+ /** TThostFtdcSysSettlementStatusType */
259
+ export var SysSettlementStatus;
260
+ (function (SysSettlementStatus) {
261
+ SysSettlementStatus["NonActive"] = "1";
262
+ SysSettlementStatus["Startup"] = "2";
263
+ SysSettlementStatus["Operating"] = "3";
264
+ SysSettlementStatus["Settlement"] = "4";
265
+ SysSettlementStatus["SettlementFinished"] = "5";
266
+ })(SysSettlementStatus || (SysSettlementStatus = {}));
267
+ /** TThostFtdcRatioAttrType */
268
+ export var RatioAttr;
269
+ (function (RatioAttr) {
270
+ RatioAttr["Trade"] = "0";
271
+ RatioAttr["Settlement"] = "1";
272
+ })(RatioAttr || (RatioAttr = {}));
273
+ /** TThostFtdcHedgeFlagType */
274
+ export var HedgeFlag;
275
+ (function (HedgeFlag) {
276
+ HedgeFlag["Speculation"] = "1";
277
+ HedgeFlag["Arbitrage"] = "2";
278
+ HedgeFlag["Hedge"] = "3";
279
+ HedgeFlag["MarketMaker"] = "5";
280
+ HedgeFlag["SpecHedge"] = "6";
281
+ HedgeFlag["HedgeSpec"] = "7";
282
+ })(HedgeFlag || (HedgeFlag = {}));
283
+ /** TThostFtdcBillHedgeFlagType */
284
+ export var BillHedgeFlag;
285
+ (function (BillHedgeFlag) {
286
+ BillHedgeFlag["Speculation"] = "1";
287
+ BillHedgeFlag["Arbitrage"] = "2";
288
+ BillHedgeFlag["Hedge"] = "3";
289
+ })(BillHedgeFlag || (BillHedgeFlag = {}));
290
+ /** TThostFtdcClientIDTypeType */
291
+ export var ClientIDType;
292
+ (function (ClientIDType) {
293
+ ClientIDType["Speculation"] = "1";
294
+ ClientIDType["Arbitrage"] = "2";
295
+ ClientIDType["Hedge"] = "3";
296
+ ClientIDType["MarketMaker"] = "5";
297
+ })(ClientIDType || (ClientIDType = {}));
298
+ /** TThostFtdcOrderPriceTypeType */
299
+ export var OrderPriceType;
300
+ (function (OrderPriceType) {
301
+ OrderPriceType["AnyPrice"] = "1";
302
+ OrderPriceType["LimitPrice"] = "2";
303
+ OrderPriceType["BestPrice"] = "3";
304
+ OrderPriceType["LastPrice"] = "4";
305
+ OrderPriceType["LastPricePlusOneTicks"] = "5";
306
+ OrderPriceType["LastPricePlusTwoTicks"] = "6";
307
+ OrderPriceType["LastPricePlusThreeTicks"] = "7";
308
+ OrderPriceType["AskPrice1"] = "8";
309
+ OrderPriceType["AskPrice1PlusOneTicks"] = "9";
310
+ OrderPriceType["AskPrice1PlusTwoTicks"] = "A";
311
+ OrderPriceType["AskPrice1PlusThreeTicks"] = "B";
312
+ OrderPriceType["BidPrice1"] = "C";
313
+ OrderPriceType["BidPrice1PlusOneTicks"] = "D";
314
+ OrderPriceType["BidPrice1PlusTwoTicks"] = "E";
315
+ OrderPriceType["BidPrice1PlusThreeTicks"] = "F";
316
+ OrderPriceType["FiveLevelPrice"] = "G";
317
+ })(OrderPriceType || (OrderPriceType = {}));
318
+ /** TThostFtdcOffsetFlagType */
319
+ export var OffsetFlag;
320
+ (function (OffsetFlag) {
321
+ OffsetFlag["Open"] = "0";
322
+ OffsetFlag["Close"] = "1";
323
+ OffsetFlag["ForceClose"] = "2";
324
+ OffsetFlag["CloseToday"] = "3";
325
+ OffsetFlag["CloseYesterday"] = "4";
326
+ OffsetFlag["ForceOff"] = "5";
327
+ OffsetFlag["LocalForceClose"] = "6";
328
+ })(OffsetFlag || (OffsetFlag = {}));
329
+ /** TThostFtdcForceCloseReasonType */
330
+ export var ForceCloseReason;
331
+ (function (ForceCloseReason) {
332
+ ForceCloseReason["NotForceClose"] = "0";
333
+ ForceCloseReason["LackDeposit"] = "1";
334
+ ForceCloseReason["ClientOverPositionLimit"] = "2";
335
+ ForceCloseReason["MemberOverPositionLimit"] = "3";
336
+ ForceCloseReason["NotMultiple"] = "4";
337
+ ForceCloseReason["Violation"] = "5";
338
+ ForceCloseReason["Other"] = "6";
339
+ ForceCloseReason["PersonDeliv"] = "7";
340
+ ForceCloseReason["Notverifycapital"] = "8";
341
+ })(ForceCloseReason || (ForceCloseReason = {}));
342
+ /** TThostFtdcOrderTypeType */
343
+ export var OrderType;
344
+ (function (OrderType) {
345
+ OrderType["Normal"] = "0";
346
+ OrderType["DeriveFromQuote"] = "1";
347
+ OrderType["DeriveFromCombination"] = "2";
348
+ OrderType["Combination"] = "3";
349
+ OrderType["ConditionalOrder"] = "4";
350
+ OrderType["Swap"] = "5";
351
+ OrderType["DeriveFromBlockTrade"] = "6";
352
+ OrderType["DeriveFromEFPTrade"] = "7";
353
+ })(OrderType || (OrderType = {}));
354
+ /** TThostFtdcTimeConditionType */
355
+ export var TimeCondition;
356
+ (function (TimeCondition) {
357
+ TimeCondition["IOC"] = "1";
358
+ TimeCondition["GFS"] = "2";
359
+ TimeCondition["GFD"] = "3";
360
+ TimeCondition["GTD"] = "4";
361
+ TimeCondition["GTC"] = "5";
362
+ TimeCondition["GFA"] = "6";
363
+ })(TimeCondition || (TimeCondition = {}));
364
+ /** TThostFtdcVolumeConditionType */
365
+ export var VolumeCondition;
366
+ (function (VolumeCondition) {
367
+ VolumeCondition["AV"] = "1";
368
+ VolumeCondition["MV"] = "2";
369
+ VolumeCondition["CV"] = "3";
370
+ })(VolumeCondition || (VolumeCondition = {}));
371
+ /** TThostFtdcContingentConditionType */
372
+ export var ContingentCondition;
373
+ (function (ContingentCondition) {
374
+ ContingentCondition["Immediately"] = "1";
375
+ ContingentCondition["Touch"] = "2";
376
+ ContingentCondition["TouchProfit"] = "3";
377
+ ContingentCondition["ParkedOrder"] = "4";
378
+ ContingentCondition["LastPriceGreaterThanStopPrice"] = "5";
379
+ ContingentCondition["LastPriceGreaterEqualStopPrice"] = "6";
380
+ ContingentCondition["LastPriceLesserThanStopPrice"] = "7";
381
+ ContingentCondition["LastPriceLesserEqualStopPrice"] = "8";
382
+ ContingentCondition["AskPriceGreaterThanStopPrice"] = "9";
383
+ ContingentCondition["AskPriceGreaterEqualStopPrice"] = "A";
384
+ ContingentCondition["AskPriceLesserThanStopPrice"] = "B";
385
+ ContingentCondition["AskPriceLesserEqualStopPrice"] = "C";
386
+ ContingentCondition["BidPriceGreaterThanStopPrice"] = "D";
387
+ ContingentCondition["BidPriceGreaterEqualStopPrice"] = "E";
388
+ ContingentCondition["BidPriceLesserThanStopPrice"] = "F";
389
+ ContingentCondition["BidPriceLesserEqualStopPrice"] = "H";
390
+ })(ContingentCondition || (ContingentCondition = {}));
391
+ /** TThostFtdcActionFlagType */
392
+ export var ActionFlag;
393
+ (function (ActionFlag) {
394
+ ActionFlag["Delete"] = "0";
395
+ ActionFlag["Modify"] = "3";
396
+ })(ActionFlag || (ActionFlag = {}));
397
+ /** TThostFtdcTradingRightType */
398
+ export var TradingRight;
399
+ (function (TradingRight) {
400
+ TradingRight["Allow"] = "0";
401
+ TradingRight["CloseOnly"] = "1";
402
+ TradingRight["Forbidden"] = "2";
403
+ })(TradingRight || (TradingRight = {}));
404
+ /** TThostFtdcOrderSourceType */
405
+ export var OrderSource;
406
+ (function (OrderSource) {
407
+ OrderSource["Participant"] = "0";
408
+ OrderSource["Administrator"] = "1";
409
+ })(OrderSource || (OrderSource = {}));
410
+ /** TThostFtdcTradeTypeType */
411
+ export var TradeType;
412
+ (function (TradeType) {
413
+ TradeType["SplitCombination"] = "#";
414
+ TradeType["Common"] = "0";
415
+ TradeType["OptionsExecution"] = "1";
416
+ TradeType["OTC"] = "2";
417
+ TradeType["EFPDerived"] = "3";
418
+ TradeType["CombinationDerived"] = "4";
419
+ TradeType["BlockTrade"] = "5";
420
+ })(TradeType || (TradeType = {}));
421
+ /** TThostFtdcSpecPosiTypeType */
422
+ export var SpecPosiType;
423
+ (function (SpecPosiType) {
424
+ SpecPosiType["Common"] = "#";
425
+ SpecPosiType["Tas"] = "0";
426
+ })(SpecPosiType || (SpecPosiType = {}));
427
+ /** TThostFtdcPriceSourceType */
428
+ export var PriceSource;
429
+ (function (PriceSource) {
430
+ PriceSource["LastPrice"] = "0";
431
+ PriceSource["Buy"] = "1";
432
+ PriceSource["Sell"] = "2";
433
+ PriceSource["OTC"] = "3";
434
+ })(PriceSource || (PriceSource = {}));
435
+ /** TThostFtdcInstrumentStatusType */
436
+ export var InstrumentStatusType;
437
+ (function (InstrumentStatusType) {
438
+ InstrumentStatusType["BeforeTrading"] = "0";
439
+ InstrumentStatusType["NoTrading"] = "1";
440
+ InstrumentStatusType["Continous"] = "2";
441
+ InstrumentStatusType["AuctionOrdering"] = "3";
442
+ InstrumentStatusType["AuctionBalance"] = "4";
443
+ InstrumentStatusType["AuctionMatch"] = "5";
444
+ InstrumentStatusType["Closed"] = "6";
445
+ })(InstrumentStatusType || (InstrumentStatusType = {}));
446
+ /** TThostFtdcInstStatusEnterReasonType */
447
+ export var InstStatusEnterReason;
448
+ (function (InstStatusEnterReason) {
449
+ InstStatusEnterReason["Automatic"] = "1";
450
+ InstStatusEnterReason["Manual"] = "2";
451
+ InstStatusEnterReason["Fuse"] = "3";
452
+ })(InstStatusEnterReason || (InstStatusEnterReason = {}));
453
+ /** TThostFtdcBatchStatusType */
454
+ export var BatchStatus;
455
+ (function (BatchStatus) {
456
+ BatchStatus["NoUpload"] = "1";
457
+ BatchStatus["Uploaded"] = "2";
458
+ BatchStatus["Failed"] = "3";
459
+ })(BatchStatus || (BatchStatus = {}));
460
+ /** TThostFtdcReturnStyleType */
461
+ export var ReturnStyle;
462
+ (function (ReturnStyle) {
463
+ ReturnStyle["All"] = "1";
464
+ ReturnStyle["ByProduct"] = "2";
465
+ })(ReturnStyle || (ReturnStyle = {}));
466
+ /** TThostFtdcReturnPatternType */
467
+ export var ReturnPattern;
468
+ (function (ReturnPattern) {
469
+ ReturnPattern["ByVolume"] = "1";
470
+ ReturnPattern["ByFeeOnHand"] = "2";
471
+ })(ReturnPattern || (ReturnPattern = {}));
472
+ /** TThostFtdcReturnLevelType */
473
+ export var ReturnLevel;
474
+ (function (ReturnLevel) {
475
+ ReturnLevel["Level1"] = "1";
476
+ ReturnLevel["Level2"] = "2";
477
+ ReturnLevel["Level3"] = "3";
478
+ ReturnLevel["Level4"] = "4";
479
+ ReturnLevel["Level5"] = "5";
480
+ ReturnLevel["Level6"] = "6";
481
+ ReturnLevel["Level7"] = "7";
482
+ ReturnLevel["Level8"] = "8";
483
+ ReturnLevel["Level9"] = "9";
484
+ })(ReturnLevel || (ReturnLevel = {}));
485
+ /** TThostFtdcReturnStandardType */
486
+ export var ReturnStandard;
487
+ (function (ReturnStandard) {
488
+ ReturnStandard["ByPeriod"] = "1";
489
+ ReturnStandard["ByStandard"] = "2";
490
+ })(ReturnStandard || (ReturnStandard = {}));
491
+ /** TThostFtdcMortgageTypeType */
492
+ export var MortgageType;
493
+ (function (MortgageType) {
494
+ MortgageType["Out"] = "0";
495
+ MortgageType["In"] = "1";
496
+ })(MortgageType || (MortgageType = {}));
497
+ /** TThostFtdcInvestorSettlementParamIDType */
498
+ export var InvestorSettlementParamID;
499
+ (function (InvestorSettlementParamID) {
500
+ InvestorSettlementParamID["MortgageRatio"] = "4";
501
+ InvestorSettlementParamID["MarginWay"] = "5";
502
+ InvestorSettlementParamID["BillDeposit"] = "9";
503
+ })(InvestorSettlementParamID || (InvestorSettlementParamID = {}));
504
+ /** TThostFtdcExchangeSettlementParamIDType */
505
+ export var ExchangeSettlementParamID;
506
+ (function (ExchangeSettlementParamID) {
507
+ ExchangeSettlementParamID["MortgageRatio"] = "1";
508
+ ExchangeSettlementParamID["OtherFundItem"] = "2";
509
+ ExchangeSettlementParamID["OtherFundImport"] = "3";
510
+ ExchangeSettlementParamID["CFFEXMinPrepa"] = "6";
511
+ ExchangeSettlementParamID["CZCESettlementType"] = "7";
512
+ ExchangeSettlementParamID["ExchDelivFeeMode"] = "9";
513
+ ExchangeSettlementParamID["DelivFeeMode"] = "0";
514
+ ExchangeSettlementParamID["CZCEComMarginType"] = "A";
515
+ ExchangeSettlementParamID["DceComMarginType"] = "B";
516
+ ExchangeSettlementParamID["OptOutDisCountRate"] = "a";
517
+ ExchangeSettlementParamID["OptMiniGuarantee"] = "b";
518
+ })(ExchangeSettlementParamID || (ExchangeSettlementParamID = {}));
519
+ /** TThostFtdcSystemParamIDType */
520
+ export var SystemParamID;
521
+ (function (SystemParamID) {
522
+ SystemParamID["InvestorIDMinLength"] = "1";
523
+ SystemParamID["AccountIDMinLength"] = "2";
524
+ SystemParamID["UserRightLogon"] = "3";
525
+ SystemParamID["SettlementBillTrade"] = "4";
526
+ SystemParamID["TradingCode"] = "5";
527
+ SystemParamID["CheckFund"] = "6";
528
+ SystemParamID["CommModelRight"] = "7";
529
+ SystemParamID["MarginModelRight"] = "9";
530
+ SystemParamID["IsStandardActive"] = "8";
531
+ SystemParamID["UploadSettlementFile"] = "U";
532
+ SystemParamID["DownloadCSRCFile"] = "D";
533
+ SystemParamID["SettlementBillFile"] = "S";
534
+ SystemParamID["CSRCOthersFile"] = "C";
535
+ SystemParamID["InvestorPhoto"] = "P";
536
+ SystemParamID["CSRCData"] = "R";
537
+ SystemParamID["InvestorPwdModel"] = "I";
538
+ SystemParamID["CFFEXInvestorSettleFile"] = "F";
539
+ SystemParamID["InvestorIDType"] = "a";
540
+ SystemParamID["FreezeMaxReMain"] = "r";
541
+ SystemParamID["IsSync"] = "A";
542
+ SystemParamID["RelieveOpenLimit"] = "O";
543
+ SystemParamID["IsStandardFreeze"] = "X";
544
+ SystemParamID["CZCENormalProductHedge"] = "B";
545
+ })(SystemParamID || (SystemParamID = {}));
546
+ /** TThostFtdcTradeParamIDType */
547
+ export var TradeParamID;
548
+ (function (TradeParamID) {
549
+ TradeParamID["EncryptionStandard"] = "E";
550
+ TradeParamID["RiskMode"] = "R";
551
+ TradeParamID["RiskModeGlobal"] = "G";
552
+ TradeParamID["modeEncode"] = "P";
553
+ TradeParamID["tickMode"] = "T";
554
+ TradeParamID["SingleUserSessionMaxNum"] = "S";
555
+ TradeParamID["LoginFailMaxNum"] = "L";
556
+ TradeParamID["IsAuthForce"] = "A";
557
+ TradeParamID["IsPosiFreeze"] = "F";
558
+ TradeParamID["IsPosiLimit"] = "M";
559
+ TradeParamID["ForQuoteTimeInterval"] = "Q";
560
+ TradeParamID["IsFuturePosiLimit"] = "B";
561
+ TradeParamID["IsFutureOrderFreq"] = "C";
562
+ TradeParamID["IsExecOrderProfit"] = "H";
563
+ TradeParamID["IsCheckBankAcc"] = "I";
564
+ TradeParamID["PasswordDeadLine"] = "J";
565
+ TradeParamID["IsStrongPassword"] = "K";
566
+ TradeParamID["BalanceMorgage"] = "a";
567
+ TradeParamID["MinPwdLen"] = "O";
568
+ TradeParamID["LoginFailMaxNumForIP"] = "U";
569
+ TradeParamID["PasswordPeriod"] = "V";
570
+ })(TradeParamID || (TradeParamID = {}));
571
+ /** TThostFtdcFileIDType */
572
+ export var FileID;
573
+ (function (FileID) {
574
+ FileID["SettlementFund"] = "F";
575
+ FileID["Trade"] = "T";
576
+ FileID["InvestorPosition"] = "P";
577
+ FileID["SubEntryFund"] = "O";
578
+ FileID["CZCECombinationPos"] = "C";
579
+ FileID["CSRCData"] = "R";
580
+ FileID["CZCEClose"] = "L";
581
+ FileID["CZCENoClose"] = "N";
582
+ FileID["PositionDtl"] = "D";
583
+ FileID["OptionStrike"] = "S";
584
+ FileID["SettlementPriceComparison"] = "M";
585
+ FileID["NonTradePosChange"] = "B";
586
+ })(FileID || (FileID = {}));
587
+ /** TThostFtdcFileTypeType */
588
+ export var FileType;
589
+ (function (FileType) {
590
+ FileType["Settlement"] = "0";
591
+ FileType["Check"] = "1";
592
+ })(FileType || (FileType = {}));
593
+ /** TThostFtdcFileFormatType */
594
+ export var FileFormat;
595
+ (function (FileFormat) {
596
+ FileFormat["Txt"] = "0";
597
+ FileFormat["Zip"] = "1";
598
+ FileFormat["DBF"] = "2";
599
+ })(FileFormat || (FileFormat = {}));
600
+ /** TThostFtdcFileUploadStatusType */
601
+ export var FileUploadStatus;
602
+ (function (FileUploadStatus) {
603
+ FileUploadStatus["SucceedUpload"] = "1";
604
+ FileUploadStatus["FailedUpload"] = "2";
605
+ FileUploadStatus["SucceedLoad"] = "3";
606
+ FileUploadStatus["PartSucceedLoad"] = "4";
607
+ FileUploadStatus["FailedLoad"] = "5";
608
+ })(FileUploadStatus || (FileUploadStatus = {}));
609
+ /** TThostFtdcTransferDirectionType */
610
+ export var TransferDirection;
611
+ (function (TransferDirection) {
612
+ TransferDirection["Out"] = "0";
613
+ TransferDirection["In"] = "1";
614
+ })(TransferDirection || (TransferDirection = {}));
615
+ /** TThostFtdcSpecialCreateRuleType */
616
+ export var SpecialCreateRule;
617
+ (function (SpecialCreateRule) {
618
+ SpecialCreateRule["NoSpecialRule"] = "0";
619
+ SpecialCreateRule["NoSpringFestival"] = "1";
620
+ })(SpecialCreateRule || (SpecialCreateRule = {}));
621
+ /** TThostFtdcBasisPriceTypeType */
622
+ export var BasisPriceType;
623
+ (function (BasisPriceType) {
624
+ BasisPriceType["LastSettlement"] = "1";
625
+ BasisPriceType["LaseClose"] = "2";
626
+ })(BasisPriceType || (BasisPriceType = {}));
627
+ /** TThostFtdcProductLifePhaseType */
628
+ export var ProductLifePhase;
629
+ (function (ProductLifePhase) {
630
+ ProductLifePhase["Active"] = "1";
631
+ ProductLifePhase["NonActive"] = "2";
632
+ ProductLifePhase["Canceled"] = "3";
633
+ })(ProductLifePhase || (ProductLifePhase = {}));
634
+ /** TThostFtdcDeliveryModeType */
635
+ export var DeliveryMode;
636
+ (function (DeliveryMode) {
637
+ DeliveryMode["CashDeliv"] = "1";
638
+ DeliveryMode["CommodityDeliv"] = "2";
639
+ })(DeliveryMode || (DeliveryMode = {}));
640
+ /** TThostFtdcFundIOTypeType */
641
+ export var FundIOType;
642
+ (function (FundIOType) {
643
+ FundIOType["FundIO"] = "1";
644
+ FundIOType["Transfer"] = "2";
645
+ FundIOType["SwapCurrency"] = "3";
646
+ })(FundIOType || (FundIOType = {}));
647
+ /** TThostFtdcFundTypeType */
648
+ export var FundType;
649
+ (function (FundType) {
650
+ FundType["Deposite"] = "1";
651
+ FundType["ItemFund"] = "2";
652
+ FundType["Company"] = "3";
653
+ FundType["InnerTransfer"] = "4";
654
+ })(FundType || (FundType = {}));
655
+ /** TThostFtdcFundDirectionType */
656
+ export var FundDirection;
657
+ (function (FundDirection) {
658
+ FundDirection["In"] = "1";
659
+ FundDirection["Out"] = "2";
660
+ })(FundDirection || (FundDirection = {}));
661
+ /** TThostFtdcFundStatusType */
662
+ export var FundStatus;
663
+ (function (FundStatus) {
664
+ FundStatus["Record"] = "1";
665
+ FundStatus["Check"] = "2";
666
+ FundStatus["Charge"] = "3";
667
+ })(FundStatus || (FundStatus = {}));
668
+ /** TThostFtdcPublishStatusType */
669
+ export var PublishStatus;
670
+ (function (PublishStatus) {
671
+ PublishStatus["None"] = "1";
672
+ PublishStatus["Publishing"] = "2";
673
+ PublishStatus["Published"] = "3";
674
+ })(PublishStatus || (PublishStatus = {}));
675
+ /** TThostFtdcSystemStatusType */
676
+ export var SystemStatus;
677
+ (function (SystemStatus) {
678
+ SystemStatus["NonActive"] = "1";
679
+ SystemStatus["Startup"] = "2";
680
+ SystemStatus["Initialize"] = "3";
681
+ SystemStatus["Initialized"] = "4";
682
+ SystemStatus["Close"] = "5";
683
+ SystemStatus["Closed"] = "6";
684
+ SystemStatus["Settlement"] = "7";
685
+ })(SystemStatus || (SystemStatus = {}));
686
+ /** TThostFtdcSettlementStatusType */
687
+ export var SettlementStatus;
688
+ (function (SettlementStatus) {
689
+ SettlementStatus["Initialize"] = "0";
690
+ SettlementStatus["Settlementing"] = "1";
691
+ SettlementStatus["Settlemented"] = "2";
692
+ SettlementStatus["Finished"] = "3";
693
+ })(SettlementStatus || (SettlementStatus = {}));
694
+ /** TThostFtdcInvestorTypeType */
695
+ export var InvestorType;
696
+ (function (InvestorType) {
697
+ InvestorType["Person"] = "0";
698
+ InvestorType["Company"] = "1";
699
+ InvestorType["Fund"] = "2";
700
+ InvestorType["SpecialOrgan"] = "3";
701
+ InvestorType["Asset"] = "4";
702
+ })(InvestorType || (InvestorType = {}));
703
+ /** TThostFtdcBrokerTypeType */
704
+ export var BrokerType;
705
+ (function (BrokerType) {
706
+ BrokerType["Trade"] = "0";
707
+ BrokerType["TradeSettle"] = "1";
708
+ })(BrokerType || (BrokerType = {}));
709
+ /** TThostFtdcRiskLevelType */
710
+ export var RiskLevel;
711
+ (function (RiskLevel) {
712
+ RiskLevel["Low"] = "1";
713
+ RiskLevel["Normal"] = "2";
714
+ RiskLevel["Focus"] = "3";
715
+ RiskLevel["Risk"] = "4";
716
+ })(RiskLevel || (RiskLevel = {}));
717
+ /** TThostFtdcFeeAcceptStyleType */
718
+ export var FeeAcceptStyle;
719
+ (function (FeeAcceptStyle) {
720
+ FeeAcceptStyle["ByTrade"] = "1";
721
+ FeeAcceptStyle["ByDeliv"] = "2";
722
+ FeeAcceptStyle["None"] = "3";
723
+ FeeAcceptStyle["FixFee"] = "4";
724
+ })(FeeAcceptStyle || (FeeAcceptStyle = {}));
725
+ /** TThostFtdcPasswordTypeType */
726
+ export var PasswordType;
727
+ (function (PasswordType) {
728
+ PasswordType["Trade"] = "1";
729
+ PasswordType["Account"] = "2";
730
+ })(PasswordType || (PasswordType = {}));
731
+ /** TThostFtdcAlgorithmType */
732
+ export var Algorithm;
733
+ (function (Algorithm) {
734
+ Algorithm["All"] = "1";
735
+ Algorithm["OnlyLost"] = "2";
736
+ Algorithm["OnlyGain"] = "3";
737
+ Algorithm["None"] = "4";
738
+ })(Algorithm || (Algorithm = {}));
739
+ /** TThostFtdcIncludeCloseProfitType */
740
+ export var IncludeCloseProfit;
741
+ (function (IncludeCloseProfit) {
742
+ IncludeCloseProfit["Include"] = "0";
743
+ IncludeCloseProfit["NotInclude"] = "2";
744
+ })(IncludeCloseProfit || (IncludeCloseProfit = {}));
745
+ /** TThostFtdcAllWithoutTradeType */
746
+ export var AllWithoutTrade;
747
+ (function (AllWithoutTrade) {
748
+ AllWithoutTrade["Enable"] = "0";
749
+ AllWithoutTrade["Disable"] = "2";
750
+ AllWithoutTrade["NoHoldEnable"] = "3";
751
+ })(AllWithoutTrade || (AllWithoutTrade = {}));
752
+ /** TThostFtdcFuturePwdFlagType */
753
+ export var FuturePwdFlag;
754
+ (function (FuturePwdFlag) {
755
+ FuturePwdFlag["UnCheck"] = "0";
756
+ FuturePwdFlag["Check"] = "1";
757
+ })(FuturePwdFlag || (FuturePwdFlag = {}));
758
+ /** TThostFtdcTransferTypeType */
759
+ export var TransferType;
760
+ (function (TransferType) {
761
+ TransferType["BankToFuture"] = "0";
762
+ TransferType["FutureToBank"] = "1";
763
+ })(TransferType || (TransferType = {}));
764
+ /** TThostFtdcTransferValidFlagType */
765
+ export var TransferValidFlag;
766
+ (function (TransferValidFlag) {
767
+ TransferValidFlag["Invalid"] = "0";
768
+ TransferValidFlag["Valid"] = "1";
769
+ TransferValidFlag["Reverse"] = "2";
770
+ })(TransferValidFlag || (TransferValidFlag = {}));
771
+ /** TThostFtdcReasonType */
772
+ export var Reason;
773
+ (function (Reason) {
774
+ Reason["CD"] = "0";
775
+ Reason["ZT"] = "1";
776
+ Reason["QT"] = "2";
777
+ })(Reason || (Reason = {}));
778
+ /** TThostFtdcSexType */
779
+ export var Sex;
780
+ (function (Sex) {
781
+ Sex["None"] = "0";
782
+ Sex["Man"] = "1";
783
+ Sex["Woman"] = "2";
784
+ })(Sex || (Sex = {}));
785
+ /** TThostFtdcUserTypeType */
786
+ export var UserType;
787
+ (function (UserType) {
788
+ UserType["Investor"] = "0";
789
+ UserType["Operator"] = "1";
790
+ UserType["SuperUser"] = "2";
791
+ })(UserType || (UserType = {}));
792
+ /** TThostFtdcRateTypeType */
793
+ export var RateType;
794
+ (function (RateType) {
795
+ RateType["MarginRate"] = "2";
796
+ })(RateType || (RateType = {}));
797
+ /** TThostFtdcNoteTypeType */
798
+ export var NoteType;
799
+ (function (NoteType) {
800
+ NoteType["TradeSettleBill"] = "1";
801
+ NoteType["TradeSettleMonth"] = "2";
802
+ NoteType["CallMarginNotes"] = "3";
803
+ NoteType["ForceCloseNotes"] = "4";
804
+ NoteType["TradeNotes"] = "5";
805
+ NoteType["DelivNotes"] = "6";
806
+ })(NoteType || (NoteType = {}));
807
+ /** TThostFtdcSettlementStyleType */
808
+ export var SettlementStyle;
809
+ (function (SettlementStyle) {
810
+ SettlementStyle["Day"] = "1";
811
+ SettlementStyle["Volume"] = "2";
812
+ })(SettlementStyle || (SettlementStyle = {}));
813
+ /** TThostFtdcSettlementBillTypeType */
814
+ export var SettlementBillType;
815
+ (function (SettlementBillType) {
816
+ SettlementBillType["Day"] = "0";
817
+ SettlementBillType["Month"] = "1";
818
+ })(SettlementBillType || (SettlementBillType = {}));
819
+ /** TThostFtdcUserRightTypeType */
820
+ export var UserRightType;
821
+ (function (UserRightType) {
822
+ UserRightType["Logon"] = "1";
823
+ UserRightType["Transfer"] = "2";
824
+ UserRightType["EMail"] = "3";
825
+ UserRightType["Fax"] = "4";
826
+ UserRightType["ConditionOrder"] = "5";
827
+ })(UserRightType || (UserRightType = {}));
828
+ /** TThostFtdcMarginPriceTypeType */
829
+ export var MarginPriceType;
830
+ (function (MarginPriceType) {
831
+ MarginPriceType["PreSettlementPrice"] = "1";
832
+ MarginPriceType["SettlementPrice"] = "2";
833
+ MarginPriceType["AveragePrice"] = "3";
834
+ MarginPriceType["OpenPrice"] = "4";
835
+ })(MarginPriceType || (MarginPriceType = {}));
836
+ /** TThostFtdcBillGenStatusType */
837
+ export var BillGenStatus;
838
+ (function (BillGenStatus) {
839
+ BillGenStatus["None"] = "0";
840
+ BillGenStatus["NoGenerated"] = "1";
841
+ BillGenStatus["Generated"] = "2";
842
+ })(BillGenStatus || (BillGenStatus = {}));
843
+ /** TThostFtdcAlgoTypeType */
844
+ export var AlgoType;
845
+ (function (AlgoType) {
846
+ AlgoType["HandlePositionAlgo"] = "1";
847
+ AlgoType["FindMarginRateAlgo"] = "2";
848
+ })(AlgoType || (AlgoType = {}));
849
+ /** TThostFtdcHandlePositionAlgoIDType */
850
+ export var HandlePositionAlgoID;
851
+ (function (HandlePositionAlgoID) {
852
+ HandlePositionAlgoID["Base"] = "1";
853
+ HandlePositionAlgoID["DCE"] = "2";
854
+ HandlePositionAlgoID["CZCE"] = "3";
855
+ })(HandlePositionAlgoID || (HandlePositionAlgoID = {}));
856
+ /** TThostFtdcFindMarginRateAlgoIDType */
857
+ export var FindMarginRateAlgoID;
858
+ (function (FindMarginRateAlgoID) {
859
+ FindMarginRateAlgoID["Base"] = "1";
860
+ FindMarginRateAlgoID["DCE"] = "2";
861
+ FindMarginRateAlgoID["CZCE"] = "3";
862
+ })(FindMarginRateAlgoID || (FindMarginRateAlgoID = {}));
863
+ /** TThostFtdcHandleTradingAccountAlgoIDType */
864
+ export var HandleTradingAccountAlgoID;
865
+ (function (HandleTradingAccountAlgoID) {
866
+ HandleTradingAccountAlgoID["Base"] = "1";
867
+ HandleTradingAccountAlgoID["DCE"] = "2";
868
+ HandleTradingAccountAlgoID["CZCE"] = "3";
869
+ })(HandleTradingAccountAlgoID || (HandleTradingAccountAlgoID = {}));
870
+ /** TThostFtdcPersonTypeType */
871
+ export var PersonType;
872
+ (function (PersonType) {
873
+ PersonType["Order"] = "1";
874
+ PersonType["Open"] = "2";
875
+ PersonType["Fund"] = "3";
876
+ PersonType["Settlement"] = "4";
877
+ PersonType["Company"] = "5";
878
+ PersonType["Corporation"] = "6";
879
+ PersonType["LinkMan"] = "7";
880
+ PersonType["Ledger"] = "8";
881
+ PersonType["Trustee"] = "9";
882
+ PersonType["TrusteeCorporation"] = "A";
883
+ PersonType["TrusteeOpen"] = "B";
884
+ PersonType["TrusteeContact"] = "C";
885
+ PersonType["ForeignerRefer"] = "D";
886
+ PersonType["CorporationRefer"] = "E";
887
+ })(PersonType || (PersonType = {}));
888
+ /** TThostFtdcQueryInvestorRangeType */
889
+ export var QueryInvestorRange;
890
+ (function (QueryInvestorRange) {
891
+ QueryInvestorRange["All"] = "1";
892
+ QueryInvestorRange["Group"] = "2";
893
+ QueryInvestorRange["Single"] = "3";
894
+ })(QueryInvestorRange || (QueryInvestorRange = {}));
895
+ /** TThostFtdcInvestorRiskStatusType */
896
+ export var InvestorRiskStatus;
897
+ (function (InvestorRiskStatus) {
898
+ InvestorRiskStatus["Normal"] = "1";
899
+ InvestorRiskStatus["Warn"] = "2";
900
+ InvestorRiskStatus["Call"] = "3";
901
+ InvestorRiskStatus["Force"] = "4";
902
+ InvestorRiskStatus["Exception"] = "5";
903
+ })(InvestorRiskStatus || (InvestorRiskStatus = {}));
904
+ /** TThostFtdcUserEventTypeType */
905
+ export var UserEventType;
906
+ (function (UserEventType) {
907
+ UserEventType["Login"] = "1";
908
+ UserEventType["Logout"] = "2";
909
+ UserEventType["Trading"] = "3";
910
+ UserEventType["TradingError"] = "4";
911
+ UserEventType["UpdatePassword"] = "5";
912
+ UserEventType["Authenticate"] = "6";
913
+ UserEventType["SubmitSysInfo"] = "7";
914
+ UserEventType["Transfer"] = "8";
915
+ UserEventType["Other"] = "9";
916
+ })(UserEventType || (UserEventType = {}));
917
+ /** TThostFtdcCloseStyleType */
918
+ export var CloseStyle;
919
+ (function (CloseStyle) {
920
+ CloseStyle["Close"] = "0";
921
+ CloseStyle["CloseToday"] = "1";
922
+ })(CloseStyle || (CloseStyle = {}));
923
+ /** TThostFtdcStatModeType */
924
+ export var StatMode;
925
+ (function (StatMode) {
926
+ StatMode["Non"] = "0";
927
+ StatMode["Instrument"] = "1";
928
+ StatMode["Product"] = "2";
929
+ StatMode["Investor"] = "3";
930
+ })(StatMode || (StatMode = {}));
931
+ /** TThostFtdcParkedOrderStatusType */
932
+ export var ParkedOrderStatus;
933
+ (function (ParkedOrderStatus) {
934
+ ParkedOrderStatus["NotSend"] = "1";
935
+ ParkedOrderStatus["Send"] = "2";
936
+ ParkedOrderStatus["Deleted"] = "3";
937
+ })(ParkedOrderStatus || (ParkedOrderStatus = {}));
938
+ /** TThostFtdcVirDealStatusType */
939
+ export var VirDealStatus;
940
+ (function (VirDealStatus) {
941
+ VirDealStatus["Dealing"] = "1";
942
+ VirDealStatus["DeaclSucceed"] = "2";
943
+ })(VirDealStatus || (VirDealStatus = {}));
944
+ /** TThostFtdcOrgSystemIDType */
945
+ export var OrgSystemID;
946
+ (function (OrgSystemID) {
947
+ OrgSystemID["Standard"] = "0";
948
+ OrgSystemID["ESunny"] = "1";
949
+ OrgSystemID["KingStarV6"] = "2";
950
+ })(OrgSystemID || (OrgSystemID = {}));
951
+ /** TThostFtdcVirTradeStatusType */
952
+ export var VirTradeStatus;
953
+ (function (VirTradeStatus) {
954
+ VirTradeStatus["NaturalDeal"] = "0";
955
+ VirTradeStatus["SucceedEnd"] = "1";
956
+ VirTradeStatus["FailedEND"] = "2";
957
+ VirTradeStatus["Exception"] = "3";
958
+ VirTradeStatus["ManualDeal"] = "4";
959
+ VirTradeStatus["MesException"] = "5";
960
+ VirTradeStatus["SysException"] = "6";
961
+ })(VirTradeStatus || (VirTradeStatus = {}));
962
+ /** TThostFtdcVirBankAccTypeType */
963
+ export var VirBankAccType;
964
+ (function (VirBankAccType) {
965
+ VirBankAccType["BankBook"] = "1";
966
+ VirBankAccType["BankCard"] = "2";
967
+ VirBankAccType["CreditCard"] = "3";
968
+ })(VirBankAccType || (VirBankAccType = {}));
969
+ /** TThostFtdcVirementStatusType */
970
+ export var VirementStatus;
971
+ (function (VirementStatus) {
972
+ VirementStatus["Natural"] = "0";
973
+ VirementStatus["Canceled"] = "9";
974
+ })(VirementStatus || (VirementStatus = {}));
975
+ /** TThostFtdcVirementAvailAbilityType */
976
+ export var VirementAvailAbility;
977
+ (function (VirementAvailAbility) {
978
+ VirementAvailAbility["NoAvailAbility"] = "0";
979
+ VirementAvailAbility["AvailAbility"] = "1";
980
+ VirementAvailAbility["Repeal"] = "2";
981
+ })(VirementAvailAbility || (VirementAvailAbility = {}));
982
+ /** TThostFtdcVirementTradeCodeType */
983
+ export var VirementTradeCode;
984
+ (function (VirementTradeCode) {
985
+ VirementTradeCode["BankBankToFuture"] = "102001";
986
+ VirementTradeCode["BankFutureToBank"] = "102002";
987
+ VirementTradeCode["FutureBankToFuture"] = "202001";
988
+ VirementTradeCode["FutureFutureToBank"] = "202002";
989
+ })(VirementTradeCode || (VirementTradeCode = {}));
990
+ /** TThostFtdcAMLGenStatusType */
991
+ export var AMLGenStatus;
992
+ (function (AMLGenStatus) {
993
+ AMLGenStatus["Program"] = "0";
994
+ AMLGenStatus["HandWork"] = "1";
995
+ })(AMLGenStatus || (AMLGenStatus = {}));
996
+ /** TThostFtdcCFMMCKeyKindType */
997
+ export var CFMMCKeyKind;
998
+ (function (CFMMCKeyKind) {
999
+ CFMMCKeyKind["REQUEST"] = "R";
1000
+ CFMMCKeyKind["AUTO"] = "A";
1001
+ CFMMCKeyKind["MANUAL"] = "M";
1002
+ })(CFMMCKeyKind || (CFMMCKeyKind = {}));
1003
+ /** TThostFtdcCertificationTypeType */
1004
+ export var CertificationType;
1005
+ (function (CertificationType) {
1006
+ CertificationType["IDCard"] = "0";
1007
+ CertificationType["Passport"] = "1";
1008
+ CertificationType["OfficerIDCard"] = "2";
1009
+ CertificationType["SoldierIDCard"] = "3";
1010
+ CertificationType["HomeComingCard"] = "4";
1011
+ CertificationType["HouseholdRegister"] = "5";
1012
+ CertificationType["LicenseNo"] = "6";
1013
+ CertificationType["InstitutionCodeCard"] = "7";
1014
+ CertificationType["TempLicenseNo"] = "8";
1015
+ CertificationType["NoEnterpriseLicenseNo"] = "9";
1016
+ CertificationType["OtherCard"] = "x";
1017
+ CertificationType["SuperDepAgree"] = "a";
1018
+ })(CertificationType || (CertificationType = {}));
1019
+ /** TThostFtdcFileBusinessCodeType */
1020
+ export var FileBusinessCode;
1021
+ (function (FileBusinessCode) {
1022
+ FileBusinessCode["Others"] = "0";
1023
+ FileBusinessCode["TransferDetails"] = "1";
1024
+ FileBusinessCode["CustAccStatus"] = "2";
1025
+ FileBusinessCode["AccountTradeDetails"] = "3";
1026
+ FileBusinessCode["FutureAccountChangeInfoDetails"] = "4";
1027
+ FileBusinessCode["CustMoneyDetail"] = "5";
1028
+ FileBusinessCode["CustCancelAccountInfo"] = "6";
1029
+ FileBusinessCode["CustMoneyResult"] = "7";
1030
+ FileBusinessCode["OthersExceptionResult"] = "8";
1031
+ FileBusinessCode["CustInterestNetMoneyDetails"] = "9";
1032
+ FileBusinessCode["CustMoneySendAndReceiveDetails"] = "a";
1033
+ FileBusinessCode["CorporationMoneyTotal"] = "b";
1034
+ FileBusinessCode["MainbodyMoneyTotal"] = "c";
1035
+ FileBusinessCode["MainPartMonitorData"] = "d";
1036
+ FileBusinessCode["PreparationMoney"] = "e";
1037
+ FileBusinessCode["BankMoneyMonitorData"] = "f";
1038
+ })(FileBusinessCode || (FileBusinessCode = {}));
1039
+ /** TThostFtdcCashExchangeCodeType */
1040
+ export var CashExchangeCode;
1041
+ (function (CashExchangeCode) {
1042
+ CashExchangeCode["Exchange"] = "1";
1043
+ CashExchangeCode["Cash"] = "2";
1044
+ })(CashExchangeCode || (CashExchangeCode = {}));
1045
+ /** TThostFtdcYesNoIndicatorType */
1046
+ export var YesNoIndicator;
1047
+ (function (YesNoIndicator) {
1048
+ YesNoIndicator["Yes"] = "0";
1049
+ YesNoIndicator["No"] = "1";
1050
+ })(YesNoIndicator || (YesNoIndicator = {}));
1051
+ /** TThostFtdcBanlanceTypeType */
1052
+ export var BanlanceType;
1053
+ (function (BanlanceType) {
1054
+ BanlanceType["CurrentMoney"] = "0";
1055
+ BanlanceType["UsableMoney"] = "1";
1056
+ BanlanceType["FetchableMoney"] = "2";
1057
+ BanlanceType["FreezeMoney"] = "3";
1058
+ })(BanlanceType || (BanlanceType = {}));
1059
+ /** TThostFtdcGenderType */
1060
+ export var Gender;
1061
+ (function (Gender) {
1062
+ Gender["Unknown"] = "0";
1063
+ Gender["Male"] = "1";
1064
+ Gender["Female"] = "2";
1065
+ })(Gender || (Gender = {}));
1066
+ /** TThostFtdcFeePayFlagType */
1067
+ export var FeePayFlag;
1068
+ (function (FeePayFlag) {
1069
+ FeePayFlag["BEN"] = "0";
1070
+ FeePayFlag["OUR"] = "1";
1071
+ FeePayFlag["SHA"] = "2";
1072
+ })(FeePayFlag || (FeePayFlag = {}));
1073
+ /** TThostFtdcPassWordKeyTypeType */
1074
+ export var PassWordKeyType;
1075
+ (function (PassWordKeyType) {
1076
+ PassWordKeyType["ExchangeKey"] = "0";
1077
+ PassWordKeyType["PassWordKey"] = "1";
1078
+ PassWordKeyType["MACKey"] = "2";
1079
+ PassWordKeyType["MessageKey"] = "3";
1080
+ })(PassWordKeyType || (PassWordKeyType = {}));
1081
+ /** TThostFtdcFBTPassWordTypeType */
1082
+ export var FBTPassWordType;
1083
+ (function (FBTPassWordType) {
1084
+ FBTPassWordType["Query"] = "0";
1085
+ FBTPassWordType["Fetch"] = "1";
1086
+ FBTPassWordType["Transfer"] = "2";
1087
+ FBTPassWordType["Trade"] = "3";
1088
+ })(FBTPassWordType || (FBTPassWordType = {}));
1089
+ /** TThostFtdcFBTEncryModeType */
1090
+ export var FBTEncryMode;
1091
+ (function (FBTEncryMode) {
1092
+ FBTEncryMode["NoEncry"] = "0";
1093
+ FBTEncryMode["DES"] = "1";
1094
+ FBTEncryMode["_3DES"] = "2";
1095
+ })(FBTEncryMode || (FBTEncryMode = {}));
1096
+ /** TThostFtdcBankRepealFlagType */
1097
+ export var BankRepealFlag;
1098
+ (function (BankRepealFlag) {
1099
+ BankRepealFlag["BankNotNeedRepeal"] = "0";
1100
+ BankRepealFlag["BankWaitingRepeal"] = "1";
1101
+ BankRepealFlag["BankBeenRepealed"] = "2";
1102
+ })(BankRepealFlag || (BankRepealFlag = {}));
1103
+ /** TThostFtdcBrokerRepealFlagType */
1104
+ export var BrokerRepealFlag;
1105
+ (function (BrokerRepealFlag) {
1106
+ BrokerRepealFlag["BrokerNotNeedRepeal"] = "0";
1107
+ BrokerRepealFlag["BrokerWaitingRepeal"] = "1";
1108
+ BrokerRepealFlag["BrokerBeenRepealed"] = "2";
1109
+ })(BrokerRepealFlag || (BrokerRepealFlag = {}));
1110
+ /** TThostFtdcInstitutionTypeType */
1111
+ export var InstitutionType;
1112
+ (function (InstitutionType) {
1113
+ InstitutionType["Bank"] = "0";
1114
+ InstitutionType["Future"] = "1";
1115
+ InstitutionType["Store"] = "2";
1116
+ })(InstitutionType || (InstitutionType = {}));
1117
+ /** TThostFtdcLastFragmentType */
1118
+ export var LastFragment;
1119
+ (function (LastFragment) {
1120
+ LastFragment["Yes"] = "0";
1121
+ LastFragment["No"] = "1";
1122
+ })(LastFragment || (LastFragment = {}));
1123
+ /** TThostFtdcBankAccStatusType */
1124
+ export var BankAccStatus;
1125
+ (function (BankAccStatus) {
1126
+ BankAccStatus["Normal"] = "0";
1127
+ BankAccStatus["Freeze"] = "1";
1128
+ BankAccStatus["ReportLoss"] = "2";
1129
+ })(BankAccStatus || (BankAccStatus = {}));
1130
+ /** TThostFtdcMoneyAccountStatusType */
1131
+ export var MoneyAccountStatus;
1132
+ (function (MoneyAccountStatus) {
1133
+ MoneyAccountStatus["Normal"] = "0";
1134
+ MoneyAccountStatus["Cancel"] = "1";
1135
+ })(MoneyAccountStatus || (MoneyAccountStatus = {}));
1136
+ /** TThostFtdcManageStatusType */
1137
+ export var ManageStatus;
1138
+ (function (ManageStatus) {
1139
+ ManageStatus["Point"] = "0";
1140
+ ManageStatus["PrePoint"] = "1";
1141
+ ManageStatus["CancelPoint"] = "2";
1142
+ })(ManageStatus || (ManageStatus = {}));
1143
+ /** TThostFtdcSystemTypeType */
1144
+ export var SystemType;
1145
+ (function (SystemType) {
1146
+ SystemType["FutureBankTransfer"] = "0";
1147
+ SystemType["StockBankTransfer"] = "1";
1148
+ SystemType["TheThirdPartStore"] = "2";
1149
+ })(SystemType || (SystemType = {}));
1150
+ /** TThostFtdcTxnEndFlagType */
1151
+ export var TxnEndFlag;
1152
+ (function (TxnEndFlag) {
1153
+ TxnEndFlag["NormalProcessing"] = "0";
1154
+ TxnEndFlag["Success"] = "1";
1155
+ TxnEndFlag["Failed"] = "2";
1156
+ TxnEndFlag["Abnormal"] = "3";
1157
+ TxnEndFlag["ManualProcessedForException"] = "4";
1158
+ TxnEndFlag["CommuFailedNeedManualProcess"] = "5";
1159
+ TxnEndFlag["SysErrorNeedManualProcess"] = "6";
1160
+ })(TxnEndFlag || (TxnEndFlag = {}));
1161
+ /** TThostFtdcProcessStatusType */
1162
+ export var ProcessStatus;
1163
+ (function (ProcessStatus) {
1164
+ ProcessStatus["NotProcess"] = "0";
1165
+ ProcessStatus["StartProcess"] = "1";
1166
+ ProcessStatus["Finished"] = "2";
1167
+ })(ProcessStatus || (ProcessStatus = {}));
1168
+ /** TThostFtdcCustTypeType */
1169
+ export var CustType;
1170
+ (function (CustType) {
1171
+ CustType["Person"] = "0";
1172
+ CustType["Institution"] = "1";
1173
+ })(CustType || (CustType = {}));
1174
+ /** TThostFtdcFBTTransferDirectionType */
1175
+ export var FBTTransferDirection;
1176
+ (function (FBTTransferDirection) {
1177
+ FBTTransferDirection["FromBankToFuture"] = "1";
1178
+ FBTTransferDirection["FromFutureToBank"] = "2";
1179
+ })(FBTTransferDirection || (FBTTransferDirection = {}));
1180
+ /** TThostFtdcOpenOrDestroyType */
1181
+ export var OpenOrDestroy;
1182
+ (function (OpenOrDestroy) {
1183
+ OpenOrDestroy["Open"] = "1";
1184
+ OpenOrDestroy["Destroy"] = "0";
1185
+ })(OpenOrDestroy || (OpenOrDestroy = {}));
1186
+ /** TThostFtdcAvailabilityFlagType */
1187
+ export var AvailabilityFlag;
1188
+ (function (AvailabilityFlag) {
1189
+ AvailabilityFlag["Invalid"] = "0";
1190
+ AvailabilityFlag["Valid"] = "1";
1191
+ AvailabilityFlag["Repeal"] = "2";
1192
+ })(AvailabilityFlag || (AvailabilityFlag = {}));
1193
+ /** TThostFtdcOrganTypeType */
1194
+ export var OrganType;
1195
+ (function (OrganType) {
1196
+ OrganType["Bank"] = "1";
1197
+ OrganType["Future"] = "2";
1198
+ OrganType["PlateForm"] = "9";
1199
+ })(OrganType || (OrganType = {}));
1200
+ /** TThostFtdcOrganLevelType */
1201
+ export var OrganLevel;
1202
+ (function (OrganLevel) {
1203
+ OrganLevel["HeadQuarters"] = "1";
1204
+ OrganLevel["Branch"] = "2";
1205
+ })(OrganLevel || (OrganLevel = {}));
1206
+ /** TThostFtdcProtocalIDType */
1207
+ export var ProtocalID;
1208
+ (function (ProtocalID) {
1209
+ ProtocalID["FutureProtocal"] = "0";
1210
+ ProtocalID["ICBCProtocal"] = "1";
1211
+ ProtocalID["ABCProtocal"] = "2";
1212
+ ProtocalID["CBCProtocal"] = "3";
1213
+ ProtocalID["CCBProtocal"] = "4";
1214
+ ProtocalID["BOCOMProtocal"] = "5";
1215
+ ProtocalID["FBTPlateFormProtocal"] = "X";
1216
+ })(ProtocalID || (ProtocalID = {}));
1217
+ /** TThostFtdcConnectModeType */
1218
+ export var ConnectMode;
1219
+ (function (ConnectMode) {
1220
+ ConnectMode["ShortConnect"] = "0";
1221
+ ConnectMode["LongConnect"] = "1";
1222
+ })(ConnectMode || (ConnectMode = {}));
1223
+ /** TThostFtdcSyncModeType */
1224
+ export var SyncMode;
1225
+ (function (SyncMode) {
1226
+ SyncMode["ASync"] = "0";
1227
+ SyncMode["Sync"] = "1";
1228
+ })(SyncMode || (SyncMode = {}));
1229
+ /** TThostFtdcBankAccTypeType */
1230
+ export var BankAccType;
1231
+ (function (BankAccType) {
1232
+ BankAccType["BankBook"] = "1";
1233
+ BankAccType["SavingCard"] = "2";
1234
+ BankAccType["CreditCard"] = "3";
1235
+ })(BankAccType || (BankAccType = {}));
1236
+ /** TThostFtdcFutureAccTypeType */
1237
+ export var FutureAccType;
1238
+ (function (FutureAccType) {
1239
+ FutureAccType["BankBook"] = "1";
1240
+ FutureAccType["SavingCard"] = "2";
1241
+ FutureAccType["CreditCard"] = "3";
1242
+ })(FutureAccType || (FutureAccType = {}));
1243
+ /** TThostFtdcOrganStatusType */
1244
+ export var OrganStatus;
1245
+ (function (OrganStatus) {
1246
+ OrganStatus["Ready"] = "0";
1247
+ OrganStatus["CheckIn"] = "1";
1248
+ OrganStatus["CheckOut"] = "2";
1249
+ OrganStatus["CheckFileArrived"] = "3";
1250
+ OrganStatus["CheckDetail"] = "4";
1251
+ OrganStatus["DayEndClean"] = "5";
1252
+ OrganStatus["Invalid"] = "9";
1253
+ })(OrganStatus || (OrganStatus = {}));
1254
+ /** TThostFtdcCCBFeeModeType */
1255
+ export var CCBFeeMode;
1256
+ (function (CCBFeeMode) {
1257
+ CCBFeeMode["ByAmount"] = "1";
1258
+ CCBFeeMode["ByMonth"] = "2";
1259
+ })(CCBFeeMode || (CCBFeeMode = {}));
1260
+ /** TThostFtdcCommApiTypeType */
1261
+ export var CommApiType;
1262
+ (function (CommApiType) {
1263
+ CommApiType["Client"] = "1";
1264
+ CommApiType["Server"] = "2";
1265
+ CommApiType["UserApi"] = "3";
1266
+ })(CommApiType || (CommApiType = {}));
1267
+ /** TThostFtdcLinkStatusType */
1268
+ export var LinkStatus;
1269
+ (function (LinkStatus) {
1270
+ LinkStatus["Connected"] = "1";
1271
+ LinkStatus["Disconnected"] = "2";
1272
+ })(LinkStatus || (LinkStatus = {}));
1273
+ /** TThostFtdcPwdFlagType */
1274
+ export var PwdFlag;
1275
+ (function (PwdFlag) {
1276
+ PwdFlag["NoCheck"] = "0";
1277
+ PwdFlag["BlankCheck"] = "1";
1278
+ PwdFlag["EncryptCheck"] = "2";
1279
+ })(PwdFlag || (PwdFlag = {}));
1280
+ /** TThostFtdcSecuAccTypeType */
1281
+ export var SecuAccType;
1282
+ (function (SecuAccType) {
1283
+ SecuAccType["AccountID"] = "1";
1284
+ SecuAccType["CardID"] = "2";
1285
+ SecuAccType["SHStockholderID"] = "3";
1286
+ SecuAccType["SZStockholderID"] = "4";
1287
+ })(SecuAccType || (SecuAccType = {}));
1288
+ /** TThostFtdcTransferStatusType */
1289
+ export var TransferStatus;
1290
+ (function (TransferStatus) {
1291
+ TransferStatus["Normal"] = "0";
1292
+ TransferStatus["Repealed"] = "1";
1293
+ })(TransferStatus || (TransferStatus = {}));
1294
+ /** TThostFtdcSponsorTypeType */
1295
+ export var SponsorType;
1296
+ (function (SponsorType) {
1297
+ SponsorType["Broker"] = "0";
1298
+ SponsorType["Bank"] = "1";
1299
+ })(SponsorType || (SponsorType = {}));
1300
+ /** TThostFtdcReqRspTypeType */
1301
+ export var ReqRspType;
1302
+ (function (ReqRspType) {
1303
+ ReqRspType["Request"] = "0";
1304
+ ReqRspType["Response"] = "1";
1305
+ })(ReqRspType || (ReqRspType = {}));
1306
+ /** TThostFtdcFBTUserEventTypeType */
1307
+ export var FBTUserEventType;
1308
+ (function (FBTUserEventType) {
1309
+ FBTUserEventType["SignIn"] = "0";
1310
+ FBTUserEventType["FromBankToFuture"] = "1";
1311
+ FBTUserEventType["FromFutureToBank"] = "2";
1312
+ FBTUserEventType["OpenAccount"] = "3";
1313
+ FBTUserEventType["CancelAccount"] = "4";
1314
+ FBTUserEventType["ChangeAccount"] = "5";
1315
+ FBTUserEventType["RepealFromBankToFuture"] = "6";
1316
+ FBTUserEventType["RepealFromFutureToBank"] = "7";
1317
+ FBTUserEventType["QueryBankAccount"] = "8";
1318
+ FBTUserEventType["QueryFutureAccount"] = "9";
1319
+ FBTUserEventType["SignOut"] = "A";
1320
+ FBTUserEventType["SyncKey"] = "B";
1321
+ FBTUserEventType["ReserveOpenAccount"] = "C";
1322
+ FBTUserEventType["CancelReserveOpenAccount"] = "D";
1323
+ FBTUserEventType["ReserveOpenAccountConfirm"] = "E";
1324
+ FBTUserEventType["Other"] = "Z";
1325
+ })(FBTUserEventType || (FBTUserEventType = {}));
1326
+ /** TThostFtdcDBOperationType */
1327
+ export var DBOperation;
1328
+ (function (DBOperation) {
1329
+ DBOperation["Insert"] = "0";
1330
+ DBOperation["Update"] = "1";
1331
+ DBOperation["Delete"] = "2";
1332
+ })(DBOperation || (DBOperation = {}));
1333
+ /** TThostFtdcSyncFlagType */
1334
+ export var SyncFlag;
1335
+ (function (SyncFlag) {
1336
+ SyncFlag["Yes"] = "0";
1337
+ SyncFlag["No"] = "1";
1338
+ })(SyncFlag || (SyncFlag = {}));
1339
+ /** TThostFtdcSyncTypeType */
1340
+ export var SyncType;
1341
+ (function (SyncType) {
1342
+ SyncType["OneOffSync"] = "0";
1343
+ SyncType["TimerSync"] = "1";
1344
+ SyncType["TimerFullSync"] = "2";
1345
+ })(SyncType || (SyncType = {}));
1346
+ /** TThostFtdcExDirectionType */
1347
+ export var ExDirection;
1348
+ (function (ExDirection) {
1349
+ ExDirection["Settlement"] = "0";
1350
+ ExDirection["Sale"] = "1";
1351
+ })(ExDirection || (ExDirection = {}));
1352
+ /** TThostFtdcFBEResultFlagType */
1353
+ export var FBEResultFlag;
1354
+ (function (FBEResultFlag) {
1355
+ FBEResultFlag["Success"] = "0";
1356
+ FBEResultFlag["InsufficientBalance"] = "1";
1357
+ FBEResultFlag["UnknownTrading"] = "8";
1358
+ FBEResultFlag["Fail"] = "x";
1359
+ })(FBEResultFlag || (FBEResultFlag = {}));
1360
+ /** TThostFtdcFBEExchStatusType */
1361
+ export var FBEExchStatus;
1362
+ (function (FBEExchStatus) {
1363
+ FBEExchStatus["Normal"] = "0";
1364
+ FBEExchStatus["ReExchange"] = "1";
1365
+ })(FBEExchStatus || (FBEExchStatus = {}));
1366
+ /** TThostFtdcFBEFileFlagType */
1367
+ export var FBEFileFlag;
1368
+ (function (FBEFileFlag) {
1369
+ FBEFileFlag["DataPackage"] = "0";
1370
+ FBEFileFlag["File"] = "1";
1371
+ })(FBEFileFlag || (FBEFileFlag = {}));
1372
+ /** TThostFtdcFBEAlreadyTradeType */
1373
+ export var FBEAlreadyTrade;
1374
+ (function (FBEAlreadyTrade) {
1375
+ FBEAlreadyTrade["NotTrade"] = "0";
1376
+ FBEAlreadyTrade["Trade"] = "1";
1377
+ })(FBEAlreadyTrade || (FBEAlreadyTrade = {}));
1378
+ /** TThostFtdcFBEUserEventTypeType */
1379
+ export var FBEUserEventType;
1380
+ (function (FBEUserEventType) {
1381
+ FBEUserEventType["SignIn"] = "0";
1382
+ FBEUserEventType["Exchange"] = "1";
1383
+ FBEUserEventType["ReExchange"] = "2";
1384
+ FBEUserEventType["QueryBankAccount"] = "3";
1385
+ FBEUserEventType["QueryExchDetial"] = "4";
1386
+ FBEUserEventType["QueryExchSummary"] = "5";
1387
+ FBEUserEventType["QueryExchRate"] = "6";
1388
+ FBEUserEventType["CheckBankAccount"] = "7";
1389
+ FBEUserEventType["SignOut"] = "8";
1390
+ FBEUserEventType["Other"] = "Z";
1391
+ })(FBEUserEventType || (FBEUserEventType = {}));
1392
+ /** TThostFtdcFBEReqFlagType */
1393
+ export var FBEReqFlag;
1394
+ (function (FBEReqFlag) {
1395
+ FBEReqFlag["UnProcessed"] = "0";
1396
+ FBEReqFlag["WaitSend"] = "1";
1397
+ FBEReqFlag["SendSuccess"] = "2";
1398
+ FBEReqFlag["SendFailed"] = "3";
1399
+ FBEReqFlag["WaitReSend"] = "4";
1400
+ })(FBEReqFlag || (FBEReqFlag = {}));
1401
+ /** TThostFtdcNotifyClassType */
1402
+ export var NotifyClass;
1403
+ (function (NotifyClass) {
1404
+ NotifyClass["NOERROR"] = "0";
1405
+ NotifyClass["Warn"] = "1";
1406
+ NotifyClass["Call"] = "2";
1407
+ NotifyClass["Force"] = "3";
1408
+ NotifyClass["CHUANCANG"] = "4";
1409
+ NotifyClass["Exception"] = "5";
1410
+ })(NotifyClass || (NotifyClass = {}));
1411
+ /** TThostFtdcForceCloseTypeType */
1412
+ export var ForceCloseType;
1413
+ (function (ForceCloseType) {
1414
+ ForceCloseType["Manual"] = "0";
1415
+ ForceCloseType["Single"] = "1";
1416
+ ForceCloseType["Group"] = "2";
1417
+ })(ForceCloseType || (ForceCloseType = {}));
1418
+ /** TThostFtdcRiskNotifyMethodType */
1419
+ export var RiskNotifyMethod;
1420
+ (function (RiskNotifyMethod) {
1421
+ RiskNotifyMethod["System"] = "0";
1422
+ RiskNotifyMethod["SMS"] = "1";
1423
+ RiskNotifyMethod["EMail"] = "2";
1424
+ RiskNotifyMethod["Manual"] = "3";
1425
+ })(RiskNotifyMethod || (RiskNotifyMethod = {}));
1426
+ /** TThostFtdcRiskNotifyStatusType */
1427
+ export var RiskNotifyStatus;
1428
+ (function (RiskNotifyStatus) {
1429
+ RiskNotifyStatus["NotGen"] = "0";
1430
+ RiskNotifyStatus["Generated"] = "1";
1431
+ RiskNotifyStatus["SendError"] = "2";
1432
+ RiskNotifyStatus["SendOk"] = "3";
1433
+ RiskNotifyStatus["Received"] = "4";
1434
+ RiskNotifyStatus["Confirmed"] = "5";
1435
+ })(RiskNotifyStatus || (RiskNotifyStatus = {}));
1436
+ /** TThostFtdcRiskUserEventType */
1437
+ export var RiskUserEvent;
1438
+ (function (RiskUserEvent) {
1439
+ RiskUserEvent["ExportData"] = "0";
1440
+ })(RiskUserEvent || (RiskUserEvent = {}));
1441
+ /** TThostFtdcConditionalOrderSortTypeType */
1442
+ export var ConditionalOrderSortType;
1443
+ (function (ConditionalOrderSortType) {
1444
+ ConditionalOrderSortType["LastPriceAsc"] = "0";
1445
+ ConditionalOrderSortType["LastPriceDesc"] = "1";
1446
+ ConditionalOrderSortType["AskPriceAsc"] = "2";
1447
+ ConditionalOrderSortType["AskPriceDesc"] = "3";
1448
+ ConditionalOrderSortType["BidPriceAsc"] = "4";
1449
+ ConditionalOrderSortType["BidPriceDesc"] = "5";
1450
+ })(ConditionalOrderSortType || (ConditionalOrderSortType = {}));
1451
+ /** TThostFtdcSendTypeType */
1452
+ export var SendType;
1453
+ (function (SendType) {
1454
+ SendType["NoSend"] = "0";
1455
+ SendType["Sended"] = "1";
1456
+ SendType["Generated"] = "2";
1457
+ SendType["SendFail"] = "3";
1458
+ SendType["Success"] = "4";
1459
+ SendType["Fail"] = "5";
1460
+ SendType["Cancel"] = "6";
1461
+ })(SendType || (SendType = {}));
1462
+ /** TThostFtdcClientIDStatusType */
1463
+ export var ClientIDStatus;
1464
+ (function (ClientIDStatus) {
1465
+ ClientIDStatus["NoApply"] = "1";
1466
+ ClientIDStatus["Submited"] = "2";
1467
+ ClientIDStatus["Sended"] = "3";
1468
+ ClientIDStatus["Success"] = "4";
1469
+ ClientIDStatus["Refuse"] = "5";
1470
+ ClientIDStatus["Cancel"] = "6";
1471
+ })(ClientIDStatus || (ClientIDStatus = {}));
1472
+ /** TThostFtdcQuestionTypeType */
1473
+ export var QuestionType;
1474
+ (function (QuestionType) {
1475
+ QuestionType["Radio"] = "1";
1476
+ QuestionType["Option"] = "2";
1477
+ QuestionType["Blank"] = "3";
1478
+ })(QuestionType || (QuestionType = {}));
1479
+ /** TThostFtdcBusinessTypeType */
1480
+ export var BusinessType;
1481
+ (function (BusinessType) {
1482
+ BusinessType["Request"] = "1";
1483
+ BusinessType["Response"] = "2";
1484
+ BusinessType["Notice"] = "3";
1485
+ })(BusinessType || (BusinessType = {}));
1486
+ /** TThostFtdcCfmmcReturnCodeType */
1487
+ export var CfmmcReturnCode;
1488
+ (function (CfmmcReturnCode) {
1489
+ CfmmcReturnCode["Success"] = "0";
1490
+ CfmmcReturnCode["Working"] = "1";
1491
+ CfmmcReturnCode["InfoFail"] = "2";
1492
+ CfmmcReturnCode["IDCardFail"] = "3";
1493
+ CfmmcReturnCode["OtherFail"] = "4";
1494
+ })(CfmmcReturnCode || (CfmmcReturnCode = {}));
1495
+ /** TThostFtdcClientTypeType */
1496
+ export var ClientType;
1497
+ (function (ClientType) {
1498
+ ClientType["All"] = "0";
1499
+ ClientType["Person"] = "1";
1500
+ ClientType["Company"] = "2";
1501
+ ClientType["Other"] = "3";
1502
+ ClientType["SpecialOrgan"] = "4";
1503
+ ClientType["Asset"] = "5";
1504
+ })(ClientType || (ClientType = {}));
1505
+ /** TThostFtdcExchangeIDTypeType */
1506
+ export var ExchangeIDType;
1507
+ (function (ExchangeIDType) {
1508
+ ExchangeIDType["SHFE"] = "S";
1509
+ ExchangeIDType["CZCE"] = "Z";
1510
+ ExchangeIDType["DCE"] = "D";
1511
+ ExchangeIDType["CFFEX"] = "J";
1512
+ ExchangeIDType["INE"] = "N";
1513
+ })(ExchangeIDType || (ExchangeIDType = {}));
1514
+ /** TThostFtdcExClientIDTypeType */
1515
+ export var ExClientIDType;
1516
+ (function (ExClientIDType) {
1517
+ ExClientIDType["Hedge"] = "1";
1518
+ ExClientIDType["Arbitrage"] = "2";
1519
+ ExClientIDType["Speculation"] = "3";
1520
+ })(ExClientIDType || (ExClientIDType = {}));
1521
+ /** TThostFtdcUpdateFlagType */
1522
+ export var UpdateFlag;
1523
+ (function (UpdateFlag) {
1524
+ UpdateFlag["NoUpdate"] = "0";
1525
+ UpdateFlag["Success"] = "1";
1526
+ UpdateFlag["Fail"] = "2";
1527
+ UpdateFlag["TCSuccess"] = "3";
1528
+ UpdateFlag["TCFail"] = "4";
1529
+ UpdateFlag["Cancel"] = "5";
1530
+ })(UpdateFlag || (UpdateFlag = {}));
1531
+ /** TThostFtdcApplyOperateIDType */
1532
+ export var ApplyOperateID;
1533
+ (function (ApplyOperateID) {
1534
+ ApplyOperateID["OpenInvestor"] = "1";
1535
+ ApplyOperateID["ModifyIDCard"] = "2";
1536
+ ApplyOperateID["ModifyNoIDCard"] = "3";
1537
+ ApplyOperateID["ApplyTradingCode"] = "4";
1538
+ ApplyOperateID["CancelTradingCode"] = "5";
1539
+ ApplyOperateID["CancelInvestor"] = "6";
1540
+ ApplyOperateID["FreezeAccount"] = "8";
1541
+ ApplyOperateID["ActiveFreezeAccount"] = "9";
1542
+ })(ApplyOperateID || (ApplyOperateID = {}));
1543
+ /** TThostFtdcApplyStatusIDType */
1544
+ export var ApplyStatusID;
1545
+ (function (ApplyStatusID) {
1546
+ ApplyStatusID["NoComplete"] = "1";
1547
+ ApplyStatusID["Submited"] = "2";
1548
+ ApplyStatusID["Checked"] = "3";
1549
+ ApplyStatusID["Refused"] = "4";
1550
+ ApplyStatusID["Deleted"] = "5";
1551
+ })(ApplyStatusID || (ApplyStatusID = {}));
1552
+ /** TThostFtdcSendMethodType */
1553
+ export var SendMethod;
1554
+ (function (SendMethod) {
1555
+ SendMethod["ByAPI"] = "1";
1556
+ SendMethod["ByFile"] = "2";
1557
+ })(SendMethod || (SendMethod = {}));
1558
+ /** TThostFtdcEventModeType */
1559
+ export var EventMode;
1560
+ (function (EventMode) {
1561
+ EventMode["ADD"] = "1";
1562
+ EventMode["UPDATE"] = "2";
1563
+ EventMode["DELETE"] = "3";
1564
+ EventMode["CHECK"] = "4";
1565
+ EventMode["COPY"] = "5";
1566
+ EventMode["CANCEL"] = "6";
1567
+ EventMode["Reverse"] = "7";
1568
+ })(EventMode || (EventMode = {}));
1569
+ /** TThostFtdcUOAAutoSendType */
1570
+ export var UOAAutoSend;
1571
+ (function (UOAAutoSend) {
1572
+ UOAAutoSend["ASR"] = "1";
1573
+ UOAAutoSend["ASNR"] = "2";
1574
+ UOAAutoSend["NSAR"] = "3";
1575
+ UOAAutoSend["NSR"] = "4";
1576
+ })(UOAAutoSend || (UOAAutoSend = {}));
1577
+ /** TThostFtdcFlowIDType */
1578
+ export var FlowID;
1579
+ (function (FlowID) {
1580
+ FlowID["InvestorGroupFlow"] = "1";
1581
+ FlowID["InvestorRate"] = "2";
1582
+ FlowID["InvestorCommRateModel"] = "3";
1583
+ })(FlowID || (FlowID = {}));
1584
+ /** TThostFtdcCheckLevelType */
1585
+ export var CheckLevel;
1586
+ (function (CheckLevel) {
1587
+ CheckLevel["Zero"] = "0";
1588
+ CheckLevel["One"] = "1";
1589
+ CheckLevel["Two"] = "2";
1590
+ })(CheckLevel || (CheckLevel = {}));
1591
+ /** TThostFtdcCheckStatusType */
1592
+ export var CheckStatus;
1593
+ (function (CheckStatus) {
1594
+ CheckStatus["Init"] = "0";
1595
+ CheckStatus["Checking"] = "1";
1596
+ CheckStatus["Checked"] = "2";
1597
+ CheckStatus["Refuse"] = "3";
1598
+ CheckStatus["Cancel"] = "4";
1599
+ })(CheckStatus || (CheckStatus = {}));
1600
+ /** TThostFtdcUsedStatusType */
1601
+ export var UsedStatus;
1602
+ (function (UsedStatus) {
1603
+ UsedStatus["Unused"] = "0";
1604
+ UsedStatus["Used"] = "1";
1605
+ UsedStatus["Fail"] = "2";
1606
+ })(UsedStatus || (UsedStatus = {}));
1607
+ /** TThostFtdcBankAcountOriginType */
1608
+ export var BankAcountOrigin;
1609
+ (function (BankAcountOrigin) {
1610
+ BankAcountOrigin["ByAccProperty"] = "0";
1611
+ BankAcountOrigin["ByFBTransfer"] = "1";
1612
+ })(BankAcountOrigin || (BankAcountOrigin = {}));
1613
+ /** TThostFtdcMonthBillTradeSumType */
1614
+ export var MonthBillTradeSum;
1615
+ (function (MonthBillTradeSum) {
1616
+ MonthBillTradeSum["ByInstrument"] = "0";
1617
+ MonthBillTradeSum["ByDayInsPrc"] = "1";
1618
+ MonthBillTradeSum["ByDayIns"] = "2";
1619
+ })(MonthBillTradeSum || (MonthBillTradeSum = {}));
1620
+ /** TThostFtdcFBTTradeCodeEnumType */
1621
+ export var FBTTradeCodeEnum;
1622
+ (function (FBTTradeCodeEnum) {
1623
+ FBTTradeCodeEnum["BankLaunchBankToBroker"] = "102001";
1624
+ FBTTradeCodeEnum["BrokerLaunchBankToBroker"] = "202001";
1625
+ FBTTradeCodeEnum["BankLaunchBrokerToBank"] = "102002";
1626
+ FBTTradeCodeEnum["BrokerLaunchBrokerToBank"] = "202002";
1627
+ })(FBTTradeCodeEnum || (FBTTradeCodeEnum = {}));
1628
+ /** TThostFtdcOTPTypeType */
1629
+ export var OTPType;
1630
+ (function (OTPType) {
1631
+ OTPType["NONE"] = "0";
1632
+ OTPType["TOTP"] = "1";
1633
+ })(OTPType || (OTPType = {}));
1634
+ /** TThostFtdcOTPStatusType */
1635
+ export var OTPStatus;
1636
+ (function (OTPStatus) {
1637
+ OTPStatus["Unused"] = "0";
1638
+ OTPStatus["Used"] = "1";
1639
+ OTPStatus["Disuse"] = "2";
1640
+ })(OTPStatus || (OTPStatus = {}));
1641
+ /** TThostFtdcBrokerUserTypeType */
1642
+ export var BrokerUserType;
1643
+ (function (BrokerUserType) {
1644
+ BrokerUserType["Investor"] = "1";
1645
+ BrokerUserType["BrokerUser"] = "2";
1646
+ })(BrokerUserType || (BrokerUserType = {}));
1647
+ /** TThostFtdcFutureTypeType */
1648
+ export var FutureType;
1649
+ (function (FutureType) {
1650
+ FutureType["Commodity"] = "1";
1651
+ FutureType["Financial"] = "2";
1652
+ })(FutureType || (FutureType = {}));
1653
+ /** TThostFtdcFundEventTypeType */
1654
+ export var FundEventType;
1655
+ (function (FundEventType) {
1656
+ FundEventType["Restriction"] = "0";
1657
+ FundEventType["TodayRestriction"] = "1";
1658
+ FundEventType["Transfer"] = "2";
1659
+ FundEventType["Credit"] = "3";
1660
+ FundEventType["InvestorWithdrawAlm"] = "4";
1661
+ FundEventType["BankRestriction"] = "5";
1662
+ FundEventType["Accountregister"] = "6";
1663
+ FundEventType["ExchangeFundIO"] = "7";
1664
+ FundEventType["InvestorFundIO"] = "8";
1665
+ })(FundEventType || (FundEventType = {}));
1666
+ /** TThostFtdcAccountSourceTypeType */
1667
+ export var AccountSourceType;
1668
+ (function (AccountSourceType) {
1669
+ AccountSourceType["FBTransfer"] = "0";
1670
+ AccountSourceType["ManualEntry"] = "1";
1671
+ })(AccountSourceType || (AccountSourceType = {}));
1672
+ /** TThostFtdcCodeSourceTypeType */
1673
+ export var CodeSourceType;
1674
+ (function (CodeSourceType) {
1675
+ CodeSourceType["UnifyAccount"] = "0";
1676
+ CodeSourceType["ManualEntry"] = "1";
1677
+ })(CodeSourceType || (CodeSourceType = {}));
1678
+ /** TThostFtdcUserRangeType */
1679
+ export var UserRange;
1680
+ (function (UserRange) {
1681
+ UserRange["All"] = "0";
1682
+ UserRange["Single"] = "1";
1683
+ })(UserRange || (UserRange = {}));
1684
+ /** TThostFtdcByGroupType */
1685
+ export var ByGroup;
1686
+ (function (ByGroup) {
1687
+ ByGroup["Investor"] = "2";
1688
+ ByGroup["Group"] = "1";
1689
+ })(ByGroup || (ByGroup = {}));
1690
+ /** TThostFtdcTradeSumStatModeType */
1691
+ export var TradeSumStatMode;
1692
+ (function (TradeSumStatMode) {
1693
+ TradeSumStatMode["Instrument"] = "1";
1694
+ TradeSumStatMode["Product"] = "2";
1695
+ TradeSumStatMode["Exchange"] = "3";
1696
+ })(TradeSumStatMode || (TradeSumStatMode = {}));
1697
+ /** TThostFtdcExprSetModeType */
1698
+ export var ExprSetMode;
1699
+ (function (ExprSetMode) {
1700
+ ExprSetMode["Relative"] = "1";
1701
+ ExprSetMode["Typical"] = "2";
1702
+ })(ExprSetMode || (ExprSetMode = {}));
1703
+ /** TThostFtdcRateInvestorRangeType */
1704
+ export var RateInvestorRange;
1705
+ (function (RateInvestorRange) {
1706
+ RateInvestorRange["All"] = "1";
1707
+ RateInvestorRange["Model"] = "2";
1708
+ RateInvestorRange["Single"] = "3";
1709
+ })(RateInvestorRange || (RateInvestorRange = {}));
1710
+ /** TThostFtdcSyncDataStatusType */
1711
+ export var SyncDataStatus;
1712
+ (function (SyncDataStatus) {
1713
+ SyncDataStatus["Initialize"] = "0";
1714
+ SyncDataStatus["Settlementing"] = "1";
1715
+ SyncDataStatus["Settlemented"] = "2";
1716
+ })(SyncDataStatus || (SyncDataStatus = {}));
1717
+ /** TThostFtdcTradeSourceType */
1718
+ export var TradeSource;
1719
+ (function (TradeSource) {
1720
+ TradeSource["NORMAL"] = "0";
1721
+ TradeSource["QUERY"] = "1";
1722
+ })(TradeSource || (TradeSource = {}));
1723
+ /** TThostFtdcFlexStatModeType */
1724
+ export var FlexStatMode;
1725
+ (function (FlexStatMode) {
1726
+ FlexStatMode["Product"] = "1";
1727
+ FlexStatMode["Exchange"] = "2";
1728
+ FlexStatMode["All"] = "3";
1729
+ })(FlexStatMode || (FlexStatMode = {}));
1730
+ /** TThostFtdcByInvestorRangeType */
1731
+ export var ByInvestorRange;
1732
+ (function (ByInvestorRange) {
1733
+ ByInvestorRange["Property"] = "1";
1734
+ ByInvestorRange["All"] = "2";
1735
+ })(ByInvestorRange || (ByInvestorRange = {}));
1736
+ /** TThostFtdcPropertyInvestorRangeType */
1737
+ export var PropertyInvestorRange;
1738
+ (function (PropertyInvestorRange) {
1739
+ PropertyInvestorRange["All"] = "1";
1740
+ PropertyInvestorRange["Property"] = "2";
1741
+ PropertyInvestorRange["Single"] = "3";
1742
+ })(PropertyInvestorRange || (PropertyInvestorRange = {}));
1743
+ /** TThostFtdcFileStatusType */
1744
+ export var FileStatus;
1745
+ (function (FileStatus) {
1746
+ FileStatus["NoCreate"] = "0";
1747
+ FileStatus["Created"] = "1";
1748
+ FileStatus["Failed"] = "2";
1749
+ })(FileStatus || (FileStatus = {}));
1750
+ /** TThostFtdcFileGenStyleType */
1751
+ export var FileGenStyle;
1752
+ (function (FileGenStyle) {
1753
+ FileGenStyle["FileTransmit"] = "0";
1754
+ FileGenStyle["FileGen"] = "1";
1755
+ })(FileGenStyle || (FileGenStyle = {}));
1756
+ /** TThostFtdcSysOperModeType */
1757
+ export var SysOperMode;
1758
+ (function (SysOperMode) {
1759
+ SysOperMode["Add"] = "1";
1760
+ SysOperMode["Update"] = "2";
1761
+ SysOperMode["Delete"] = "3";
1762
+ SysOperMode["Copy"] = "4";
1763
+ SysOperMode["AcTive"] = "5";
1764
+ SysOperMode["CanCel"] = "6";
1765
+ SysOperMode["ReSet"] = "7";
1766
+ })(SysOperMode || (SysOperMode = {}));
1767
+ /** TThostFtdcSysOperTypeType */
1768
+ export var SysOperType;
1769
+ (function (SysOperType) {
1770
+ SysOperType["UpdatePassword"] = "0";
1771
+ SysOperType["UserDepartment"] = "1";
1772
+ SysOperType["RoleManager"] = "2";
1773
+ SysOperType["RoleFunction"] = "3";
1774
+ SysOperType["BaseParam"] = "4";
1775
+ SysOperType["SetUserID"] = "5";
1776
+ SysOperType["SetUserRole"] = "6";
1777
+ SysOperType["UserIpRestriction"] = "7";
1778
+ SysOperType["DepartmentManager"] = "8";
1779
+ SysOperType["DepartmentCopy"] = "9";
1780
+ SysOperType["Tradingcode"] = "A";
1781
+ SysOperType["InvestorStatus"] = "B";
1782
+ SysOperType["InvestorAuthority"] = "C";
1783
+ SysOperType["PropertySet"] = "D";
1784
+ SysOperType["ReSetInvestorPasswd"] = "E";
1785
+ SysOperType["InvestorPersonalityInfo"] = "F";
1786
+ })(SysOperType || (SysOperType = {}));
1787
+ /** TThostFtdcCSRCDataQueyTypeType */
1788
+ export var CSRCDataQueyType;
1789
+ (function (CSRCDataQueyType) {
1790
+ CSRCDataQueyType["Current"] = "0";
1791
+ CSRCDataQueyType["History"] = "1";
1792
+ })(CSRCDataQueyType || (CSRCDataQueyType = {}));
1793
+ /** TThostFtdcFreezeStatusType */
1794
+ export var FreezeStatus;
1795
+ (function (FreezeStatus) {
1796
+ FreezeStatus["Normal"] = "1";
1797
+ FreezeStatus["Freeze"] = "0";
1798
+ })(FreezeStatus || (FreezeStatus = {}));
1799
+ /** TThostFtdcStandardStatusType */
1800
+ export var StandardStatus;
1801
+ (function (StandardStatus) {
1802
+ StandardStatus["Standard"] = "0";
1803
+ StandardStatus["NonStandard"] = "1";
1804
+ })(StandardStatus || (StandardStatus = {}));
1805
+ /** TThostFtdcRightParamTypeType */
1806
+ export var RightParamType;
1807
+ (function (RightParamType) {
1808
+ RightParamType["Freeze"] = "1";
1809
+ RightParamType["FreezeActive"] = "2";
1810
+ RightParamType["OpenLimit"] = "3";
1811
+ RightParamType["RelieveOpenLimit"] = "4";
1812
+ })(RightParamType || (RightParamType = {}));
1813
+ /** TThostFtdcDataStatusType */
1814
+ export var DataStatus;
1815
+ (function (DataStatus) {
1816
+ DataStatus["Normal"] = "0";
1817
+ DataStatus["Deleted"] = "1";
1818
+ })(DataStatus || (DataStatus = {}));
1819
+ /** TThostFtdcAMLCheckStatusType */
1820
+ export var AMLCheckStatus;
1821
+ (function (AMLCheckStatus) {
1822
+ AMLCheckStatus["Init"] = "0";
1823
+ AMLCheckStatus["Checking"] = "1";
1824
+ AMLCheckStatus["Checked"] = "2";
1825
+ AMLCheckStatus["RefuseReport"] = "3";
1826
+ })(AMLCheckStatus || (AMLCheckStatus = {}));
1827
+ /** TThostFtdcAmlDateTypeType */
1828
+ export var AmlDateType;
1829
+ (function (AmlDateType) {
1830
+ AmlDateType["DrawDay"] = "0";
1831
+ AmlDateType["TouchDay"] = "1";
1832
+ })(AmlDateType || (AmlDateType = {}));
1833
+ /** TThostFtdcAmlCheckLevelType */
1834
+ export var AmlCheckLevel;
1835
+ (function (AmlCheckLevel) {
1836
+ AmlCheckLevel["CheckLevel0"] = "0";
1837
+ AmlCheckLevel["CheckLevel1"] = "1";
1838
+ AmlCheckLevel["CheckLevel2"] = "2";
1839
+ AmlCheckLevel["CheckLevel3"] = "3";
1840
+ })(AmlCheckLevel || (AmlCheckLevel = {}));
1841
+ /** TThostFtdcExportFileTypeType */
1842
+ export var ExportFileType;
1843
+ (function (ExportFileType) {
1844
+ ExportFileType["CSV"] = "0";
1845
+ ExportFileType["EXCEL"] = "1";
1846
+ ExportFileType["DBF"] = "2";
1847
+ })(ExportFileType || (ExportFileType = {}));
1848
+ /** TThostFtdcSettleManagerTypeType */
1849
+ export var SettleManagerType;
1850
+ (function (SettleManagerType) {
1851
+ SettleManagerType["Before"] = "1";
1852
+ SettleManagerType["Settlement"] = "2";
1853
+ SettleManagerType["After"] = "3";
1854
+ SettleManagerType["Settlemented"] = "4";
1855
+ })(SettleManagerType || (SettleManagerType = {}));
1856
+ /** TThostFtdcSettleManagerLevelType */
1857
+ export var SettleManagerLevel;
1858
+ (function (SettleManagerLevel) {
1859
+ SettleManagerLevel["Must"] = "1";
1860
+ SettleManagerLevel["Alarm"] = "2";
1861
+ SettleManagerLevel["Prompt"] = "3";
1862
+ SettleManagerLevel["Ignore"] = "4";
1863
+ })(SettleManagerLevel || (SettleManagerLevel = {}));
1864
+ /** TThostFtdcSettleManagerGroupType */
1865
+ export var SettleManagerGroup;
1866
+ (function (SettleManagerGroup) {
1867
+ SettleManagerGroup["Exhcange"] = "1";
1868
+ SettleManagerGroup["ASP"] = "2";
1869
+ SettleManagerGroup["CSRC"] = "3";
1870
+ })(SettleManagerGroup || (SettleManagerGroup = {}));
1871
+ /** TThostFtdcLimitUseTypeType */
1872
+ export var LimitUseType;
1873
+ (function (LimitUseType) {
1874
+ LimitUseType["Repeatable"] = "1";
1875
+ LimitUseType["Unrepeatable"] = "2";
1876
+ })(LimitUseType || (LimitUseType = {}));
1877
+ /** TThostFtdcDataResourceType */
1878
+ export var DataResource;
1879
+ (function (DataResource) {
1880
+ DataResource["Settle"] = "1";
1881
+ DataResource["Exchange"] = "2";
1882
+ DataResource["CSRC"] = "3";
1883
+ })(DataResource || (DataResource = {}));
1884
+ /** TThostFtdcMarginTypeType */
1885
+ export var MarginType;
1886
+ (function (MarginType) {
1887
+ MarginType["ExchMarginRate"] = "0";
1888
+ MarginType["InstrMarginRate"] = "1";
1889
+ MarginType["InstrMarginRateTrade"] = "2";
1890
+ })(MarginType || (MarginType = {}));
1891
+ /** TThostFtdcActiveTypeType */
1892
+ export var ActiveType;
1893
+ (function (ActiveType) {
1894
+ ActiveType["Intraday"] = "1";
1895
+ ActiveType["Long"] = "2";
1896
+ })(ActiveType || (ActiveType = {}));
1897
+ /** TThostFtdcMarginRateTypeType */
1898
+ export var MarginRateType;
1899
+ (function (MarginRateType) {
1900
+ MarginRateType["Exchange"] = "1";
1901
+ MarginRateType["Investor"] = "2";
1902
+ MarginRateType["InvestorTrade"] = "3";
1903
+ })(MarginRateType || (MarginRateType = {}));
1904
+ /** TThostFtdcBackUpStatusType */
1905
+ export var BackUpStatus;
1906
+ (function (BackUpStatus) {
1907
+ BackUpStatus["UnBak"] = "0";
1908
+ BackUpStatus["BakUp"] = "1";
1909
+ BackUpStatus["BakUped"] = "2";
1910
+ BackUpStatus["BakFail"] = "3";
1911
+ })(BackUpStatus || (BackUpStatus = {}));
1912
+ /** TThostFtdcInitSettlementType */
1913
+ export var InitSettlement;
1914
+ (function (InitSettlement) {
1915
+ InitSettlement["UnInitialize"] = "0";
1916
+ InitSettlement["Initialize"] = "1";
1917
+ InitSettlement["Initialized"] = "2";
1918
+ })(InitSettlement || (InitSettlement = {}));
1919
+ /** TThostFtdcReportStatusType */
1920
+ export var ReportStatus;
1921
+ (function (ReportStatus) {
1922
+ ReportStatus["NoCreate"] = "0";
1923
+ ReportStatus["Create"] = "1";
1924
+ ReportStatus["Created"] = "2";
1925
+ ReportStatus["CreateFail"] = "3";
1926
+ })(ReportStatus || (ReportStatus = {}));
1927
+ /** TThostFtdcSaveStatusType */
1928
+ export var SaveStatus;
1929
+ (function (SaveStatus) {
1930
+ SaveStatus["UnSaveData"] = "0";
1931
+ SaveStatus["SaveDatad"] = "1";
1932
+ })(SaveStatus || (SaveStatus = {}));
1933
+ /** TThostFtdcSettArchiveStatusType */
1934
+ export var SettArchiveStatus;
1935
+ (function (SettArchiveStatus) {
1936
+ SettArchiveStatus["UnArchived"] = "0";
1937
+ SettArchiveStatus["Archiving"] = "1";
1938
+ SettArchiveStatus["Archived"] = "2";
1939
+ SettArchiveStatus["ArchiveFail"] = "3";
1940
+ })(SettArchiveStatus || (SettArchiveStatus = {}));
1941
+ /** TThostFtdcCTPTypeType */
1942
+ export var CTPType;
1943
+ (function (CTPType) {
1944
+ CTPType["Unkown"] = "0";
1945
+ CTPType["MainCenter"] = "1";
1946
+ CTPType["BackUp"] = "2";
1947
+ })(CTPType || (CTPType = {}));
1948
+ /** TThostFtdcCloseDealTypeType */
1949
+ export var CloseDealType;
1950
+ (function (CloseDealType) {
1951
+ CloseDealType["Normal"] = "0";
1952
+ CloseDealType["SpecFirst"] = "1";
1953
+ })(CloseDealType || (CloseDealType = {}));
1954
+ /** TThostFtdcMortgageFundUseRangeType */
1955
+ export var MortgageFundUseRange;
1956
+ (function (MortgageFundUseRange) {
1957
+ MortgageFundUseRange["None"] = "0";
1958
+ MortgageFundUseRange["Margin"] = "1";
1959
+ MortgageFundUseRange["All"] = "2";
1960
+ MortgageFundUseRange["CNY3"] = "3";
1961
+ })(MortgageFundUseRange || (MortgageFundUseRange = {}));
1962
+ /** TThostFtdcSpecProductTypeType */
1963
+ export var SpecProductType;
1964
+ (function (SpecProductType) {
1965
+ SpecProductType["CzceHedge"] = "1";
1966
+ SpecProductType["IneForeignCurrency"] = "2";
1967
+ SpecProductType["DceOpenClose"] = "3";
1968
+ })(SpecProductType || (SpecProductType = {}));
1969
+ /** TThostFtdcFundMortgageTypeType */
1970
+ export var FundMortgageType;
1971
+ (function (FundMortgageType) {
1972
+ FundMortgageType["Mortgage"] = "1";
1973
+ FundMortgageType["Redemption"] = "2";
1974
+ })(FundMortgageType || (FundMortgageType = {}));
1975
+ /** TThostFtdcAccountSettlementParamIDType */
1976
+ export var AccountSettlementParamID;
1977
+ (function (AccountSettlementParamID) {
1978
+ AccountSettlementParamID["BaseMargin"] = "1";
1979
+ AccountSettlementParamID["LowestInterest"] = "2";
1980
+ })(AccountSettlementParamID || (AccountSettlementParamID = {}));
1981
+ /** TThostFtdcFundMortDirectionType */
1982
+ export var FundMortDirection;
1983
+ (function (FundMortDirection) {
1984
+ FundMortDirection["In"] = "1";
1985
+ FundMortDirection["Out"] = "2";
1986
+ })(FundMortDirection || (FundMortDirection = {}));
1987
+ /** TThostFtdcBusinessClassType */
1988
+ export var BusinessClass;
1989
+ (function (BusinessClass) {
1990
+ BusinessClass["Profit"] = "0";
1991
+ BusinessClass["Loss"] = "1";
1992
+ BusinessClass["Other"] = "Z";
1993
+ })(BusinessClass || (BusinessClass = {}));
1994
+ /** TThostFtdcSwapSourceTypeType */
1995
+ export var SwapSourceType;
1996
+ (function (SwapSourceType) {
1997
+ SwapSourceType["Manual"] = "0";
1998
+ SwapSourceType["Automatic"] = "1";
1999
+ })(SwapSourceType || (SwapSourceType = {}));
2000
+ /** TThostFtdcCurrExDirectionType */
2001
+ export var CurrExDirection;
2002
+ (function (CurrExDirection) {
2003
+ CurrExDirection["Settlement"] = "0";
2004
+ CurrExDirection["Sale"] = "1";
2005
+ })(CurrExDirection || (CurrExDirection = {}));
2006
+ /** TThostFtdcCurrencySwapStatusType */
2007
+ export var CurrencySwapStatus;
2008
+ (function (CurrencySwapStatus) {
2009
+ CurrencySwapStatus["Entry"] = "1";
2010
+ CurrencySwapStatus["Approve"] = "2";
2011
+ CurrencySwapStatus["Refuse"] = "3";
2012
+ CurrencySwapStatus["Revoke"] = "4";
2013
+ CurrencySwapStatus["Send"] = "5";
2014
+ CurrencySwapStatus["Success"] = "6";
2015
+ CurrencySwapStatus["Failure"] = "7";
2016
+ })(CurrencySwapStatus || (CurrencySwapStatus = {}));
2017
+ /** TThostFtdcReqFlagType */
2018
+ export var ReqFlag;
2019
+ (function (ReqFlag) {
2020
+ ReqFlag["NoSend"] = "0";
2021
+ ReqFlag["SendSuccess"] = "1";
2022
+ ReqFlag["SendFailed"] = "2";
2023
+ ReqFlag["WaitReSend"] = "3";
2024
+ })(ReqFlag || (ReqFlag = {}));
2025
+ /** TThostFtdcResFlagType */
2026
+ export var ResFlag;
2027
+ (function (ResFlag) {
2028
+ ResFlag["Success"] = "0";
2029
+ ResFlag["InsuffiCient"] = "1";
2030
+ ResFlag["UnKnown"] = "8";
2031
+ })(ResFlag || (ResFlag = {}));
2032
+ /** TThostFtdcExStatusType */
2033
+ export var ExStatus;
2034
+ (function (ExStatus) {
2035
+ ExStatus["Before"] = "0";
2036
+ ExStatus["After"] = "1";
2037
+ })(ExStatus || (ExStatus = {}));
2038
+ /** TThostFtdcClientRegionType */
2039
+ export var ClientRegion;
2040
+ (function (ClientRegion) {
2041
+ ClientRegion["Domestic"] = "1";
2042
+ ClientRegion["GMT"] = "2";
2043
+ ClientRegion["Foreign"] = "3";
2044
+ })(ClientRegion || (ClientRegion = {}));
2045
+ /** TThostFtdcHasBoardType */
2046
+ export var HasBoard;
2047
+ (function (HasBoard) {
2048
+ HasBoard["No"] = "0";
2049
+ HasBoard["Yes"] = "1";
2050
+ })(HasBoard || (HasBoard = {}));
2051
+ /** TThostFtdcStartModeType */
2052
+ export var StartMode;
2053
+ (function (StartMode) {
2054
+ StartMode["Normal"] = "1";
2055
+ StartMode["Emerge"] = "2";
2056
+ StartMode["Restore"] = "3";
2057
+ })(StartMode || (StartMode = {}));
2058
+ /** TThostFtdcTemplateTypeType */
2059
+ export var TemplateType;
2060
+ (function (TemplateType) {
2061
+ TemplateType["Full"] = "1";
2062
+ TemplateType["Increment"] = "2";
2063
+ TemplateType["BackUp"] = "3";
2064
+ })(TemplateType || (TemplateType = {}));
2065
+ /** TThostFtdcLoginModeType */
2066
+ export var LoginMode;
2067
+ (function (LoginMode) {
2068
+ LoginMode["Trade"] = "0";
2069
+ LoginMode["Transfer"] = "1";
2070
+ })(LoginMode || (LoginMode = {}));
2071
+ /** TThostFtdcPromptTypeType */
2072
+ export var PromptType;
2073
+ (function (PromptType) {
2074
+ PromptType["Instrument"] = "1";
2075
+ PromptType["Margin"] = "2";
2076
+ })(PromptType || (PromptType = {}));
2077
+ /** TThostFtdcHasTrusteeType */
2078
+ export var HasTrustee;
2079
+ (function (HasTrustee) {
2080
+ HasTrustee["Yes"] = "1";
2081
+ HasTrustee["No"] = "0";
2082
+ })(HasTrustee || (HasTrustee = {}));
2083
+ /** TThostFtdcAmTypeType */
2084
+ export var AmType;
2085
+ (function (AmType) {
2086
+ AmType["Bank"] = "1";
2087
+ AmType["Securities"] = "2";
2088
+ AmType["Fund"] = "3";
2089
+ AmType["Insurance"] = "4";
2090
+ AmType["Trust"] = "5";
2091
+ AmType["Other"] = "9";
2092
+ })(AmType || (AmType = {}));
2093
+ /** TThostFtdcCSRCFundIOTypeType */
2094
+ export var CSRCFundIOType;
2095
+ (function (CSRCFundIOType) {
2096
+ CSRCFundIOType["FundIO"] = "0";
2097
+ CSRCFundIOType["SwapCurrency"] = "1";
2098
+ })(CSRCFundIOType || (CSRCFundIOType = {}));
2099
+ /** TThostFtdcCusAccountTypeType */
2100
+ export var CusAccountType;
2101
+ (function (CusAccountType) {
2102
+ CusAccountType["Futures"] = "1";
2103
+ CusAccountType["AssetmgrFuture"] = "2";
2104
+ CusAccountType["AssetmgrTrustee"] = "3";
2105
+ CusAccountType["AssetmgrTransfer"] = "4";
2106
+ })(CusAccountType || (CusAccountType = {}));
2107
+ /** TThostFtdcLanguageTypeType */
2108
+ export var LanguageType;
2109
+ (function (LanguageType) {
2110
+ LanguageType["Chinese"] = "1";
2111
+ LanguageType["English"] = "2";
2112
+ })(LanguageType || (LanguageType = {}));
2113
+ /** TThostFtdcAssetmgrClientTypeType */
2114
+ export var AssetmgrClientType;
2115
+ (function (AssetmgrClientType) {
2116
+ AssetmgrClientType["Person"] = "1";
2117
+ AssetmgrClientType["Organ"] = "2";
2118
+ AssetmgrClientType["SpecialOrgan"] = "4";
2119
+ })(AssetmgrClientType || (AssetmgrClientType = {}));
2120
+ /** TThostFtdcAssetmgrTypeType */
2121
+ export var AssetmgrType;
2122
+ (function (AssetmgrType) {
2123
+ AssetmgrType["Futures"] = "3";
2124
+ AssetmgrType["SpecialOrgan"] = "4";
2125
+ })(AssetmgrType || (AssetmgrType = {}));
2126
+ /** TThostFtdcCheckInstrTypeType */
2127
+ export var CheckInstrType;
2128
+ (function (CheckInstrType) {
2129
+ CheckInstrType["HasExch"] = "0";
2130
+ CheckInstrType["HasATP"] = "1";
2131
+ CheckInstrType["HasDiff"] = "2";
2132
+ })(CheckInstrType || (CheckInstrType = {}));
2133
+ /** TThostFtdcDeliveryTypeType */
2134
+ export var DeliveryType;
2135
+ (function (DeliveryType) {
2136
+ DeliveryType["HandDeliv"] = "1";
2137
+ DeliveryType["PersonDeliv"] = "2";
2138
+ })(DeliveryType || (DeliveryType = {}));
2139
+ /** TThostFtdcMaxMarginSideAlgorithmType */
2140
+ export var MaxMarginSideAlgorithm;
2141
+ (function (MaxMarginSideAlgorithm) {
2142
+ MaxMarginSideAlgorithm["NO"] = "0";
2143
+ MaxMarginSideAlgorithm["YES"] = "1";
2144
+ })(MaxMarginSideAlgorithm || (MaxMarginSideAlgorithm = {}));
2145
+ /** TThostFtdcDAClientTypeType */
2146
+ export var DAClientType;
2147
+ (function (DAClientType) {
2148
+ DAClientType["Person"] = "0";
2149
+ DAClientType["Company"] = "1";
2150
+ DAClientType["Other"] = "2";
2151
+ })(DAClientType || (DAClientType = {}));
2152
+ /** TThostFtdcUOAAssetmgrTypeType */
2153
+ export var UOAAssetmgrType;
2154
+ (function (UOAAssetmgrType) {
2155
+ UOAAssetmgrType["Futures"] = "1";
2156
+ UOAAssetmgrType["SpecialOrgan"] = "2";
2157
+ })(UOAAssetmgrType || (UOAAssetmgrType = {}));
2158
+ /** TThostFtdcDirectionEnType */
2159
+ export var DirectionEn;
2160
+ (function (DirectionEn) {
2161
+ DirectionEn["Buy"] = "0";
2162
+ DirectionEn["Sell"] = "1";
2163
+ })(DirectionEn || (DirectionEn = {}));
2164
+ /** TThostFtdcOffsetFlagEnType */
2165
+ export var OffsetFlagEn;
2166
+ (function (OffsetFlagEn) {
2167
+ OffsetFlagEn["Open"] = "0";
2168
+ OffsetFlagEn["Close"] = "1";
2169
+ OffsetFlagEn["ForceClose"] = "2";
2170
+ OffsetFlagEn["CloseToday"] = "3";
2171
+ OffsetFlagEn["CloseYesterday"] = "4";
2172
+ OffsetFlagEn["ForceOff"] = "5";
2173
+ OffsetFlagEn["LocalForceClose"] = "6";
2174
+ })(OffsetFlagEn || (OffsetFlagEn = {}));
2175
+ /** TThostFtdcHedgeFlagEnType */
2176
+ export var HedgeFlagEn;
2177
+ (function (HedgeFlagEn) {
2178
+ HedgeFlagEn["Speculation"] = "1";
2179
+ HedgeFlagEn["Arbitrage"] = "2";
2180
+ HedgeFlagEn["Hedge"] = "3";
2181
+ })(HedgeFlagEn || (HedgeFlagEn = {}));
2182
+ /** TThostFtdcFundIOTypeEnType */
2183
+ export var FundIOTypeEn;
2184
+ (function (FundIOTypeEn) {
2185
+ FundIOTypeEn["FundIO"] = "1";
2186
+ FundIOTypeEn["Transfer"] = "2";
2187
+ FundIOTypeEn["SwapCurrency"] = "3";
2188
+ })(FundIOTypeEn || (FundIOTypeEn = {}));
2189
+ /** TThostFtdcFundTypeEnType */
2190
+ export var FundTypeEn;
2191
+ (function (FundTypeEn) {
2192
+ FundTypeEn["Deposite"] = "1";
2193
+ FundTypeEn["ItemFund"] = "2";
2194
+ FundTypeEn["Company"] = "3";
2195
+ FundTypeEn["InnerTransfer"] = "4";
2196
+ })(FundTypeEn || (FundTypeEn = {}));
2197
+ /** TThostFtdcFundDirectionEnType */
2198
+ export var FundDirectionEn;
2199
+ (function (FundDirectionEn) {
2200
+ FundDirectionEn["In"] = "1";
2201
+ FundDirectionEn["Out"] = "2";
2202
+ })(FundDirectionEn || (FundDirectionEn = {}));
2203
+ /** TThostFtdcFundMortDirectionEnType */
2204
+ export var FundMortDirectionEn;
2205
+ (function (FundMortDirectionEn) {
2206
+ FundMortDirectionEn["In"] = "1";
2207
+ FundMortDirectionEn["Out"] = "2";
2208
+ })(FundMortDirectionEn || (FundMortDirectionEn = {}));
2209
+ /** TThostFtdcOptionsTypeType */
2210
+ export var OptionsType;
2211
+ (function (OptionsType) {
2212
+ OptionsType["CallOptions"] = "1";
2213
+ OptionsType["PutOptions"] = "2";
2214
+ })(OptionsType || (OptionsType = {}));
2215
+ /** TThostFtdcStrikeModeType */
2216
+ export var StrikeMode;
2217
+ (function (StrikeMode) {
2218
+ StrikeMode["Continental"] = "0";
2219
+ StrikeMode["American"] = "1";
2220
+ StrikeMode["Bermuda"] = "2";
2221
+ })(StrikeMode || (StrikeMode = {}));
2222
+ /** TThostFtdcStrikeTypeType */
2223
+ export var StrikeType;
2224
+ (function (StrikeType) {
2225
+ StrikeType["Hedge"] = "0";
2226
+ StrikeType["Match"] = "1";
2227
+ })(StrikeType || (StrikeType = {}));
2228
+ /** TThostFtdcApplyTypeType */
2229
+ export var ApplyType;
2230
+ (function (ApplyType) {
2231
+ ApplyType["NotStrikeNum"] = "4";
2232
+ })(ApplyType || (ApplyType = {}));
2233
+ /** TThostFtdcGiveUpDataSourceType */
2234
+ export var GiveUpDataSource;
2235
+ (function (GiveUpDataSource) {
2236
+ GiveUpDataSource["Gen"] = "0";
2237
+ GiveUpDataSource["Hand"] = "1";
2238
+ })(GiveUpDataSource || (GiveUpDataSource = {}));
2239
+ /** TThostFtdcExecResultType */
2240
+ export var ExecResult;
2241
+ (function (ExecResult) {
2242
+ ExecResult["NoExec"] = "n";
2243
+ ExecResult["Canceled"] = "c";
2244
+ ExecResult["OK"] = "0";
2245
+ ExecResult["NoPosition"] = "1";
2246
+ ExecResult["NoDeposit"] = "2";
2247
+ ExecResult["NoParticipant"] = "3";
2248
+ ExecResult["NoClient"] = "4";
2249
+ ExecResult["NoInstrument"] = "6";
2250
+ ExecResult["NoRight"] = "7";
2251
+ ExecResult["InvalidVolume"] = "8";
2252
+ ExecResult["NoEnoughHistoryTrade"] = "9";
2253
+ ExecResult["Unknown"] = "a";
2254
+ })(ExecResult || (ExecResult = {}));
2255
+ /** TThostFtdcCombinationTypeType */
2256
+ export var CombinationType;
2257
+ (function (CombinationType) {
2258
+ CombinationType["Future"] = "0";
2259
+ CombinationType["BUL"] = "1";
2260
+ CombinationType["BER"] = "2";
2261
+ CombinationType["STD"] = "3";
2262
+ CombinationType["STG"] = "4";
2263
+ CombinationType["PRT"] = "5";
2264
+ CombinationType["CAS"] = "6";
2265
+ CombinationType["OPL"] = "7";
2266
+ CombinationType["BFO"] = "8";
2267
+ CombinationType["BLS"] = "9";
2268
+ CombinationType["BES"] = "a";
2269
+ })(CombinationType || (CombinationType = {}));
2270
+ /** TThostFtdcDceCombinationTypeType */
2271
+ export var DceCombinationType;
2272
+ (function (DceCombinationType) {
2273
+ DceCombinationType["SPL"] = "0";
2274
+ DceCombinationType["OPL"] = "1";
2275
+ DceCombinationType["SP"] = "2";
2276
+ DceCombinationType["SPC"] = "3";
2277
+ DceCombinationType["BLS"] = "4";
2278
+ DceCombinationType["BES"] = "5";
2279
+ DceCombinationType["CAS"] = "6";
2280
+ DceCombinationType["STD"] = "7";
2281
+ DceCombinationType["STG"] = "8";
2282
+ DceCombinationType["BFO"] = "9";
2283
+ DceCombinationType["SFO"] = "a";
2284
+ })(DceCombinationType || (DceCombinationType = {}));
2285
+ /** TThostFtdcOptionRoyaltyPriceTypeType */
2286
+ export var OptionRoyaltyPriceType;
2287
+ (function (OptionRoyaltyPriceType) {
2288
+ OptionRoyaltyPriceType["PreSettlementPrice"] = "1";
2289
+ OptionRoyaltyPriceType["OpenPrice"] = "4";
2290
+ OptionRoyaltyPriceType["MaxPreSettlementPrice"] = "5";
2291
+ })(OptionRoyaltyPriceType || (OptionRoyaltyPriceType = {}));
2292
+ /** TThostFtdcBalanceAlgorithmType */
2293
+ export var BalanceAlgorithm;
2294
+ (function (BalanceAlgorithm) {
2295
+ BalanceAlgorithm["Default"] = "1";
2296
+ BalanceAlgorithm["IncludeOptValLost"] = "2";
2297
+ })(BalanceAlgorithm || (BalanceAlgorithm = {}));
2298
+ /** TThostFtdcActionTypeType */
2299
+ export var ActionType;
2300
+ (function (ActionType) {
2301
+ ActionType["Exec"] = "1";
2302
+ ActionType["Abandon"] = "2";
2303
+ })(ActionType || (ActionType = {}));
2304
+ /** TThostFtdcForQuoteStatusType */
2305
+ export var ForQuoteStatus;
2306
+ (function (ForQuoteStatus) {
2307
+ ForQuoteStatus["Submitted"] = "a";
2308
+ ForQuoteStatus["Accepted"] = "b";
2309
+ ForQuoteStatus["Rejected"] = "c";
2310
+ })(ForQuoteStatus || (ForQuoteStatus = {}));
2311
+ /** TThostFtdcValueMethodType */
2312
+ export var ValueMethod;
2313
+ (function (ValueMethod) {
2314
+ ValueMethod["Absolute"] = "0";
2315
+ ValueMethod["Ratio"] = "1";
2316
+ })(ValueMethod || (ValueMethod = {}));
2317
+ /** TThostFtdcExecOrderPositionFlagType */
2318
+ export var ExecOrderPositionFlag;
2319
+ (function (ExecOrderPositionFlag) {
2320
+ ExecOrderPositionFlag["Reserve"] = "0";
2321
+ ExecOrderPositionFlag["UnReserve"] = "1";
2322
+ })(ExecOrderPositionFlag || (ExecOrderPositionFlag = {}));
2323
+ /** TThostFtdcExecOrderCloseFlagType */
2324
+ export var ExecOrderCloseFlag;
2325
+ (function (ExecOrderCloseFlag) {
2326
+ ExecOrderCloseFlag["AutoClose"] = "0";
2327
+ ExecOrderCloseFlag["NotToClose"] = "1";
2328
+ })(ExecOrderCloseFlag || (ExecOrderCloseFlag = {}));
2329
+ /** TThostFtdcProductTypeType */
2330
+ export var ProductType;
2331
+ (function (ProductType) {
2332
+ ProductType["Futures"] = "1";
2333
+ ProductType["Options"] = "2";
2334
+ })(ProductType || (ProductType = {}));
2335
+ /** TThostFtdcCZCEUploadFileNameType */
2336
+ export var CZCEUploadFileName;
2337
+ (function (CZCEUploadFileName) {
2338
+ CZCEUploadFileName["CUFN_O"] = "O";
2339
+ CZCEUploadFileName["CUFN_T"] = "T";
2340
+ CZCEUploadFileName["CUFN_P"] = "P";
2341
+ CZCEUploadFileName["CUFN_N"] = "N";
2342
+ CZCEUploadFileName["CUFN_L"] = "L";
2343
+ CZCEUploadFileName["CUFN_F"] = "F";
2344
+ CZCEUploadFileName["CUFN_C"] = "C";
2345
+ CZCEUploadFileName["CUFN_M"] = "M";
2346
+ })(CZCEUploadFileName || (CZCEUploadFileName = {}));
2347
+ /** TThostFtdcDCEUploadFileNameType */
2348
+ export var DCEUploadFileName;
2349
+ (function (DCEUploadFileName) {
2350
+ DCEUploadFileName["DUFN_O"] = "O";
2351
+ DCEUploadFileName["DUFN_T"] = "T";
2352
+ DCEUploadFileName["DUFN_P"] = "P";
2353
+ DCEUploadFileName["DUFN_F"] = "F";
2354
+ DCEUploadFileName["DUFN_C"] = "C";
2355
+ DCEUploadFileName["DUFN_D"] = "D";
2356
+ DCEUploadFileName["DUFN_M"] = "M";
2357
+ DCEUploadFileName["DUFN_S"] = "S";
2358
+ })(DCEUploadFileName || (DCEUploadFileName = {}));
2359
+ /** TThostFtdcSHFEUploadFileNameType */
2360
+ export var SHFEUploadFileName;
2361
+ (function (SHFEUploadFileName) {
2362
+ SHFEUploadFileName["SUFN_O"] = "O";
2363
+ SHFEUploadFileName["SUFN_T"] = "T";
2364
+ SHFEUploadFileName["SUFN_P"] = "P";
2365
+ SHFEUploadFileName["SUFN_F"] = "F";
2366
+ })(SHFEUploadFileName || (SHFEUploadFileName = {}));
2367
+ /** TThostFtdcCFFEXUploadFileNameType */
2368
+ export var CFFEXUploadFileName;
2369
+ (function (CFFEXUploadFileName) {
2370
+ CFFEXUploadFileName["SUFN_T"] = "T";
2371
+ CFFEXUploadFileName["SUFN_P"] = "P";
2372
+ CFFEXUploadFileName["SUFN_F"] = "F";
2373
+ CFFEXUploadFileName["SUFN_S"] = "S";
2374
+ })(CFFEXUploadFileName || (CFFEXUploadFileName = {}));
2375
+ /** TThostFtdcCombDirectionType */
2376
+ export var CombDirection;
2377
+ (function (CombDirection) {
2378
+ CombDirection["Comb"] = "0";
2379
+ CombDirection["UnComb"] = "1";
2380
+ CombDirection["DelComb"] = "2";
2381
+ })(CombDirection || (CombDirection = {}));
2382
+ /** TThostFtdcStrikeOffsetTypeType */
2383
+ export var StrikeOffsetType;
2384
+ (function (StrikeOffsetType) {
2385
+ StrikeOffsetType["RealValue"] = "1";
2386
+ StrikeOffsetType["ProfitValue"] = "2";
2387
+ StrikeOffsetType["RealRatio"] = "3";
2388
+ StrikeOffsetType["ProfitRatio"] = "4";
2389
+ })(StrikeOffsetType || (StrikeOffsetType = {}));
2390
+ /** TThostFtdcReserveOpenAccStasType */
2391
+ export var ReserveOpenAccStas;
2392
+ (function (ReserveOpenAccStas) {
2393
+ ReserveOpenAccStas["Processing"] = "0";
2394
+ ReserveOpenAccStas["Cancelled"] = "1";
2395
+ ReserveOpenAccStas["Opened"] = "2";
2396
+ ReserveOpenAccStas["Invalid"] = "3";
2397
+ })(ReserveOpenAccStas || (ReserveOpenAccStas = {}));
2398
+ /** TThostFtdcWeakPasswordSourceType */
2399
+ export var WeakPasswordSource;
2400
+ (function (WeakPasswordSource) {
2401
+ WeakPasswordSource["Lib"] = "1";
2402
+ WeakPasswordSource["Manual"] = "2";
2403
+ })(WeakPasswordSource || (WeakPasswordSource = {}));
2404
+ /** TThostFtdcOptSelfCloseFlagType */
2405
+ export var OptSelfCloseFlag;
2406
+ (function (OptSelfCloseFlag) {
2407
+ OptSelfCloseFlag["CloseSelfOptionPosition"] = "1";
2408
+ OptSelfCloseFlag["ReserveOptionPosition"] = "2";
2409
+ OptSelfCloseFlag["SellCloseSelfFuturePosition"] = "3";
2410
+ OptSelfCloseFlag["ReserveFuturePosition"] = "4";
2411
+ })(OptSelfCloseFlag || (OptSelfCloseFlag = {}));
2412
+ /** TThostFtdcBizTypeType */
2413
+ export var BizType;
2414
+ (function (BizType) {
2415
+ BizType["Future"] = "1";
2416
+ BizType["Stock"] = "2";
2417
+ })(BizType || (BizType = {}));
2418
+ /** TThostFtdcAppTypeType */
2419
+ export var AppType;
2420
+ (function (AppType) {
2421
+ AppType["TYPE_Investor"] = "1";
2422
+ AppType["TYPE_InvestorRelay"] = "2";
2423
+ AppType["TYPE_OperatorRelay"] = "3";
2424
+ AppType["TYPE_UnKnown"] = "4";
2425
+ })(AppType || (AppType = {}));
2426
+ /** TThostFtdcResponseValueType */
2427
+ export var ResponseValue;
2428
+ (function (ResponseValue) {
2429
+ ResponseValue["Right"] = "0";
2430
+ ResponseValue["Refuse"] = "1";
2431
+ })(ResponseValue || (ResponseValue = {}));
2432
+ /** TThostFtdcOTCTradeTypeType */
2433
+ export var OTCTradeType;
2434
+ (function (OTCTradeType) {
2435
+ OTCTradeType["TRDT_Block"] = "0";
2436
+ OTCTradeType["TRDT_EFP"] = "1";
2437
+ })(OTCTradeType || (OTCTradeType = {}));
2438
+ /** TThostFtdcMatchTypeType */
2439
+ export var MatchType;
2440
+ (function (MatchType) {
2441
+ MatchType["MT_DV01"] = "1";
2442
+ MatchType["MT_ParValue"] = "2";
2443
+ })(MatchType || (MatchType = {}));
2444
+ /** TThostFtdcAuthTypeType */
2445
+ export var AuthType;
2446
+ (function (AuthType) {
2447
+ AuthType["WHITE"] = "0";
2448
+ AuthType["BLACK"] = "1";
2449
+ })(AuthType || (AuthType = {}));
2450
+ /** TThostFtdcClassTypeType */
2451
+ export var ClassType;
2452
+ (function (ClassType) {
2453
+ ClassType["ALL"] = "0";
2454
+ ClassType["FUTURE"] = "1";
2455
+ ClassType["OPTION"] = "2";
2456
+ ClassType["COMB"] = "3";
2457
+ })(ClassType || (ClassType = {}));
2458
+ /** TThostFtdcTradingTypeType */
2459
+ export var TradingType;
2460
+ (function (TradingType) {
2461
+ TradingType["ALL"] = "0";
2462
+ TradingType["TRADE"] = "1";
2463
+ TradingType["UNTRADE"] = "2";
2464
+ })(TradingType || (TradingType = {}));
2465
+ /** TThostFtdcProductStatusType */
2466
+ export var ProductStatus;
2467
+ (function (ProductStatus) {
2468
+ ProductStatus["tradeable"] = "1";
2469
+ ProductStatus["untradeable"] = "2";
2470
+ })(ProductStatus || (ProductStatus = {}));
2471
+ /** TThostFtdcSyncDeltaStatusType */
2472
+ export var SyncDeltaStatus;
2473
+ (function (SyncDeltaStatus) {
2474
+ SyncDeltaStatus["Readable"] = "1";
2475
+ SyncDeltaStatus["Reading"] = "2";
2476
+ SyncDeltaStatus["Readend"] = "3";
2477
+ SyncDeltaStatus["OptErr"] = "e";
2478
+ })(SyncDeltaStatus || (SyncDeltaStatus = {}));
2479
+ /** TThostFtdcActionDirectionType */
2480
+ export var ActionDirection;
2481
+ (function (ActionDirection) {
2482
+ ActionDirection["Add"] = "1";
2483
+ ActionDirection["Del"] = "2";
2484
+ ActionDirection["Upd"] = "3";
2485
+ })(ActionDirection || (ActionDirection = {}));
2486
+ /** TThostFtdcOrderCancelAlgType */
2487
+ export var OrderCancelAlg;
2488
+ (function (OrderCancelAlg) {
2489
+ OrderCancelAlg["Balance"] = "1";
2490
+ OrderCancelAlg["OrigFirst"] = "2";
2491
+ })(OrderCancelAlg || (OrderCancelAlg = {}));
2492
+ /** TThostFtdcOpenLimitControlLevelType */
2493
+ export var OpenLimitControlLevel;
2494
+ (function (OpenLimitControlLevel) {
2495
+ OpenLimitControlLevel["None"] = "0";
2496
+ OpenLimitControlLevel["Product"] = "1";
2497
+ OpenLimitControlLevel["Inst"] = "2";
2498
+ })(OpenLimitControlLevel || (OpenLimitControlLevel = {}));
2499
+ /** TThostFtdcOrderFreqControlLevelType */
2500
+ export var OrderFreqControlLevel;
2501
+ (function (OrderFreqControlLevel) {
2502
+ OrderFreqControlLevel["None"] = "0";
2503
+ OrderFreqControlLevel["Product"] = "1";
2504
+ OrderFreqControlLevel["Inst"] = "2";
2505
+ })(OrderFreqControlLevel || (OrderFreqControlLevel = {}));
2506
+ /** TThostFtdcEnumBoolType */
2507
+ export var EnumBool;
2508
+ (function (EnumBool) {
2509
+ EnumBool["False"] = "0";
2510
+ EnumBool["True"] = "1";
2511
+ })(EnumBool || (EnumBool = {}));
2512
+ /** TThostFtdcTimeRangeType */
2513
+ export var TimeRange;
2514
+ (function (TimeRange) {
2515
+ TimeRange["USUAL"] = "1";
2516
+ TimeRange["FNSP"] = "2";
2517
+ TimeRange["BNSP"] = "3";
2518
+ TimeRange["SPOT"] = "4";
2519
+ })(TimeRange || (TimeRange = {}));
2520
+ /** TThostFtdcPortfolioType */
2521
+ export var Portfolio;
2522
+ (function (Portfolio) {
2523
+ Portfolio["None"] = "0";
2524
+ Portfolio["SPBM"] = "1";
2525
+ Portfolio["RULE"] = "2";
2526
+ Portfolio["SPMM"] = "3";
2527
+ Portfolio["RCAMS"] = "4";
2528
+ })(Portfolio || (Portfolio = {}));
2529
+ /** TThostFtdcWithDrawParamIDType */
2530
+ export var WithDrawParamID;
2531
+ (function (WithDrawParamID) {
2532
+ WithDrawParamID["CashIn"] = "C";
2533
+ })(WithDrawParamID || (WithDrawParamID = {}));
2534
+ /** TThostFtdcInvstTradingRightType */
2535
+ export var InvstTradingRight;
2536
+ (function (InvstTradingRight) {
2537
+ InvstTradingRight["CloseOnly"] = "1";
2538
+ InvstTradingRight["Forbidden"] = "2";
2539
+ })(InvstTradingRight || (InvstTradingRight = {}));
2540
+ /** TThostFtdcInstMarginCalIDType */
2541
+ export var InstMarginCalID;
2542
+ (function (InstMarginCalID) {
2543
+ InstMarginCalID["BothSide"] = "1";
2544
+ InstMarginCalID["MMSA"] = "2";
2545
+ InstMarginCalID["SPMM"] = "3";
2546
+ })(InstMarginCalID || (InstMarginCalID = {}));
2547
+ /** TThostFtdcRCAMSCombinationTypeType */
2548
+ export var RCAMSCombinationType;
2549
+ (function (RCAMSCombinationType) {
2550
+ RCAMSCombinationType["BUC"] = "0";
2551
+ RCAMSCombinationType["BEC"] = "1";
2552
+ RCAMSCombinationType["BEP"] = "2";
2553
+ RCAMSCombinationType["BUP"] = "3";
2554
+ RCAMSCombinationType["CAS"] = "4";
2555
+ })(RCAMSCombinationType || (RCAMSCombinationType = {}));
2556
+ /** TThostFtdcPortfTypeType */
2557
+ export var PortfType;
2558
+ (function (PortfType) {
2559
+ PortfType["None"] = "0";
2560
+ PortfType["SPBM_AddOnHedge"] = "1";
2561
+ })(PortfType || (PortfType = {}));
2562
+ /** TThostFtdcInstrumentClassType */
2563
+ export var InstrumentClass;
2564
+ (function (InstrumentClass) {
2565
+ InstrumentClass["Usual"] = "1";
2566
+ InstrumentClass["Delivery"] = "2";
2567
+ InstrumentClass["NonComb"] = "3";
2568
+ })(InstrumentClass || (InstrumentClass = {}));
2569
+ /** TThostFtdcProdChangeFlagType */
2570
+ export var ProdChangeFlag;
2571
+ (function (ProdChangeFlag) {
2572
+ ProdChangeFlag["None"] = "0";
2573
+ ProdChangeFlag["OnlyFrozen"] = "1";
2574
+ ProdChangeFlag["PositionChange"] = "2";
2575
+ })(ProdChangeFlag || (ProdChangeFlag = {}));
2576
+ //# sourceMappingURL=enums.gen.js.map