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