@hitrading/ctp-node 1.1.0 → 2.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/README.md +12 -5
- package/README.zh-CN.md +12 -5
- package/binding.gyp +13 -13
- package/{tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcMdApi.h +2 -1
- package/{tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcTraderApi.h +133 -6
- package/{tradeapi/macos/thostmduserapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcUserApiDataType.h +199 -3
- package/{tradeapi/macos/thosttraderapi_se.framework/Versions/A/Headers → ctpsdk}/ThostFtdcUserApiStruct.h +1574 -12
- package/{tradeapi → ctpsdk}/error.xml +56 -11
- package/ctpsdk/linux/thostmduserapi_se.so +0 -0
- package/{tradeapi → ctpsdk}/linux/thosttraderapi_se.so +0 -0
- package/{tradeapi → ctpsdk/macos/thostmduserapi_se.framework/Versions/A/Headers}/ThostFtdcMdApi.h +1 -1
- package/{tradeapi → ctpsdk/macos/thostmduserapi_se.framework/Versions/A/Headers}/ThostFtdcUserApiDataType.h +35 -2
- package/{tradeapi → ctpsdk/macos/thostmduserapi_se.framework/Versions/A/Headers}/ThostFtdcUserApiStruct.h +121 -11
- package/{tradeapi → ctpsdk}/macos/thostmduserapi_se.framework/Versions/A/Resources/Info.plist +46 -46
- package/{tradeapi → ctpsdk}/macos/thostmduserapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
- package/{tradeapi → ctpsdk}/macos/thostmduserapi_se.framework/Versions/A/thostmduserapi_se +0 -0
- package/{tradeapi → ctpsdk/macos/thosttraderapi_se.framework/Versions/A/Headers}/ThostFtdcTraderApi.h +14 -2
- package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/Headers/ThostFtdcUserApiDataType.h +2123 -2090
- package/{tradeapi/macos/thostmduserapi_se.framework → ctpsdk/macos/thosttraderapi_se.framework}/Versions/A/Headers/ThostFtdcUserApiStruct.h +5596 -5486
- package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/Resources/Info.plist +46 -46
- package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/_CodeSignature/CodeResources +149 -149
- package/{tradeapi → ctpsdk}/macos/thosttraderapi_se.framework/Versions/A/thosttraderapi_se +0 -0
- package/ctpsdk/windows/thostmduserapi_se.dll +0 -0
- package/ctpsdk/windows/thostmduserapi_se.lib +0 -0
- package/ctpsdk/windows/thosttraderapi_se.dll +0 -0
- package/ctpsdk/windows/thosttraderapi_se.lib +0 -0
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -0
- package/dist/client.js.map +1 -1
- package/dist/generated/enums.gen.d.ts +76 -6
- package/dist/generated/enums.gen.d.ts.map +1 -1
- package/dist/generated/enums.gen.js +78 -0
- package/dist/generated/enums.gen.js.map +1 -1
- package/dist/generated/structs.gen.d.ts +6271 -4816
- package/dist/generated/structs.gen.d.ts.map +1 -1
- package/dist/generated/structs.gen.js +131 -25
- package/dist/generated/structs.gen.js.map +1 -1
- package/dist/generated/trader.gen.d.ts +39 -1
- package/dist/generated/trader.gen.d.ts.map +1 -1
- package/dist/generated/trader.gen.js +315 -225
- package/dist/generated/trader.gen.js.map +1 -1
- package/dist/index.cjs +594 -296
- package/dist/market-data.d.ts +10 -0
- package/dist/market-data.d.ts.map +1 -1
- package/dist/market-data.js +20 -0
- package/dist/market-data.js.map +1 -1
- package/dist/native-binding.js +1 -1
- package/dist/native-binding.js.map +1 -1
- package/dist/trader.d.ts +38 -30
- package/dist/trader.d.ts.map +1 -1
- package/dist/trader.js +39 -45
- package/dist/trader.js.map +1 -1
- package/package.json +7 -3
- 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/client.ts +8 -0
- package/src/generated/enums.gen.ts +78 -0
- package/src/generated/layout.gen.cc +794 -40
- package/src/generated/structids.gen.h +54 -1
- package/src/generated/structs.gen.ts +6455 -4841
- package/src/generated/trader.gen.ts +315 -225
- package/src/generated/traderreq.gen.cc +84 -0
- package/src/generated/traderreq.gen.h +89 -75
- package/src/generated/traderspi.gen.cc +102 -0
- package/src/generated/traderspi.gen.h +198 -150
- package/src/market-data.ts +23 -0
- package/src/native/mdapi.cc +49 -2
- package/src/native/mdspi.cc +5 -1
- package/src/native/mdspi.h +4 -0
- package/src/native/risk.cc +50 -21
- package/src/native/risk.h +48 -8
- package/src/native/snapshot.h +61 -0
- package/src/native/traderapi.cc +11 -61
- package/src/native-binding.ts +1 -1
- package/src/trader.ts +55 -58
- package/tradeapi/linux/thostmduserapi_se.so +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
- /package/{tradeapi → ctpsdk}/error.dtd +0 -0
package/dist/index.cjs
CHANGED
|
@@ -40,6 +40,8 @@ __export(index_exports, {
|
|
|
40
40
|
ActionFlag: () => ActionFlag,
|
|
41
41
|
ActionType: () => ActionType,
|
|
42
42
|
ActiveType: () => ActiveType,
|
|
43
|
+
AddrSrvMode: () => AddrSrvMode,
|
|
44
|
+
AddrVer: () => AddrVer,
|
|
43
45
|
AlgoType: () => AlgoType,
|
|
44
46
|
Algorithm: () => Algorithm,
|
|
45
47
|
AllWithoutTrade: () => AllWithoutTrade,
|
|
@@ -48,6 +50,8 @@ __export(index_exports, {
|
|
|
48
50
|
AmlDateType: () => AmlDateType,
|
|
49
51
|
AppType: () => AppType,
|
|
50
52
|
ApplyOperateID: () => ApplyOperateID,
|
|
53
|
+
ApplySrc: () => ApplySrc,
|
|
54
|
+
ApplyStatus: () => ApplyStatus,
|
|
51
55
|
ApplyStatusID: () => ApplyStatusID,
|
|
52
56
|
ApplyType: () => ApplyType,
|
|
53
57
|
AssetmgrClientType: () => AssetmgrClientType,
|
|
@@ -95,6 +99,7 @@ __export(index_exports, {
|
|
|
95
99
|
ClientType: () => ClientType,
|
|
96
100
|
CloseDealType: () => CloseDealType,
|
|
97
101
|
CloseStyle: () => CloseStyle,
|
|
102
|
+
CmbType: () => CmbType,
|
|
98
103
|
CodeSourceType: () => CodeSourceType,
|
|
99
104
|
CombDirection: () => CombDirection,
|
|
100
105
|
CombinationType: () => CombinationType,
|
|
@@ -221,6 +226,7 @@ __export(index_exports, {
|
|
|
221
226
|
OTPType: () => OTPType,
|
|
222
227
|
OffsetFlag: () => OffsetFlag,
|
|
223
228
|
OffsetFlagEn: () => OffsetFlagEn,
|
|
229
|
+
OffsetType: () => OffsetType,
|
|
224
230
|
OpenLimitControlLevel: () => OpenLimitControlLevel,
|
|
225
231
|
OpenOrDestroy: () => OpenOrDestroy,
|
|
226
232
|
OptSelfCloseFlag: () => OptSelfCloseFlag,
|
|
@@ -260,6 +266,7 @@ __export(index_exports, {
|
|
|
260
266
|
ProtocalID: () => ProtocalID,
|
|
261
267
|
PublishStatus: () => PublishStatus,
|
|
262
268
|
PwdFlag: () => PwdFlag,
|
|
269
|
+
PwdRcdSrc: () => PwdRcdSrc,
|
|
263
270
|
QueryInvestorRange: () => QueryInvestorRange,
|
|
264
271
|
QuestionType: () => QuestionType,
|
|
265
272
|
RCAMSCombinationType: () => RCAMSCombinationType,
|
|
@@ -317,6 +324,7 @@ __export(index_exports, {
|
|
|
317
324
|
SystemParamID: () => SystemParamID,
|
|
318
325
|
SystemStatus: () => SystemStatus,
|
|
319
326
|
SystemType: () => SystemType,
|
|
327
|
+
TGSessionQryStatusType: () => TGSessionQryStatusType,
|
|
320
328
|
TemplateType: () => TemplateType,
|
|
321
329
|
TimeCondition: () => TimeCondition,
|
|
322
330
|
TimeRange: () => TimeRange,
|
|
@@ -365,7 +373,7 @@ var import_node_process = __toESM(require("node:process"), 1);
|
|
|
365
373
|
var require2 = (0, import_node_module.createRequire)(import_meta_url_shim);
|
|
366
374
|
var pkgRoot = (0, import_node_path.join)((0, import_node_path.dirname)((0, import_node_url.fileURLToPath)(import_meta_url_shim)), "..");
|
|
367
375
|
if (import_node_process.default.platform === "win32") {
|
|
368
|
-
import_node_process.default.env.PATH = `${(0, import_node_path.join)(pkgRoot, "
|
|
376
|
+
import_node_process.default.env.PATH = `${(0, import_node_path.join)(pkgRoot, "ctpsdk", "windows")};${import_node_process.default.env.PATH ?? ""}`;
|
|
369
377
|
}
|
|
370
378
|
var loadAddon = require2("node-gyp-build");
|
|
371
379
|
var native = loadAddon(pkgRoot);
|
|
@@ -376,8 +384,8 @@ var import_node_events = require("node:events");
|
|
|
376
384
|
// dist/generated/structs.gen.js
|
|
377
385
|
var STRUCTS = [
|
|
378
386
|
{ id: 0, name: "Dissemination", cName: "CThostFtdcDisseminationField", fields: [{ js: "sequenceSeries", kind: 2 }, { js: "sequenceNo", kind: 1 }] },
|
|
379
|
-
{ id: 1, name: "ReqUserLogin", cName: "CThostFtdcReqUserLoginField", fields: [{ js: "tradingDay", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "password", kind: 0 }, { js: "userProductInfo", kind: 0 }, { js: "interfaceProductInfo", kind: 0 }, { js: "protocolInfo", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "oneTimePassword", kind: 0 }, { js: "loginRemark", kind: 0 }, { js: "clientIpPort", kind: 1 }, { js: "clientIpAddress", kind: 0 }] },
|
|
380
|
-
{ id: 2, name: "RspUserLogin", cName: "CThostFtdcRspUserLoginField", fields: [{ js: "tradingDay", kind: 0 }, { js: "loginTime", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "systemName", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "maxOrderRef", kind: 0 }, { js: "shfeTime", kind: 0 }, { js: "dceTime", kind: 0 }, { js: "czceTime", kind: 0 }, { js: "ffexTime", kind: 0 }, { js: "ineTime", kind: 0 }, { js: "sysVersion", kind: 0 }, { js: "gfexTime", kind: 0 }] },
|
|
387
|
+
{ id: 1, name: "ReqUserLogin", cName: "CThostFtdcReqUserLoginField", fields: [{ js: "tradingDay", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "password", kind: 0 }, { js: "userProductInfo", kind: 0 }, { js: "interfaceProductInfo", kind: 0 }, { js: "protocolInfo", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "oneTimePassword", kind: 0 }, { js: "loginRemark", kind: 0 }, { js: "clientIpPort", kind: 1 }, { js: "clientIpAddress", kind: 0 }, { js: "smsCode", kind: 0 }] },
|
|
388
|
+
{ id: 2, name: "RspUserLogin", cName: "CThostFtdcRspUserLoginField", fields: [{ js: "tradingDay", kind: 0 }, { js: "loginTime", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "systemName", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "maxOrderRef", kind: 0 }, { js: "shfeTime", kind: 0 }, { js: "dceTime", kind: 0 }, { js: "czceTime", kind: 0 }, { js: "ffexTime", kind: 0 }, { js: "ineTime", kind: 0 }, { js: "sysVersion", kind: 0 }, { js: "gfexTime", kind: 0 }, { js: "loginDrIdentityId", kind: 1 }, { js: "userDrIdentityId", kind: 1 }, { js: "lastLoginTime", kind: 0 }, { js: "reserveInfo", kind: 0 }] },
|
|
381
389
|
{ id: 3, name: "UserLogout", cName: "CThostFtdcUserLogoutField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }] },
|
|
382
390
|
{ id: 4, name: "ForceUserLogout", cName: "CThostFtdcForceUserLogoutField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }] },
|
|
383
391
|
{ id: 5, name: "ReqAuthenticate", cName: "CThostFtdcReqAuthenticateField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "userProductInfo", kind: 0 }, { js: "authCode", kind: 0 }, { js: "appId", kind: 0 }] },
|
|
@@ -405,8 +413,8 @@ var STRUCTS = [
|
|
|
405
413
|
{ id: 27, name: "SuperUser", cName: "CThostFtdcSuperUserField", fields: [{ js: "userId", kind: 0 }, { js: "userName", kind: 0 }, { js: "password", kind: 0 }, { js: "isActive", kind: 1 }] },
|
|
406
414
|
{ id: 28, name: "SuperUserFunction", cName: "CThostFtdcSuperUserFunctionField", fields: [{ js: "userId", kind: 0 }, { js: "functionCode", kind: 0 }] },
|
|
407
415
|
{ id: 29, name: "InvestorGroup", cName: "CThostFtdcInvestorGroupField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorGroupId", kind: 0 }, { js: "investorGroupName", kind: 0 }] },
|
|
408
|
-
{ id: 30, name: "TradingAccount", cName: "CThostFtdcTradingAccountField", fields: [{ js: "brokerId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "preMortgage", kind: 3 }, { js: "preCredit", kind: 3 }, { js: "preDeposit", kind: 3 }, { js: "preBalance", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "interestBase", kind: 3 }, { js: "interest", kind: 3 }, { js: "deposit", kind: 3 }, { js: "withdraw", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "currMargin", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "balance", kind: 3 }, { js: "available", kind: 3 }, { js: "withdrawQuota", kind: 3 }, { js: "reserve", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "credit", kind: 3 }, { js: "mortgage", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "deliveryMargin", kind: 3 }, { js: "exchangeDeliveryMargin", kind: 3 }, { js: "reserveBalance", kind: 3 }, { js: "currencyId", kind: 0 }, { js: "preFundMortgageIn", kind: 3 }, { js: "preFundMortgageOut", kind: 3 }, { js: "fundMortgageIn", kind: 3 }, { js: "fundMortgageOut", kind: 3 }, { js: "fundMortgageAvailable", kind: 3 }, { js: "mortgageableFund", kind: 3 }, { js: "specProductMargin", kind: 3 }, { js: "specProductFrozenMargin", kind: 3 }, { js: "specProductCommission", kind: 3 }, { js: "specProductFrozenCommission", kind: 3 }, { js: "specProductPositionProfit", kind: 3 }, { js: "specProductCloseProfit", kind: 3 }, { js: "specProductPositionProfitByAlg", kind: 3 }, { js: "specProductExchangeMargin", kind: 3 }, { js: "bizType", kind: 0 }, { js: "frozenSwap", kind: 3 }, { js: "remainSwap", kind: 3 }] },
|
|
409
|
-
{ id: 31, name: "InvestorPosition", cName: "CThostFtdcInvestorPositionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "posiDirection", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "positionDate", kind: 0 }, { js: "ydPosition", kind: 1 }, { js: "position", kind: 1 }, { js: "longFrozen", kind: 1 }, { js: "shortFrozen", kind: 1 }, { js: "longFrozenAmount", kind: 3 }, { js: "shortFrozenAmount", kind: 3 }, { js: "openVolume", kind: 1 }, { js: "closeVolume", kind: 1 }, { js: "openAmount", kind: 3 }, { js: "closeAmount", kind: 3 }, { js: "positionCost", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "useMargin", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "preSettlementPrice", kind: 3 }, { js: "settlementPrice", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "openCost", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "combPosition", kind: 1 }, { js: "combLongFrozen", kind: 1 }, { js: "combShortFrozen", kind: 1 }, { js: "closeProfitByDate", kind: 3 }, { js: "closeProfitByTrade", kind: 3 }, { js: "todayPosition", kind: 1 }, { js: "marginRateByMoney", kind: 3 }, { js: "marginRateByVolume", kind: 3 }, { js: "strikeFrozen", kind: 1 }, { js: "strikeFrozenAmount", kind: 3 }, { js: "abandonFrozen", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "ydStrikeFrozen", kind: 1 }, { js: "investUnitId", kind: 0 }, { js: "positionCostOffset", kind: 3 }, { js: "tasPosition", kind: 1 }, { js: "tasPositionCost", kind: 3 }, { js: "instrumentId", kind: 0 }] },
|
|
416
|
+
{ id: 30, name: "TradingAccount", cName: "CThostFtdcTradingAccountField", fields: [{ js: "brokerId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "preMortgage", kind: 3 }, { js: "preCredit", kind: 3 }, { js: "preDeposit", kind: 3 }, { js: "preBalance", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "interestBase", kind: 3 }, { js: "interest", kind: 3 }, { js: "deposit", kind: 3 }, { js: "withdraw", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "currMargin", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "balance", kind: 3 }, { js: "available", kind: 3 }, { js: "withdrawQuota", kind: 3 }, { js: "reserve", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "credit", kind: 3 }, { js: "mortgage", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "deliveryMargin", kind: 3 }, { js: "exchangeDeliveryMargin", kind: 3 }, { js: "reserveBalance", kind: 3 }, { js: "currencyId", kind: 0 }, { js: "preFundMortgageIn", kind: 3 }, { js: "preFundMortgageOut", kind: 3 }, { js: "fundMortgageIn", kind: 3 }, { js: "fundMortgageOut", kind: 3 }, { js: "fundMortgageAvailable", kind: 3 }, { js: "mortgageableFund", kind: 3 }, { js: "specProductMargin", kind: 3 }, { js: "specProductFrozenMargin", kind: 3 }, { js: "specProductCommission", kind: 3 }, { js: "specProductFrozenCommission", kind: 3 }, { js: "specProductPositionProfit", kind: 3 }, { js: "specProductCloseProfit", kind: 3 }, { js: "specProductPositionProfitByAlg", kind: 3 }, { js: "specProductExchangeMargin", kind: 3 }, { js: "bizType", kind: 0 }, { js: "frozenSwap", kind: 3 }, { js: "remainSwap", kind: 3 }, { js: "optionValue", kind: 3 }] },
|
|
417
|
+
{ id: 31, name: "InvestorPosition", cName: "CThostFtdcInvestorPositionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "posiDirection", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "positionDate", kind: 0 }, { js: "ydPosition", kind: 1 }, { js: "position", kind: 1 }, { js: "longFrozen", kind: 1 }, { js: "shortFrozen", kind: 1 }, { js: "longFrozenAmount", kind: 3 }, { js: "shortFrozenAmount", kind: 3 }, { js: "openVolume", kind: 1 }, { js: "closeVolume", kind: 1 }, { js: "openAmount", kind: 3 }, { js: "closeAmount", kind: 3 }, { js: "positionCost", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "useMargin", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "preSettlementPrice", kind: 3 }, { js: "settlementPrice", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "openCost", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "combPosition", kind: 1 }, { js: "combLongFrozen", kind: 1 }, { js: "combShortFrozen", kind: 1 }, { js: "closeProfitByDate", kind: 3 }, { js: "closeProfitByTrade", kind: 3 }, { js: "todayPosition", kind: 1 }, { js: "marginRateByMoney", kind: 3 }, { js: "marginRateByVolume", kind: 3 }, { js: "strikeFrozen", kind: 1 }, { js: "strikeFrozenAmount", kind: 3 }, { js: "abandonFrozen", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "ydStrikeFrozen", kind: 1 }, { js: "investUnitId", kind: 0 }, { js: "positionCostOffset", kind: 3 }, { js: "tasPosition", kind: 1 }, { js: "tasPositionCost", kind: 3 }, { js: "instrumentId", kind: 0 }, { js: "optionValue", kind: 3 }] },
|
|
410
418
|
{ id: 32, name: "InstrumentMarginRate", cName: "CThostFtdcInstrumentMarginRateField", fields: [{ js: "investorRange", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "longMarginRatioByMoney", kind: 3 }, { js: "longMarginRatioByVolume", kind: 3 }, { js: "shortMarginRatioByMoney", kind: 3 }, { js: "shortMarginRatioByVolume", kind: 3 }, { js: "isRelative", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
411
419
|
{ id: 33, name: "InstrumentCommissionRate", cName: "CThostFtdcInstrumentCommissionRateField", fields: [{ js: "investorRange", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "openRatioByMoney", kind: 3 }, { js: "openRatioByVolume", kind: 3 }, { js: "closeRatioByMoney", kind: 3 }, { js: "closeRatioByVolume", kind: 3 }, { js: "closeTodayRatioByMoney", kind: 3 }, { js: "closeTodayRatioByVolume", kind: 3 }, { js: "exchangeId", kind: 0 }, { js: "bizType", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
412
420
|
{ id: 34, name: "DepthMarketData", cName: "CThostFtdcDepthMarketDataField", fields: [{ js: "tradingDay", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "lastPrice", kind: 3 }, { js: "preSettlementPrice", kind: 3 }, { js: "preClosePrice", kind: 3 }, { js: "preOpenInterest", kind: 3 }, { js: "openPrice", kind: 3 }, { js: "highestPrice", kind: 3 }, { js: "lowestPrice", kind: 3 }, { js: "volume", kind: 1 }, { js: "turnover", kind: 3 }, { js: "openInterest", kind: 3 }, { js: "closePrice", kind: 3 }, { js: "settlementPrice", kind: 3 }, { js: "upperLimitPrice", kind: 3 }, { js: "lowerLimitPrice", kind: 3 }, { js: "preDelta", kind: 3 }, { js: "currDelta", kind: 3 }, { js: "updateTime", kind: 0 }, { js: "updateMillisec", kind: 1 }, { js: "bidPrice1", kind: 3 }, { js: "bidVolume1", kind: 1 }, { js: "askPrice1", kind: 3 }, { js: "askVolume1", kind: 1 }, { js: "bidPrice2", kind: 3 }, { js: "bidVolume2", kind: 1 }, { js: "askPrice2", kind: 3 }, { js: "askVolume2", kind: 1 }, { js: "bidPrice3", kind: 3 }, { js: "bidVolume3", kind: 1 }, { js: "askPrice3", kind: 3 }, { js: "askVolume3", kind: 1 }, { js: "bidPrice4", kind: 3 }, { js: "bidVolume4", kind: 1 }, { js: "askPrice4", kind: 3 }, { js: "askVolume4", kind: 1 }, { js: "bidPrice5", kind: 3 }, { js: "bidVolume5", kind: 1 }, { js: "askPrice5", kind: 3 }, { js: "askVolume5", kind: 1 }, { js: "averagePrice", kind: 3 }, { js: "actionDay", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "bandingUpperPrice", kind: 3 }, { js: "bandingLowerPrice", kind: 3 }] },
|
|
@@ -427,12 +435,12 @@ var STRUCTS = [
|
|
|
427
435
|
{ id: 49, name: "LogoutAll", cName: "CThostFtdcLogoutAllField", fields: [{ js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "systemName", kind: 0 }] },
|
|
428
436
|
{ id: 50, name: "FrontStatus", cName: "CThostFtdcFrontStatusField", fields: [{ js: "frontId", kind: 1 }, { js: "lastReportDate", kind: 0 }, { js: "lastReportTime", kind: 0 }, { js: "isActive", kind: 1 }] },
|
|
429
437
|
{ id: 51, name: "UserPasswordUpdate", cName: "CThostFtdcUserPasswordUpdateField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "oldPassword", kind: 0 }, { js: "newPassword", kind: 0 }] },
|
|
430
|
-
{ id: 52, name: "InputOrder", cName: "CThostFtdcInputOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "userForceClose", kind: 1 }, { js: "isSwapOrder", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
431
|
-
{ id: 53, name: "Order", cName: "CThostFtdcOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "notifySequence", kind: 1 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "orderSysId", kind: 0 }, { js: "orderSource", kind: 0 }, { js: "orderStatus", kind: 0 }, { js: "orderType", kind: 0 }, { js: "volumeTraded", kind: 1 }, { js: "volumeTotal", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "activeTime", kind: 0 }, { js: "suspendTime", kind: 0 }, { js: "updateTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "activeTraderId", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "userProductInfo", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "userForceClose", kind: 1 }, { js: "activeUserId", kind: 0 }, { js: "brokerOrderSeq", kind: 1 }, { js: "relativeOrderSysId", kind: 0 }, { js: "zceTotalTradedVolume", kind: 1 }, { js: "isSwapOrder", kind: 1 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
438
|
+
{ id: 52, name: "InputOrder", cName: "CThostFtdcInputOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "userForceClose", kind: 1 }, { js: "isSwapOrder", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
439
|
+
{ id: 53, name: "Order", cName: "CThostFtdcOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "notifySequence", kind: 1 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "orderSysId", kind: 0 }, { js: "orderSource", kind: 0 }, { js: "orderStatus", kind: 0 }, { js: "orderType", kind: 0 }, { js: "volumeTraded", kind: 1 }, { js: "volumeTotal", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "activeTime", kind: 0 }, { js: "suspendTime", kind: 0 }, { js: "updateTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "activeTraderId", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "userProductInfo", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "userForceClose", kind: 1 }, { js: "activeUserId", kind: 0 }, { js: "brokerOrderSeq", kind: 1 }, { js: "relativeOrderSysId", kind: 0 }, { js: "zceTotalTradedVolume", kind: 1 }, { js: "isSwapOrder", kind: 1 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
432
440
|
{ id: 54, name: "ExchangeOrder", cName: "CThostFtdcExchangeOrderField", fields: [{ js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "notifySequence", kind: 1 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "orderSysId", kind: 0 }, { js: "orderSource", kind: 0 }, { js: "orderStatus", kind: 0 }, { js: "orderType", kind: 0 }, { js: "volumeTraded", kind: 1 }, { js: "volumeTotal", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "activeTime", kind: 0 }, { js: "suspendTime", kind: 0 }, { js: "updateTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "activeTraderId", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "branchId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
433
441
|
{ id: 55, name: "ExchangeOrderInsertError", cName: "CThostFtdcExchangeOrderInsertErrorField", fields: [{ js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }] },
|
|
434
|
-
{ id: 56, name: "InputOrderAction", cName: "CThostFtdcInputOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderActionRef", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "userId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
435
|
-
{ id: 57, name: "OrderAction", cName: "CThostFtdcOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderActionRef", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
442
|
+
{ id: 56, name: "InputOrderAction", cName: "CThostFtdcInputOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderActionRef", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "userId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
443
|
+
{ id: 57, name: "OrderAction", cName: "CThostFtdcOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderActionRef", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
436
444
|
{ id: 58, name: "ExchangeOrderAction", cName: "CThostFtdcExchangeOrderActionField", fields: [{ js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "branchId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
437
445
|
{ id: 59, name: "ExchangeOrderActionError", cName: "CThostFtdcExchangeOrderActionErrorField", fields: [{ js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }] },
|
|
438
446
|
{ id: 60, name: "ExchangeTrade", cName: "CThostFtdcExchangeTradeField", fields: [{ js: "exchangeId", kind: 0 }, { js: "tradeId", kind: 0 }, { js: "direction", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "tradingRole", kind: 0 }, { js: "offsetFlag", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "price", kind: 3 }, { js: "volume", kind: 1 }, { js: "tradeDate", kind: 0 }, { js: "tradeTime", kind: 0 }, { js: "tradeType", kind: 0 }, { js: "priceSource", kind: 0 }, { js: "traderId", kind: 0 }, { js: "orderLocalId", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "tradeSource", kind: 0 }, { js: "exchangeInstId", kind: 0 }] },
|
|
@@ -440,13 +448,13 @@ var STRUCTS = [
|
|
|
440
448
|
{ id: 62, name: "UserSession", cName: "CThostFtdcUserSessionField", fields: [{ js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "loginDate", kind: 0 }, { js: "loginTime", kind: 0 }, { js: "userProductInfo", kind: 0 }, { js: "interfaceProductInfo", kind: 0 }, { js: "protocolInfo", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "loginRemark", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
441
449
|
{ id: 63, name: "QryMaxOrderVolume", cName: "CThostFtdcQryMaxOrderVolumeField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "direction", kind: 0 }, { js: "offsetFlag", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "maxVolume", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
442
450
|
{ id: 64, name: "SettlementInfoConfirm", cName: "CThostFtdcSettlementInfoConfirmField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "confirmDate", kind: 0 }, { js: "confirmTime", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }] },
|
|
443
|
-
{ id: 65, name: "SyncDeposit", cName: "CThostFtdcSyncDepositField", fields: [{ js: "depositSeqNo", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "deposit", kind: 3 }, { js: "isForce", kind: 1 }, { js: "currencyId", kind: 0 }, { js: "isFromSopt", kind: 1 }, { js: "tradingPassword", kind: 0 }] },
|
|
451
|
+
{ id: 65, name: "SyncDeposit", cName: "CThostFtdcSyncDepositField", fields: [{ js: "depositSeqNo", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "deposit", kind: 3 }, { js: "isForce", kind: 1 }, { js: "currencyId", kind: 0 }, { js: "isFromSopt", kind: 1 }, { js: "tradingPassword", kind: 0 }, { js: "isSecAgentTranfer", kind: 1 }] },
|
|
444
452
|
{ id: 66, name: "SyncFundMortgage", cName: "CThostFtdcSyncFundMortgageField", fields: [{ js: "mortgageSeqNo", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "fromCurrencyId", kind: 0 }, { js: "mortgageAmount", kind: 3 }, { js: "toCurrencyId", kind: 0 }] },
|
|
445
453
|
{ id: 67, name: "BrokerSync", cName: "CThostFtdcBrokerSyncField", fields: [{ js: "brokerId", kind: 0 }] },
|
|
446
454
|
{ id: 68, name: "SyncingInvestor", cName: "CThostFtdcSyncingInvestorField", fields: [{ js: "investorId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorGroupId", kind: 0 }, { js: "investorName", kind: 0 }, { js: "identifiedCardType", kind: 0 }, { js: "identifiedCardNo", kind: 0 }, { js: "isActive", kind: 1 }, { js: "telephone", kind: 0 }, { js: "address", kind: 0 }, { js: "openDate", kind: 0 }, { js: "mobile", kind: 0 }, { js: "commModelId", kind: 0 }, { js: "marginModelId", kind: 0 }, { js: "isOrderFreq", kind: 0 }, { js: "isOpenVolLimit", kind: 0 }] },
|
|
447
455
|
{ id: 69, name: "SyncingTradingCode", cName: "CThostFtdcSyncingTradingCodeField", fields: [{ js: "investorId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "isActive", kind: 1 }, { js: "clientIdType", kind: 0 }] },
|
|
448
456
|
{ id: 70, name: "SyncingInvestorGroup", cName: "CThostFtdcSyncingInvestorGroupField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorGroupId", kind: 0 }, { js: "investorGroupName", kind: 0 }] },
|
|
449
|
-
{ id: 71, name: "SyncingTradingAccount", cName: "CThostFtdcSyncingTradingAccountField", fields: [{ js: "brokerId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "preMortgage", kind: 3 }, { js: "preCredit", kind: 3 }, { js: "preDeposit", kind: 3 }, { js: "preBalance", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "interestBase", kind: 3 }, { js: "interest", kind: 3 }, { js: "deposit", kind: 3 }, { js: "withdraw", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "currMargin", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "balance", kind: 3 }, { js: "available", kind: 3 }, { js: "withdrawQuota", kind: 3 }, { js: "reserve", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "credit", kind: 3 }, { js: "mortgage", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "deliveryMargin", kind: 3 }, { js: "exchangeDeliveryMargin", kind: 3 }, { js: "reserveBalance", kind: 3 }, { js: "currencyId", kind: 0 }, { js: "preFundMortgageIn", kind: 3 }, { js: "preFundMortgageOut", kind: 3 }, { js: "fundMortgageIn", kind: 3 }, { js: "fundMortgageOut", kind: 3 }, { js: "fundMortgageAvailable", kind: 3 }, { js: "mortgageableFund", kind: 3 }, { js: "specProductMargin", kind: 3 }, { js: "specProductFrozenMargin", kind: 3 }, { js: "specProductCommission", kind: 3 }, { js: "specProductFrozenCommission", kind: 3 }, { js: "specProductPositionProfit", kind: 3 }, { js: "specProductCloseProfit", kind: 3 }, { js: "specProductPositionProfitByAlg", kind: 3 }, { js: "specProductExchangeMargin", kind: 3 }, { js: "frozenSwap", kind: 3 }, { js: "remainSwap", kind: 3 }] },
|
|
457
|
+
{ id: 71, name: "SyncingTradingAccount", cName: "CThostFtdcSyncingTradingAccountField", fields: [{ js: "brokerId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "preMortgage", kind: 3 }, { js: "preCredit", kind: 3 }, { js: "preDeposit", kind: 3 }, { js: "preBalance", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "interestBase", kind: 3 }, { js: "interest", kind: 3 }, { js: "deposit", kind: 3 }, { js: "withdraw", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "currMargin", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "balance", kind: 3 }, { js: "available", kind: 3 }, { js: "withdrawQuota", kind: 3 }, { js: "reserve", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "credit", kind: 3 }, { js: "mortgage", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "deliveryMargin", kind: 3 }, { js: "exchangeDeliveryMargin", kind: 3 }, { js: "reserveBalance", kind: 3 }, { js: "currencyId", kind: 0 }, { js: "preFundMortgageIn", kind: 3 }, { js: "preFundMortgageOut", kind: 3 }, { js: "fundMortgageIn", kind: 3 }, { js: "fundMortgageOut", kind: 3 }, { js: "fundMortgageAvailable", kind: 3 }, { js: "mortgageableFund", kind: 3 }, { js: "specProductMargin", kind: 3 }, { js: "specProductFrozenMargin", kind: 3 }, { js: "specProductCommission", kind: 3 }, { js: "specProductFrozenCommission", kind: 3 }, { js: "specProductPositionProfit", kind: 3 }, { js: "specProductCloseProfit", kind: 3 }, { js: "specProductPositionProfitByAlg", kind: 3 }, { js: "specProductExchangeMargin", kind: 3 }, { js: "frozenSwap", kind: 3 }, { js: "remainSwap", kind: 3 }, { js: "optionValue", kind: 3 }] },
|
|
450
458
|
{ id: 72, name: "SyncingInvestorPosition", cName: "CThostFtdcSyncingInvestorPositionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "posiDirection", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "positionDate", kind: 0 }, { js: "ydPosition", kind: 1 }, { js: "position", kind: 1 }, { js: "longFrozen", kind: 1 }, { js: "shortFrozen", kind: 1 }, { js: "longFrozenAmount", kind: 3 }, { js: "shortFrozenAmount", kind: 3 }, { js: "openVolume", kind: 1 }, { js: "closeVolume", kind: 1 }, { js: "openAmount", kind: 3 }, { js: "closeAmount", kind: 3 }, { js: "positionCost", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "useMargin", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "preSettlementPrice", kind: 3 }, { js: "settlementPrice", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "openCost", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "combPosition", kind: 1 }, { js: "combLongFrozen", kind: 1 }, { js: "combShortFrozen", kind: 1 }, { js: "closeProfitByDate", kind: 3 }, { js: "closeProfitByTrade", kind: 3 }, { js: "todayPosition", kind: 1 }, { js: "marginRateByMoney", kind: 3 }, { js: "marginRateByVolume", kind: 3 }, { js: "strikeFrozen", kind: 1 }, { js: "strikeFrozenAmount", kind: 3 }, { js: "abandonFrozen", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "ydStrikeFrozen", kind: 1 }, { js: "investUnitId", kind: 0 }, { js: "positionCostOffset", kind: 3 }, { js: "tasPosition", kind: 1 }, { js: "tasPositionCost", kind: 3 }, { js: "instrumentId", kind: 0 }] },
|
|
451
459
|
{ id: 73, name: "SyncingInstrumentMarginRate", cName: "CThostFtdcSyncingInstrumentMarginRateField", fields: [{ js: "investorRange", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "longMarginRatioByMoney", kind: 3 }, { js: "longMarginRatioByVolume", kind: 3 }, { js: "shortMarginRatioByMoney", kind: 3 }, { js: "shortMarginRatioByVolume", kind: 3 }, { js: "isRelative", kind: 1 }, { js: "instrumentId", kind: 0 }] },
|
|
452
460
|
{ id: 74, name: "SyncingInstrumentCommissionRate", cName: "CThostFtdcSyncingInstrumentCommissionRateField", fields: [{ js: "investorRange", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "openRatioByMoney", kind: 3 }, { js: "openRatioByVolume", kind: 3 }, { js: "closeRatioByMoney", kind: 3 }, { js: "closeRatioByVolume", kind: 3 }, { js: "closeTodayRatioByMoney", kind: 3 }, { js: "closeTodayRatioByVolume", kind: 3 }, { js: "instrumentId", kind: 0 }] },
|
|
@@ -474,7 +482,7 @@ var STRUCTS = [
|
|
|
474
482
|
{ id: 96, name: "QryExchange", cName: "CThostFtdcQryExchangeField", fields: [{ js: "exchangeId", kind: 0 }] },
|
|
475
483
|
{ id: 97, name: "QryProduct", cName: "CThostFtdcQryProductField", fields: [{ js: "productClass", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "productId", kind: 0 }] },
|
|
476
484
|
{ id: 98, name: "QryInstrument", cName: "CThostFtdcQryInstrumentField", fields: [{ js: "exchangeId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "productId", kind: 0 }] },
|
|
477
|
-
{ id: 99, name: "QryDepthMarketData", cName: "CThostFtdcQryDepthMarketDataField", fields: [{ js: "exchangeId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
485
|
+
{ id: 99, name: "QryDepthMarketData", cName: "CThostFtdcQryDepthMarketDataField", fields: [{ js: "exchangeId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "productClass", kind: 0 }] },
|
|
478
486
|
{ id: 100, name: "QryBrokerUser", cName: "CThostFtdcQryBrokerUserField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }] },
|
|
479
487
|
{ id: 101, name: "QryBrokerUserFunction", cName: "CThostFtdcQryBrokerUserFunctionField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }] },
|
|
480
488
|
{ id: 102, name: "QryTraderOffer", cName: "CThostFtdcQryTraderOfferField", fields: [{ js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "traderId", kind: 0 }] },
|
|
@@ -513,10 +521,10 @@ var STRUCTS = [
|
|
|
513
521
|
{ id: 135, name: "QryForQuote", cName: "CThostFtdcQryForQuoteField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "insertTimeStart", kind: 0 }, { js: "insertTimeEnd", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
514
522
|
{ id: 136, name: "ExchangeForQuote", cName: "CThostFtdcExchangeForQuoteField", fields: [{ js: "forQuoteLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "forQuoteStatus", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
515
523
|
{ id: 137, name: "QryExchangeForQuote", cName: "CThostFtdcQryExchangeForQuoteField", fields: [{ js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "exchangeInstId", kind: 0 }] },
|
|
516
|
-
{ id: 138, name: "InputQuote", cName: "CThostFtdcInputQuoteField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "askPrice", kind: 3 }, { js: "bidPrice", kind: 3 }, { js: "askVolume", kind: 1 }, { js: "bidVolume", kind: 1 }, { js: "requestId", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "askOffsetFlag", kind: 0 }, { js: "bidOffsetFlag", kind: 0 }, { js: "askHedgeFlag", kind: 0 }, { js: "bidHedgeFlag", kind: 0 }, { js: "askOrderRef", kind: 0 }, { js: "bidOrderRef", kind: 0 }, { js: "forQuoteSysId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "replaceSysId", kind: 0 }, { js: "timeCondition", kind: 0 }] },
|
|
517
|
-
{ id: 139, name: "InputQuoteAction", cName: "CThostFtdcInputQuoteActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteActionRef", kind: 1 }, { js: "quoteRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "quoteSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "userId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
518
|
-
{ id: 140, name: "Quote", cName: "CThostFtdcQuoteField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "askPrice", kind: 3 }, { js: "bidPrice", kind: 3 }, { js: "askVolume", kind: 1 }, { js: "bidVolume", kind: 1 }, { js: "requestId", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "askOffsetFlag", kind: 0 }, { js: "bidOffsetFlag", kind: 0 }, { js: "askHedgeFlag", kind: 0 }, { js: "bidHedgeFlag", kind: 0 }, { js: "quoteLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "notifySequence", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "quoteSysId", kind: 0 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "quoteStatus", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "askOrderSysId", kind: 0 }, { js: "bidOrderSysId", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "userProductInfo", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "activeUserId", kind: 0 }, { js: "brokerQuoteSeq", kind: 1 }, { js: "askOrderRef", kind: 0 }, { js: "bidOrderRef", kind: 0 }, { js: "forQuoteSysId", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "replaceSysId", kind: 0 }, { js: "timeCondition", kind: 0 }] },
|
|
519
|
-
{ id: 141, name: "QuoteAction", cName: "CThostFtdcQuoteActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteActionRef", kind: 1 }, { js: "quoteRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "quoteSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "quoteLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
524
|
+
{ id: 138, name: "InputQuote", cName: "CThostFtdcInputQuoteField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "askPrice", kind: 3 }, { js: "bidPrice", kind: 3 }, { js: "askVolume", kind: 1 }, { js: "bidVolume", kind: 1 }, { js: "requestId", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "askOffsetFlag", kind: 0 }, { js: "bidOffsetFlag", kind: 0 }, { js: "askHedgeFlag", kind: 0 }, { js: "bidHedgeFlag", kind: 0 }, { js: "askOrderRef", kind: 0 }, { js: "bidOrderRef", kind: 0 }, { js: "forQuoteSysId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "replaceSysId", kind: 0 }, { js: "timeCondition", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
525
|
+
{ id: 139, name: "InputQuoteAction", cName: "CThostFtdcInputQuoteActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteActionRef", kind: 1 }, { js: "quoteRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "quoteSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "userId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
526
|
+
{ id: 140, name: "Quote", cName: "CThostFtdcQuoteField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "askPrice", kind: 3 }, { js: "bidPrice", kind: 3 }, { js: "askVolume", kind: 1 }, { js: "bidVolume", kind: 1 }, { js: "requestId", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "askOffsetFlag", kind: 0 }, { js: "bidOffsetFlag", kind: 0 }, { js: "askHedgeFlag", kind: 0 }, { js: "bidHedgeFlag", kind: 0 }, { js: "quoteLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "notifySequence", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "quoteSysId", kind: 0 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "quoteStatus", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "askOrderSysId", kind: 0 }, { js: "bidOrderSysId", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "userProductInfo", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "activeUserId", kind: 0 }, { js: "brokerQuoteSeq", kind: 1 }, { js: "askOrderRef", kind: 0 }, { js: "bidOrderRef", kind: 0 }, { js: "forQuoteSysId", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "replaceSysId", kind: 0 }, { js: "timeCondition", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
527
|
+
{ id: 141, name: "QuoteAction", cName: "CThostFtdcQuoteActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "quoteActionRef", kind: 1 }, { js: "quoteRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "quoteSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "quoteLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
520
528
|
{ id: 142, name: "QryQuote", cName: "CThostFtdcQryQuoteField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "quoteSysId", kind: 0 }, { js: "insertTimeStart", kind: 0 }, { js: "insertTimeEnd", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
521
529
|
{ id: 143, name: "ExchangeQuote", cName: "CThostFtdcExchangeQuoteField", fields: [{ js: "askPrice", kind: 3 }, { js: "bidPrice", kind: 3 }, { js: "askVolume", kind: 1 }, { js: "bidVolume", kind: 1 }, { js: "requestId", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "askOffsetFlag", kind: 0 }, { js: "bidOffsetFlag", kind: 0 }, { js: "askHedgeFlag", kind: 0 }, { js: "bidHedgeFlag", kind: 0 }, { js: "quoteLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "notifySequence", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "quoteSysId", kind: 0 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "quoteStatus", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "askOrderSysId", kind: 0 }, { js: "bidOrderSysId", kind: 0 }, { js: "forQuoteSysId", kind: 0 }, { js: "branchId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "timeCondition", kind: 0 }] },
|
|
522
530
|
{ id: 144, name: "QryExchangeQuote", cName: "CThostFtdcQryExchangeQuoteField", fields: [{ js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "exchangeInstId", kind: 0 }] },
|
|
@@ -609,7 +617,7 @@ var STRUCTS = [
|
|
|
609
617
|
{ id: 231, name: "QryBrokerUserEvent", cName: "CThostFtdcQryBrokerUserEventField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "userEventType", kind: 0 }] },
|
|
610
618
|
{ id: 232, name: "BrokerUserEvent", cName: "CThostFtdcBrokerUserEventField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "userEventType", kind: 0 }, { js: "eventSequenceNo", kind: 1 }, { js: "eventDate", kind: 0 }, { js: "eventTime", kind: 0 }, { js: "userEventInfo", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "tradingDay", kind: 0 }] },
|
|
611
619
|
{ id: 233, name: "QryContractBank", cName: "CThostFtdcQryContractBankField", fields: [{ js: "brokerId", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBrchId", kind: 0 }] },
|
|
612
|
-
{ id: 234, name: "ContractBank", cName: "CThostFtdcContractBankField", fields: [{ js: "brokerId", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBrchId", kind: 0 }, { js: "bankName", kind: 0 }] },
|
|
620
|
+
{ id: 234, name: "ContractBank", cName: "CThostFtdcContractBankField", fields: [{ js: "brokerId", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBrchId", kind: 0 }, { js: "bankName", kind: 0 }, { js: "csrcBankId", kind: 0 }] },
|
|
613
621
|
{ id: 235, name: "InvestorPositionCombineDetail", cName: "CThostFtdcInvestorPositionCombineDetailField", fields: [{ js: "tradingDay", kind: 0 }, { js: "openDate", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "comTradeId", kind: 0 }, { js: "tradeId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "direction", kind: 0 }, { js: "totalAmt", kind: 1 }, { js: "margin", kind: 3 }, { js: "exchMargin", kind: 3 }, { js: "marginRateByMoney", kind: 3 }, { js: "marginRateByVolume", kind: 3 }, { js: "legId", kind: 1 }, { js: "legMultiple", kind: 1 }, { js: "tradeGroupId", kind: 1 }, { js: "investUnitId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "combInstrumentId", kind: 0 }] },
|
|
614
622
|
{ id: 236, name: "ParkedOrder", cName: "CThostFtdcParkedOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "userForceClose", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "parkedOrderId", kind: 0 }, { js: "userType", kind: 0 }, { js: "status", kind: 0 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "isSwapOrder", kind: 1 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
615
623
|
{ id: 237, name: "ParkedOrderAction", cName: "CThostFtdcParkedOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderActionRef", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "userId", kind: 0 }, { js: "parkedOrderActionId", kind: 0 }, { js: "userType", kind: 0 }, { js: "status", kind: 0 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
@@ -626,10 +634,10 @@ var STRUCTS = [
|
|
|
626
634
|
{ id: 248, name: "TradingNotice", cName: "CThostFtdcTradingNoticeField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorRange", kind: 0 }, { js: "investorId", kind: 0 }, { js: "sequenceSeries", kind: 2 }, { js: "userId", kind: 0 }, { js: "sendTime", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "fieldContent", kind: 0 }, { js: "investUnitId", kind: 0 }] },
|
|
627
635
|
{ id: 249, name: "QryTradingNotice", cName: "CThostFtdcQryTradingNoticeField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "investUnitId", kind: 0 }] },
|
|
628
636
|
{ id: 250, name: "QryErrOrder", cName: "CThostFtdcQryErrOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }] },
|
|
629
|
-
{ id: 251, name: "ErrOrder", cName: "CThostFtdcErrOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "userForceClose", kind: 1 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "isSwapOrder", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
637
|
+
{ id: 251, name: "ErrOrder", cName: "CThostFtdcErrOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "userForceClose", kind: 1 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "isSwapOrder", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
630
638
|
{ id: 252, name: "ErrorConditionalOrder", cName: "CThostFtdcErrorConditionalOrderField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "userId", kind: 0 }, { js: "orderPriceType", kind: 0 }, { js: "direction", kind: 0 }, { js: "combOffsetFlag", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeTotalOriginal", kind: 1 }, { js: "timeCondition", kind: 0 }, { js: "gtdDate", kind: 0 }, { js: "volumeCondition", kind: 0 }, { js: "minVolume", kind: 1 }, { js: "contingentCondition", kind: 0 }, { js: "stopPrice", kind: 3 }, { js: "forceCloseReason", kind: 0 }, { js: "isAutoSuspend", kind: 1 }, { js: "businessUnit", kind: 0 }, { js: "requestId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "notifySequence", kind: 1 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "orderSysId", kind: 0 }, { js: "orderSource", kind: 0 }, { js: "orderStatus", kind: 0 }, { js: "orderType", kind: 0 }, { js: "volumeTraded", kind: 1 }, { js: "volumeTotal", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "activeTime", kind: 0 }, { js: "suspendTime", kind: 0 }, { js: "updateTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "activeTraderId", kind: 0 }, { js: "clearingPartId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "userProductInfo", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "userForceClose", kind: 1 }, { js: "activeUserId", kind: 0 }, { js: "brokerOrderSeq", kind: 1 }, { js: "relativeOrderSysId", kind: 0 }, { js: "zceTotalTradedVolume", kind: 1 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "isSwapOrder", kind: 1 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
631
639
|
{ id: 253, name: "QryErrOrderAction", cName: "CThostFtdcQryErrOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }] },
|
|
632
|
-
{ id: 254, name: "ErrOrderAction", cName: "CThostFtdcErrOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderActionRef", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
640
|
+
{ id: 254, name: "ErrOrderAction", cName: "CThostFtdcErrOrderActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "orderActionRef", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "actionFlag", kind: 0 }, { js: "limitPrice", kind: 3 }, { js: "volumeChange", kind: 1 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "businessUnit", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "branchId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "orderMemo", kind: 0 }, { js: "sessionReqSeq", kind: 1 }] },
|
|
633
641
|
{ id: 255, name: "QryExchangeSequence", cName: "CThostFtdcQryExchangeSequenceField", fields: [{ js: "exchangeId", kind: 0 }] },
|
|
634
642
|
{ id: 256, name: "ExchangeSequence", cName: "CThostFtdcExchangeSequenceField", fields: [{ js: "exchangeId", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "marketStatus", kind: 0 }] },
|
|
635
643
|
{ id: 257, name: "QryMaxOrderVolumeWithPrice", cName: "CThostFtdcQryMaxOrderVolumeWithPriceField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "direction", kind: 0 }, { js: "offsetFlag", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "maxVolume", kind: 1 }, { js: "price", kind: 3 }, { js: "exchangeId", kind: 0 }, { js: "investUnitId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
@@ -729,17 +737,17 @@ var STRUCTS = [
|
|
|
729
737
|
{ id: 351, name: "RspApiHandshake", cName: "CThostFtdcRspApiHandshakeField", fields: [{ js: "frontHandshakeDataLen", kind: 1 }, { js: "frontHandshakeData", kind: 0 }, { js: "isApiAuthEnabled", kind: 1 }] },
|
|
730
738
|
{ id: 352, name: "ReqVerifyApiKey", cName: "CThostFtdcReqVerifyApiKeyField", fields: [{ js: "apiHandshakeDataLen", kind: 1 }, { js: "apiHandshakeData", kind: 0 }] },
|
|
731
739
|
{ id: 353, name: "DepartmentUser", cName: "CThostFtdcDepartmentUserField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "investorRange", kind: 0 }, { js: "investorId", kind: 0 }] },
|
|
732
|
-
{ id: 354, name: "QueryFreq", cName: "CThostFtdcQueryFreqField", fields: [{ js: "queryFreq", kind: 1 }] },
|
|
740
|
+
{ id: 354, name: "QueryFreq", cName: "CThostFtdcQueryFreqField", fields: [{ js: "queryFreq", kind: 1 }, { js: "ftdPkgFreq", kind: 1 }] },
|
|
733
741
|
{ id: 355, name: "AuthForbiddenIP", cName: "CThostFtdcAuthForbiddenIPField", fields: [{ js: "ipAddress", kind: 0 }] },
|
|
734
742
|
{ id: 356, name: "QryAuthForbiddenIP", cName: "CThostFtdcQryAuthForbiddenIPField", fields: [{ js: "ipAddress", kind: 0 }] },
|
|
735
743
|
{ id: 357, name: "SyncDelaySwapFrozen", cName: "CThostFtdcSyncDelaySwapFrozenField", fields: [{ js: "delaySwapSeqNo", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "fromCurrencyId", kind: 0 }, { js: "fromRemainSwap", kind: 3 }, { js: "isManualSwap", kind: 1 }] },
|
|
736
|
-
{ id: 358, name: "UserSystemInfo", cName: "CThostFtdcUserSystemInfoField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "clientSystemInfoLen", kind: 1 }, { js: "clientSystemInfo", kind: 0 }, { js: "clientIpPort", kind: 1 }, { js: "clientLoginTime", kind: 0 }, { js: "clientAppId", kind: 0 }, { js: "clientPublicIp", kind: 0 }, { js: "clientLoginRemark", kind: 0 }] },
|
|
744
|
+
{ id: 358, name: "UserSystemInfo", cName: "CThostFtdcUserSystemInfoField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "clientSystemInfoLen", kind: 1 }, { js: "clientSystemInfo", kind: 0 }, { js: "clientIpPort", kind: 1 }, { js: "clientLoginTime", kind: 0 }, { js: "clientAppId", kind: 0 }, { js: "clientPublicIp", kind: 0 }, { js: "clientLoginRemark", kind: 0 }, { js: "mac", kind: 0 }] },
|
|
737
745
|
{ id: 359, name: "AuthUserID", cName: "CThostFtdcAuthUserIDField", fields: [{ js: "brokerId", kind: 0 }, { js: "appId", kind: 0 }, { js: "userId", kind: 0 }, { js: "authType", kind: 0 }] },
|
|
738
746
|
{ id: 360, name: "AuthIP", cName: "CThostFtdcAuthIPField", fields: [{ js: "brokerId", kind: 0 }, { js: "appId", kind: 0 }, { js: "ipAddress", kind: 0 }] },
|
|
739
747
|
{ id: 361, name: "QryClassifiedInstrument", cName: "CThostFtdcQryClassifiedInstrumentField", fields: [{ js: "instrumentId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "productId", kind: 0 }, { js: "tradingType", kind: 0 }, { js: "classType", kind: 0 }] },
|
|
740
748
|
{ id: 362, name: "QryCombPromotionParam", cName: "CThostFtdcQryCombPromotionParamField", fields: [{ js: "exchangeId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
741
749
|
{ id: 363, name: "CombPromotionParam", cName: "CThostFtdcCombPromotionParamField", fields: [{ js: "exchangeId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "combHedgeFlag", kind: 0 }, { js: "xparameter", kind: 3 }] },
|
|
742
|
-
{ id: 364, name: "
|
|
750
|
+
{ id: 364, name: "ReqUserLoginSM", cName: "CThostFtdcReqUserLoginSMField", fields: [{ js: "tradingDay", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "password", kind: 0 }, { js: "userProductInfo", kind: 0 }, { js: "interfaceProductInfo", kind: 0 }, { js: "protocolInfo", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "oneTimePassword", kind: 0 }, { js: "loginRemark", kind: 0 }, { js: "clientIpPort", kind: 1 }, { js: "clientIpAddress", kind: 0 }, { js: "smsCode", kind: 0 }, { js: "brokerName", kind: 0 }, { js: "authCode", kind: 0 }, { js: "appId", kind: 0 }, { js: "pin", kind: 0 }] },
|
|
743
751
|
{ id: 365, name: "QryRiskSettleInvstPosition", cName: "CThostFtdcQryRiskSettleInvstPositionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
744
752
|
{ id: 366, name: "QryRiskSettleProductStatus", cName: "CThostFtdcQryRiskSettleProductStatusField", fields: [{ js: "productId", kind: 0 }] },
|
|
745
753
|
{ id: 367, name: "RiskSettleInvstPosition", cName: "CThostFtdcRiskSettleInvstPositionField", fields: [{ js: "instrumentId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "posiDirection", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "positionDate", kind: 0 }, { js: "ydPosition", kind: 1 }, { js: "position", kind: 1 }, { js: "longFrozen", kind: 1 }, { js: "shortFrozen", kind: 1 }, { js: "longFrozenAmount", kind: 3 }, { js: "shortFrozenAmount", kind: 3 }, { js: "openVolume", kind: 1 }, { js: "closeVolume", kind: 1 }, { js: "openAmount", kind: 3 }, { js: "closeAmount", kind: 3 }, { js: "positionCost", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "useMargin", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "preSettlementPrice", kind: 3 }, { js: "settlementPrice", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "openCost", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "combPosition", kind: 1 }, { js: "combLongFrozen", kind: 1 }, { js: "combShortFrozen", kind: 1 }, { js: "closeProfitByDate", kind: 3 }, { js: "closeProfitByTrade", kind: 3 }, { js: "todayPosition", kind: 1 }, { js: "marginRateByMoney", kind: 3 }, { js: "marginRateByVolume", kind: 3 }, { js: "strikeFrozen", kind: 1 }, { js: "strikeFrozenAmount", kind: 3 }, { js: "abandonFrozen", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "ydStrikeFrozen", kind: 1 }, { js: "investUnitId", kind: 0 }, { js: "positionCostOffset", kind: 3 }, { js: "tasPosition", kind: 1 }, { js: "tasPositionCost", kind: 3 }] },
|
|
@@ -748,7 +756,7 @@ var STRUCTS = [
|
|
|
748
756
|
{ id: 370, name: "SyncDeltaProductStatus", cName: "CThostFtdcSyncDeltaProductStatusField", fields: [{ js: "syncDeltaSequenceNo", kind: 1 }, { js: "exchangeId", kind: 0 }, { js: "productId", kind: 0 }, { js: "productStatus", kind: 0 }] },
|
|
749
757
|
{ id: 371, name: "SyncDeltaInvstPosDtl", cName: "CThostFtdcSyncDeltaInvstPosDtlField", fields: [{ js: "instrumentId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "direction", kind: 0 }, { js: "openDate", kind: 0 }, { js: "tradeId", kind: 0 }, { js: "volume", kind: 1 }, { js: "openPrice", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "tradeType", kind: 0 }, { js: "combInstrumentId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "closeProfitByDate", kind: 3 }, { js: "closeProfitByTrade", kind: 3 }, { js: "positionProfitByDate", kind: 3 }, { js: "positionProfitByTrade", kind: 3 }, { js: "margin", kind: 3 }, { js: "exchMargin", kind: 3 }, { js: "marginRateByMoney", kind: 3 }, { js: "marginRateByVolume", kind: 3 }, { js: "lastSettlementPrice", kind: 3 }, { js: "settlementPrice", kind: 3 }, { js: "closeVolume", kind: 1 }, { js: "closeAmount", kind: 3 }, { js: "timeFirstVolume", kind: 1 }, { js: "specPosiType", kind: 0 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
750
758
|
{ id: 372, name: "SyncDeltaInvstPosCombDtl", cName: "CThostFtdcSyncDeltaInvstPosCombDtlField", fields: [{ js: "tradingDay", kind: 0 }, { js: "openDate", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "comTradeId", kind: 0 }, { js: "tradeId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "direction", kind: 0 }, { js: "totalAmt", kind: 1 }, { js: "margin", kind: 3 }, { js: "exchMargin", kind: 3 }, { js: "marginRateByMoney", kind: 3 }, { js: "marginRateByVolume", kind: 3 }, { js: "legId", kind: 1 }, { js: "legMultiple", kind: 1 }, { js: "tradeGroupId", kind: 1 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
751
|
-
{ id: 373, name: "SyncDeltaTradingAccount", cName: "CThostFtdcSyncDeltaTradingAccountField", fields: [{ js: "brokerId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "preMortgage", kind: 3 }, { js: "preCredit", kind: 3 }, { js: "preDeposit", kind: 3 }, { js: "preBalance", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "interestBase", kind: 3 }, { js: "interest", kind: 3 }, { js: "deposit", kind: 3 }, { js: "withdraw", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "currMargin", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "balance", kind: 3 }, { js: "available", kind: 3 }, { js: "withdrawQuota", kind: 3 }, { js: "reserve", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "credit", kind: 3 }, { js: "mortgage", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "deliveryMargin", kind: 3 }, { js: "exchangeDeliveryMargin", kind: 3 }, { js: "reserveBalance", kind: 3 }, { js: "currencyId", kind: 0 }, { js: "preFundMortgageIn", kind: 3 }, { js: "preFundMortgageOut", kind: 3 }, { js: "fundMortgageIn", kind: 3 }, { js: "fundMortgageOut", kind: 3 }, { js: "fundMortgageAvailable", kind: 3 }, { js: "mortgageableFund", kind: 3 }, { js: "specProductMargin", kind: 3 }, { js: "specProductFrozenMargin", kind: 3 }, { js: "specProductCommission", kind: 3 }, { js: "specProductFrozenCommission", kind: 3 }, { js: "specProductPositionProfit", kind: 3 }, { js: "specProductCloseProfit", kind: 3 }, { js: "specProductPositionProfitByAlg", kind: 3 }, { js: "specProductExchangeMargin", kind: 3 }, { js: "frozenSwap", kind: 3 }, { js: "remainSwap", kind: 3 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
759
|
+
{ id: 373, name: "SyncDeltaTradingAccount", cName: "CThostFtdcSyncDeltaTradingAccountField", fields: [{ js: "brokerId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "preMortgage", kind: 3 }, { js: "preCredit", kind: 3 }, { js: "preDeposit", kind: 3 }, { js: "preBalance", kind: 3 }, { js: "preMargin", kind: 3 }, { js: "interestBase", kind: 3 }, { js: "interest", kind: 3 }, { js: "deposit", kind: 3 }, { js: "withdraw", kind: 3 }, { js: "frozenMargin", kind: 3 }, { js: "frozenCash", kind: 3 }, { js: "frozenCommission", kind: 3 }, { js: "currMargin", kind: 3 }, { js: "cashIn", kind: 3 }, { js: "commission", kind: 3 }, { js: "closeProfit", kind: 3 }, { js: "positionProfit", kind: 3 }, { js: "balance", kind: 3 }, { js: "available", kind: 3 }, { js: "withdrawQuota", kind: 3 }, { js: "reserve", kind: 3 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "credit", kind: 3 }, { js: "mortgage", kind: 3 }, { js: "exchangeMargin", kind: 3 }, { js: "deliveryMargin", kind: 3 }, { js: "exchangeDeliveryMargin", kind: 3 }, { js: "reserveBalance", kind: 3 }, { js: "currencyId", kind: 0 }, { js: "preFundMortgageIn", kind: 3 }, { js: "preFundMortgageOut", kind: 3 }, { js: "fundMortgageIn", kind: 3 }, { js: "fundMortgageOut", kind: 3 }, { js: "fundMortgageAvailable", kind: 3 }, { js: "mortgageableFund", kind: 3 }, { js: "specProductMargin", kind: 3 }, { js: "specProductFrozenMargin", kind: 3 }, { js: "specProductCommission", kind: 3 }, { js: "specProductFrozenCommission", kind: 3 }, { js: "specProductPositionProfit", kind: 3 }, { js: "specProductCloseProfit", kind: 3 }, { js: "specProductPositionProfitByAlg", kind: 3 }, { js: "specProductExchangeMargin", kind: 3 }, { js: "frozenSwap", kind: 3 }, { js: "remainSwap", kind: 3 }, { js: "optionValue", kind: 3 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
752
760
|
{ id: 374, name: "SyncDeltaInitInvstMargin", cName: "CThostFtdcSyncDeltaInitInvstMarginField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "lastRiskTotalInvstMargin", kind: 3 }, { js: "lastRiskTotalExchMargin", kind: 3 }, { js: "thisSyncInvstMargin", kind: 3 }, { js: "thisSyncExchMargin", kind: 3 }, { js: "remainRiskInvstMargin", kind: 3 }, { js: "remainRiskExchMargin", kind: 3 }, { js: "lastRiskSpecTotalInvstMargin", kind: 3 }, { js: "lastRiskSpecTotalExchMargin", kind: 3 }, { js: "thisSyncSpecInvstMargin", kind: 3 }, { js: "thisSyncSpecExchMargin", kind: 3 }, { js: "remainRiskSpecInvstMargin", kind: 3 }, { js: "remainRiskSpecExchMargin", kind: 3 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
753
761
|
{ id: 375, name: "SyncDeltaDceCombInstrument", cName: "CThostFtdcSyncDeltaDceCombInstrumentField", fields: [{ js: "combInstrumentId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "tradeGroupId", kind: 1 }, { js: "combHedgeFlag", kind: 0 }, { js: "combinationType", kind: 0 }, { js: "direction", kind: 0 }, { js: "productId", kind: 0 }, { js: "xparameter", kind: 3 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
754
762
|
{ id: 376, name: "SyncDeltaInvstMarginRate", cName: "CThostFtdcSyncDeltaInvstMarginRateField", fields: [{ js: "instrumentId", kind: 0 }, { js: "investorRange", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "longMarginRatioByMoney", kind: 3 }, { js: "longMarginRatioByVolume", kind: 3 }, { js: "shortMarginRatioByMoney", kind: 3 }, { js: "shortMarginRatioByVolume", kind: 3 }, { js: "isRelative", kind: 1 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
@@ -773,10 +781,10 @@ var STRUCTS = [
|
|
|
773
781
|
{ id: 395, name: "QrySPBMInterParameter", cName: "CThostFtdcQrySPBMInterParameterField", fields: [{ js: "exchangeId", kind: 0 }, { js: "leg1ProdFamilyCode", kind: 0 }, { js: "leg2ProdFamilyCode", kind: 0 }] },
|
|
774
782
|
{ id: 396, name: "SPBMPortfDefinition", cName: "CThostFtdcSPBMPortfDefinitionField", fields: [{ js: "exchangeId", kind: 0 }, { js: "portfolioDefId", kind: 1 }, { js: "prodFamilyCode", kind: 0 }, { js: "isSpbm", kind: 1 }] },
|
|
775
783
|
{ id: 397, name: "SPBMInvestorPortfDef", cName: "CThostFtdcSPBMInvestorPortfDefField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "portfolioDefId", kind: 1 }] },
|
|
776
|
-
{ id: 398, name: "InvestorPortfMarginRatio", cName: "CThostFtdcInvestorPortfMarginRatioField", fields: [{ js: "investorRange", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "marginRatio", kind: 3 }] },
|
|
784
|
+
{ id: 398, name: "InvestorPortfMarginRatio", cName: "CThostFtdcInvestorPortfMarginRatioField", fields: [{ js: "investorRange", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "marginRatio", kind: 3 }, { js: "productGroupId", kind: 0 }] },
|
|
777
785
|
{ id: 399, name: "QrySPBMPortfDefinition", cName: "CThostFtdcQrySPBMPortfDefinitionField", fields: [{ js: "exchangeId", kind: 0 }, { js: "portfolioDefId", kind: 1 }, { js: "prodFamilyCode", kind: 0 }] },
|
|
778
786
|
{ id: 400, name: "QrySPBMInvestorPortfDef", cName: "CThostFtdcQrySPBMInvestorPortfDefField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }] },
|
|
779
|
-
{ id: 401, name: "QryInvestorPortfMarginRatio", cName: "CThostFtdcQryInvestorPortfMarginRatioField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }] },
|
|
787
|
+
{ id: 401, name: "QryInvestorPortfMarginRatio", cName: "CThostFtdcQryInvestorPortfMarginRatioField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "productGroupId", kind: 0 }] },
|
|
780
788
|
{ id: 402, name: "InvestorProdSPBMDetail", cName: "CThostFtdcInvestorProdSPBMDetailField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "prodFamilyCode", kind: 0 }, { js: "intraInstrMargin", kind: 3 }, { js: "bCollectingMargin", kind: 3 }, { js: "sCollectingMargin", kind: 3 }, { js: "intraProdMargin", kind: 3 }, { js: "netMargin", kind: 3 }, { js: "interProdMargin", kind: 3 }, { js: "singleMargin", kind: 3 }, { js: "addOnMargin", kind: 3 }, { js: "deliveryMargin", kind: 3 }, { js: "callOptionMinRisk", kind: 3 }, { js: "putOptionMinRisk", kind: 3 }, { js: "optionMinRisk", kind: 3 }, { js: "optionValueOffset", kind: 3 }, { js: "optionRoyalty", kind: 3 }, { js: "realOptionValueOffset", kind: 3 }, { js: "margin", kind: 3 }, { js: "exchMargin", kind: 3 }] },
|
|
781
789
|
{ id: 403, name: "QryInvestorProdSPBMDetail", cName: "CThostFtdcQryInvestorProdSPBMDetailField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "prodFamilyCode", kind: 0 }] },
|
|
782
790
|
{ id: 404, name: "PortfTradeParamSetting", cName: "CThostFtdcPortfTradeParamSettingField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "portfolio", kind: 0 }, { js: "isActionVerify", kind: 1 }, { js: "isCloseVerify", kind: 1 }] },
|
|
@@ -840,7 +848,60 @@ var STRUCTS = [
|
|
|
840
848
|
{ id: 462, name: "SyncDeltaRCAMSInvstCombPos", cName: "CThostFtdcSyncDeltaRCAMSInvstCombPosField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "posiDirection", kind: 0 }, { js: "combInstrumentId", kind: 0 }, { js: "legId", kind: 1 }, { js: "exchangeInstId", kind: 0 }, { js: "totalAmt", kind: 1 }, { js: "exchMargin", kind: 3 }, { js: "margin", kind: 3 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
841
849
|
{ id: 463, name: "SyncDeltaRULEInstrParameter", cName: "CThostFtdcSyncDeltaRULEInstrParameterField", fields: [{ js: "tradingDay", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "instrumentClass", kind: 0 }, { js: "stdInstrumentId", kind: 0 }, { js: "bSpecRatio", kind: 3 }, { js: "sSpecRatio", kind: 3 }, { js: "bHedgeRatio", kind: 3 }, { js: "sHedgeRatio", kind: 3 }, { js: "bAddOnMargin", kind: 3 }, { js: "sAddOnMargin", kind: 3 }, { js: "commodityGroupId", kind: 1 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
842
850
|
{ id: 464, name: "SyncDeltaRULEIntraParameter", cName: "CThostFtdcSyncDeltaRULEIntraParameterField", fields: [{ js: "tradingDay", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "prodFamilyCode", kind: 0 }, { js: "stdInstrumentId", kind: 0 }, { js: "stdInstrMargin", kind: 3 }, { js: "usualIntraRate", kind: 3 }, { js: "deliveryIntraRate", kind: 3 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
843
|
-
{ id: 465, name: "SyncDeltaRULEInterParameter", cName: "CThostFtdcSyncDeltaRULEInterParameterField", fields: [{ js: "tradingDay", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "spreadId", kind: 1 }, { js: "interRate", kind: 3 }, { js: "leg1ProdFamilyCode", kind: 0 }, { js: "leg2ProdFamilyCode", kind: 0 }, { js: "leg1PropFactor", kind: 1 }, { js: "leg2PropFactor", kind: 1 }, { js: "commodityGroupId", kind: 1 }, { js: "commodityGroupName", kind: 0 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] }
|
|
851
|
+
{ id: 465, name: "SyncDeltaRULEInterParameter", cName: "CThostFtdcSyncDeltaRULEInterParameterField", fields: [{ js: "tradingDay", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "spreadId", kind: 1 }, { js: "interRate", kind: 3 }, { js: "leg1ProdFamilyCode", kind: 0 }, { js: "leg2ProdFamilyCode", kind: 0 }, { js: "leg1PropFactor", kind: 1 }, { js: "leg2PropFactor", kind: 1 }, { js: "commodityGroupId", kind: 1 }, { js: "commodityGroupName", kind: 0 }, { js: "actionDirection", kind: 0 }, { js: "syncDeltaSequenceNo", kind: 1 }] },
|
|
852
|
+
{ id: 466, name: "IpAddrParam", cName: "CThostFtdcIpAddrParamField", fields: [{ js: "brokerId", kind: 0 }, { js: "address", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "drIdentityName", kind: 0 }, { js: "addrSrvMode", kind: 0 }, { js: "addrVer", kind: 0 }, { js: "addrNo", kind: 1 }, { js: "addrName", kind: 0 }, { js: "isSm", kind: 1 }, { js: "isLocalAddr", kind: 1 }, { js: "remark", kind: 0 }, { js: "site", kind: 0 }, { js: "netOperator", kind: 0 }, { js: "sysName", kind: 0 }] },
|
|
853
|
+
{ id: 467, name: "QryIpAddrParam", cName: "CThostFtdcQryIpAddrParamField", fields: [{ js: "brokerId", kind: 0 }] },
|
|
854
|
+
{ id: 468, name: "TGIpAddrParam", cName: "CThostFtdcTGIpAddrParamField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "address", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "drIdentityName", kind: 0 }, { js: "addrSrvMode", kind: 0 }, { js: "addrVer", kind: 0 }, { js: "addrNo", kind: 1 }, { js: "addrName", kind: 0 }, { js: "isSm", kind: 1 }, { js: "isLocalAddr", kind: 1 }, { js: "remark", kind: 0 }, { js: "site", kind: 0 }, { js: "netOperator", kind: 0 }, { js: "sysName", kind: 0 }] },
|
|
855
|
+
{ id: 469, name: "QryTGIpAddrParam", cName: "CThostFtdcQryTGIpAddrParamField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "appId", kind: 0 }] },
|
|
856
|
+
{ id: 470, name: "TGSessionQryStatus", cName: "CThostFtdcTGSessionQryStatusField", fields: [{ js: "lastQryFreq", kind: 1 }, { js: "qryStatus", kind: 0 }] },
|
|
857
|
+
{ id: 471, name: "LocalAddrConfig", cName: "CThostFtdcLocalAddrConfigField", fields: [{ js: "brokerId", kind: 0 }, { js: "peerAddr", kind: 0 }, { js: "netMask", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "localAddress", kind: 0 }] },
|
|
858
|
+
{ id: 472, name: "QryLocalAddrConfig", cName: "CThostFtdcQryLocalAddrConfigField", fields: [{ js: "brokerId", kind: 0 }] },
|
|
859
|
+
{ id: 473, name: "ReqQueryBankAccountBySec", cName: "CThostFtdcReqQueryBankAccountBySecField", fields: [{ js: "tradeCode", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBranchId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "brokerBranchId", kind: 0 }, { js: "tradeDate", kind: 0 }, { js: "tradeTime", kind: 0 }, { js: "bankSerial", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "plateSerial", kind: 1 }, { js: "lastFragment", kind: 0 }, { js: "sessionId", kind: 1 }, { js: "customerName", kind: 0 }, { js: "idCardType", kind: 0 }, { js: "identifiedCardNo", kind: 0 }, { js: "custType", kind: 0 }, { js: "bankAccount", kind: 0 }, { js: "bankPassWord", kind: 0 }, { js: "accountId", kind: 0 }, { js: "password", kind: 0 }, { js: "futureSerial", kind: 1 }, { js: "installId", kind: 1 }, { js: "userId", kind: 0 }, { js: "verifyCertNoFlag", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "digest", kind: 0 }, { js: "bankAccType", kind: 0 }, { js: "deviceId", kind: 0 }, { js: "bankSecuAccType", kind: 0 }, { js: "brokerIdByBank", kind: 0 }, { js: "bankSecuAcc", kind: 0 }, { js: "bankPwdFlag", kind: 0 }, { js: "secuPwdFlag", kind: 0 }, { js: "operNo", kind: 0 }, { js: "requestId", kind: 1 }, { js: "tid", kind: 1 }, { js: "longCustomerName", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "secFutureSerial", kind: 1 }] },
|
|
860
|
+
{ id: 474, name: "RspQueryBankAccountBySec", cName: "CThostFtdcRspQueryBankAccountBySecField", fields: [{ js: "tradeCode", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBranchId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "brokerBranchId", kind: 0 }, { js: "tradeDate", kind: 0 }, { js: "tradeTime", kind: 0 }, { js: "bankSerial", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "plateSerial", kind: 1 }, { js: "lastFragment", kind: 0 }, { js: "sessionId", kind: 1 }, { js: "customerName", kind: 0 }, { js: "idCardType", kind: 0 }, { js: "identifiedCardNo", kind: 0 }, { js: "custType", kind: 0 }, { js: "bankAccount", kind: 0 }, { js: "bankPassWord", kind: 0 }, { js: "accountId", kind: 0 }, { js: "password", kind: 0 }, { js: "futureSerial", kind: 1 }, { js: "installId", kind: 1 }, { js: "userId", kind: 0 }, { js: "verifyCertNoFlag", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "digest", kind: 0 }, { js: "bankAccType", kind: 0 }, { js: "deviceId", kind: 0 }, { js: "bankSecuAccType", kind: 0 }, { js: "brokerIdByBank", kind: 0 }, { js: "bankSecuAcc", kind: 0 }, { js: "bankPwdFlag", kind: 0 }, { js: "secuPwdFlag", kind: 0 }, { js: "operNo", kind: 0 }, { js: "requestId", kind: 1 }, { js: "tid", kind: 1 }, { js: "bankUseAmount", kind: 3 }, { js: "bankFetchAmount", kind: 3 }, { js: "longCustomerName", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "secFutureSerial", kind: 1 }] },
|
|
861
|
+
{ id: 475, name: "ReqTransferBySec", cName: "CThostFtdcReqTransferBySecField", fields: [{ js: "tradeCode", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBranchId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "brokerBranchId", kind: 0 }, { js: "tradeDate", kind: 0 }, { js: "tradeTime", kind: 0 }, { js: "bankSerial", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "plateSerial", kind: 1 }, { js: "lastFragment", kind: 0 }, { js: "sessionId", kind: 1 }, { js: "customerName", kind: 0 }, { js: "idCardType", kind: 0 }, { js: "identifiedCardNo", kind: 0 }, { js: "custType", kind: 0 }, { js: "bankAccount", kind: 0 }, { js: "bankPassWord", kind: 0 }, { js: "accountId", kind: 0 }, { js: "password", kind: 0 }, { js: "installId", kind: 1 }, { js: "futureSerial", kind: 1 }, { js: "userId", kind: 0 }, { js: "verifyCertNoFlag", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "tradeAmount", kind: 3 }, { js: "futureFetchAmount", kind: 3 }, { js: "feePayFlag", kind: 0 }, { js: "custFee", kind: 3 }, { js: "brokerFee", kind: 3 }, { js: "message", kind: 0 }, { js: "digest", kind: 0 }, { js: "bankAccType", kind: 0 }, { js: "deviceId", kind: 0 }, { js: "bankSecuAccType", kind: 0 }, { js: "brokerIdByBank", kind: 0 }, { js: "bankSecuAcc", kind: 0 }, { js: "bankPwdFlag", kind: 0 }, { js: "secuPwdFlag", kind: 0 }, { js: "operNo", kind: 0 }, { js: "requestId", kind: 1 }, { js: "tid", kind: 1 }, { js: "transferStatus", kind: 0 }, { js: "longCustomerName", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "secFutureSerial", kind: 1 }] },
|
|
862
|
+
{ id: 476, name: "RspTransferBySec", cName: "CThostFtdcRspTransferBySecField", fields: [{ js: "tradeCode", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBranchId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "brokerBranchId", kind: 0 }, { js: "tradeDate", kind: 0 }, { js: "tradeTime", kind: 0 }, { js: "bankSerial", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "plateSerial", kind: 1 }, { js: "lastFragment", kind: 0 }, { js: "sessionId", kind: 1 }, { js: "customerName", kind: 0 }, { js: "idCardType", kind: 0 }, { js: "identifiedCardNo", kind: 0 }, { js: "custType", kind: 0 }, { js: "bankAccount", kind: 0 }, { js: "bankPassWord", kind: 0 }, { js: "accountId", kind: 0 }, { js: "password", kind: 0 }, { js: "installId", kind: 1 }, { js: "futureSerial", kind: 1 }, { js: "userId", kind: 0 }, { js: "verifyCertNoFlag", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "tradeAmount", kind: 3 }, { js: "futureFetchAmount", kind: 3 }, { js: "feePayFlag", kind: 0 }, { js: "custFee", kind: 3 }, { js: "brokerFee", kind: 3 }, { js: "message", kind: 0 }, { js: "digest", kind: 0 }, { js: "bankAccType", kind: 0 }, { js: "deviceId", kind: 0 }, { js: "bankSecuAccType", kind: 0 }, { js: "brokerIdByBank", kind: 0 }, { js: "bankSecuAcc", kind: 0 }, { js: "bankPwdFlag", kind: 0 }, { js: "secuPwdFlag", kind: 0 }, { js: "operNo", kind: 0 }, { js: "requestId", kind: 1 }, { js: "tid", kind: 1 }, { js: "transferStatus", kind: 0 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "longCustomerName", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "secFutureSerial", kind: 1 }] },
|
|
863
|
+
{ id: 477, name: "NotifyQueryFutureAccountBySec", cName: "CThostFtdcNotifyQueryFutureAccountBySecField", fields: [{ js: "tradeCode", kind: 0 }, { js: "bankId", kind: 0 }, { js: "bankBranchId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "brokerBranchId", kind: 0 }, { js: "tradeDate", kind: 0 }, { js: "tradeTime", kind: 0 }, { js: "bankSerial", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "plateSerial", kind: 1 }, { js: "lastFragment", kind: 0 }, { js: "sessionId", kind: 1 }, { js: "customerName", kind: 0 }, { js: "idCardType", kind: 0 }, { js: "identifiedCardNo", kind: 0 }, { js: "custType", kind: 0 }, { js: "bankAccount", kind: 0 }, { js: "bankPassWord", kind: 0 }, { js: "accountId", kind: 0 }, { js: "password", kind: 0 }, { js: "futureSerial", kind: 1 }, { js: "installId", kind: 1 }, { js: "userId", kind: 0 }, { js: "verifyCertNoFlag", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "digest", kind: 0 }, { js: "bankAccType", kind: 0 }, { js: "deviceId", kind: 0 }, { js: "bankSecuAccType", kind: 0 }, { js: "brokerIdByBank", kind: 0 }, { js: "bankSecuAcc", kind: 0 }, { js: "bankPwdFlag", kind: 0 }, { js: "secuPwdFlag", kind: 0 }, { js: "operNo", kind: 0 }, { js: "requestId", kind: 1 }, { js: "tid", kind: 1 }, { js: "bankUseAmount", kind: 3 }, { js: "bankFetchAmount", kind: 3 }, { js: "errorId", kind: 1 }, { js: "errorMsg", kind: 0 }, { js: "longCustomerName", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "secFutureSerial", kind: 1 }] },
|
|
864
|
+
{ id: 478, name: "ExitEmergency", cName: "CThostFtdcExitEmergencyField", fields: [{ js: "brokerId", kind: 0 }] },
|
|
865
|
+
{ id: 479, name: "InvestorPortfMarginModel", cName: "CThostFtdcInvestorPortfMarginModelField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "marginModelId", kind: 0 }] },
|
|
866
|
+
{ id: 480, name: "InvestorPortfSetting", cName: "CThostFtdcInvestorPortfSettingField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "hedgeFlag", kind: 0 }, { js: "usePortf", kind: 1 }] },
|
|
867
|
+
{ id: 481, name: "QryInvestorPortfSetting", cName: "CThostFtdcQryInvestorPortfSettingField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }] },
|
|
868
|
+
{ id: 482, name: "UserPasswordUpdateFromSec", cName: "CThostFtdcUserPasswordUpdateFromSecField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "oldPassword", kind: 0 }, { js: "newPassword", kind: 0 }, { js: "fromSec", kind: 1 }] },
|
|
869
|
+
{ id: 483, name: "SettlementInfoConfirmFromSec", cName: "CThostFtdcSettlementInfoConfirmFromSecField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "confirmDate", kind: 0 }, { js: "confirmTime", kind: 0 }, { js: "fromSec", kind: 1 }] },
|
|
870
|
+
{ id: 484, name: "TradingAccountPasswordUpdateFromSec", cName: "CThostFtdcTradingAccountPasswordUpdateFromSecField", fields: [{ js: "brokerId", kind: 0 }, { js: "accountId", kind: 0 }, { js: "oldPassword", kind: 0 }, { js: "newPassword", kind: 0 }, { js: "currencyId", kind: 0 }, { js: "fromSec", kind: 1 }] },
|
|
871
|
+
{ id: 485, name: "RiskForbiddenRight", cName: "CThostFtdcRiskForbiddenRightField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "userId", kind: 0 }] },
|
|
872
|
+
{ id: 486, name: "InvestorInfoCommRec", cName: "CThostFtdcInvestorInfoCommRecField", fields: [{ js: "exchangeId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "orderCount", kind: 1 }, { js: "orderActionCount", kind: 1 }, { js: "forQuoteCnt", kind: 1 }, { js: "infoComm", kind: 3 }, { js: "isOptSeries", kind: 1 }, { js: "productId", kind: 0 }, { js: "infoCnt", kind: 1 }] },
|
|
873
|
+
{ id: 487, name: "QryInvestorInfoCommRec", cName: "CThostFtdcQryInvestorInfoCommRecField", fields: [{ js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "brokerId", kind: 0 }] },
|
|
874
|
+
{ id: 488, name: "CombLeg", cName: "CThostFtdcCombLegField", fields: [{ js: "combInstrumentId", kind: 0 }, { js: "legId", kind: 1 }, { js: "legInstrumentId", kind: 0 }, { js: "direction", kind: 0 }, { js: "legMultiple", kind: 1 }, { js: "implyLevel", kind: 1 }] },
|
|
875
|
+
{ id: 489, name: "QryCombLeg", cName: "CThostFtdcQryCombLegField", fields: [{ js: "legInstrumentId", kind: 0 }] },
|
|
876
|
+
{ id: 490, name: "InputOffsetSetting", cName: "CThostFtdcInputOffsetSettingField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "underlyingInstrId", kind: 0 }, { js: "productId", kind: 0 }, { js: "offsetType", kind: 0 }, { js: "volume", kind: 1 }, { js: "isOffset", kind: 1 }, { js: "requestId", kind: 1 }, { js: "userId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
877
|
+
{ id: 491, name: "OffsetSetting", cName: "CThostFtdcOffsetSettingField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "underlyingInstrId", kind: 0 }, { js: "productId", kind: 0 }, { js: "offsetType", kind: 0 }, { js: "volume", kind: 1 }, { js: "isOffset", kind: 1 }, { js: "requestId", kind: 1 }, { js: "userId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "exchangeSerialNo", kind: 0 }, { js: "exchangeProductId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "execResult", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "statusMsg", kind: 0 }, { js: "activeUserId", kind: 0 }, { js: "brokerOffsetSettingSeq", kind: 1 }, { js: "applySrc", kind: 0 }] },
|
|
878
|
+
{ id: 492, name: "CancelOffsetSetting", cName: "CThostFtdcCancelOffsetSettingField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "underlyingInstrId", kind: 0 }, { js: "productId", kind: 0 }, { js: "offsetType", kind: 0 }, { js: "volume", kind: 1 }, { js: "isOffset", kind: 1 }, { js: "requestId", kind: 1 }, { js: "userId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "exchangeSerialNo", kind: 0 }, { js: "exchangeProductId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "statusMsg", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }] },
|
|
879
|
+
{ id: 493, name: "QryOffsetSetting", cName: "CThostFtdcQryOffsetSettingField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "productId", kind: 0 }, { js: "offsetType", kind: 0 }] },
|
|
880
|
+
{ id: 494, name: "AddrAppIDRelation", cName: "CThostFtdcAddrAppIDRelationField", fields: [{ js: "brokerId", kind: 0 }, { js: "address", kind: 0 }, { js: "drIdentityId", kind: 1 }, { js: "appId", kind: 0 }] },
|
|
881
|
+
{ id: 495, name: "QryAddrAppIDRelation", cName: "CThostFtdcQryAddrAppIDRelationField", fields: [{ js: "brokerId", kind: 0 }] },
|
|
882
|
+
{ id: 496, name: "WechatUserSystemInfo", cName: "CThostFtdcWechatUserSystemInfoField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "wechatCltSysInfoLen", kind: 1 }, { js: "wechatCltSysInfo", kind: 0 }, { js: "clientIpPort", kind: 1 }, { js: "clientLoginTime", kind: 0 }, { js: "clientAppId", kind: 0 }, { js: "clientPublicIp", kind: 0 }, { js: "clientLoginRemark", kind: 0 }] },
|
|
883
|
+
{ id: 497, name: "InvestorReserveInfo", cName: "CThostFtdcInvestorReserveInfoField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "reserveInfo", kind: 0 }] },
|
|
884
|
+
{ id: 498, name: "QryInvestorDepartmentFlat", cName: "CThostFtdcQryInvestorDepartmentFlatField", fields: [{ js: "brokerId", kind: 0 }] },
|
|
885
|
+
{ id: 499, name: "InvestorDepartmentFlat", cName: "CThostFtdcInvestorDepartmentFlatField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "departmentId", kind: 0 }] },
|
|
886
|
+
{ id: 500, name: "QryDepartmentUser", cName: "CThostFtdcQryDepartmentUserField", fields: [{ js: "brokerId", kind: 0 }] },
|
|
887
|
+
{ id: 501, name: "AppAuthenticationCode", cName: "CThostFtdcAppAuthenticationCodeField", fields: [{ js: "brokerId", kind: 0 }, { js: "appId", kind: 0 }, { js: "authCode", kind: 0 }, { js: "preAuthCode", kind: 0 }, { js: "appType", kind: 0 }] },
|
|
888
|
+
{ id: 502, name: "UserDRIBypass", cName: "CThostFtdcUserDRIBypassField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "drIdentityId", kind: 1 }] },
|
|
889
|
+
{ id: 503, name: "ReqGenSMSCode", cName: "CThostFtdcReqGenSMSCodeField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "mobile", kind: 0 }] },
|
|
890
|
+
{ id: 504, name: "RspGenSMSCode", cName: "CThostFtdcRspGenSMSCodeField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "genTime", kind: 0 }] },
|
|
891
|
+
{ id: 505, name: "SMSVerifyInfoFromSec", cName: "CThostFtdcSMSVerifyInfoFromSecField", fields: [{ js: "brokerId", kind: 0 }, { js: "brokerAbbr", kind: 0 }, { js: "userId", kind: 0 }, { js: "mobile", kind: 0 }, { js: "smsCode", kind: 0 }, { js: "createDate", kind: 0 }, { js: "createTime", kind: 0 }, { js: "isUsed", kind: 1 }, { js: "fromSec", kind: 1 }] },
|
|
892
|
+
{ id: 506, name: "SMSVerifyConfig", cName: "CThostFtdcSMSVerifyConfigField", fields: [{ js: "userId", kind: 0 }, { js: "brokerId", kind: 0 }, { js: "mobile", kind: 0 }, { js: "useSmsVerify", kind: 1 }] },
|
|
893
|
+
{ id: 507, name: "SMSVerifyInfo", cName: "CThostFtdcSMSVerifyInfoField", fields: [{ js: "createTime", kind: 0 }, { js: "mobile", kind: 0 }, { js: "smsContent", kind: 0 }] },
|
|
894
|
+
{ id: 508, name: "InputSpdApply", cName: "CThostFtdcInputSpdApplyField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "firstLegInstrumentId", kind: 0 }, { js: "secondLegInstrumentId", kind: 0 }, { js: "volume", kind: 1 }, { js: "direction", kind: 0 }, { js: "cmbType", kind: 0 }, { js: "requestId", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
895
|
+
{ id: 509, name: "InputHedgeCfm", cName: "CThostFtdcInputHedgeCfmField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "volume", kind: 1 }, { js: "direction", kind: 0 }, { js: "requestId", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
896
|
+
{ id: 510, name: "SpdApply", cName: "CThostFtdcSpdApplyField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "firstLegInstrumentId", kind: 0 }, { js: "secondLegInstrumentId", kind: 0 }, { js: "userId", kind: 0 }, { js: "volume", kind: 1 }, { js: "direction", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "activeUserId", kind: 0 }, { js: "brokerOrderSeq", kind: 1 }, { js: "orderSysId", kind: 0 }, { js: "applyStatus", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "orderLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "notifySequence", kind: 1 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }, { js: "cmbType", kind: 0 }, { js: "statusMsg", kind: 0 }] },
|
|
897
|
+
{ id: 511, name: "HedgeCfm", cName: "CThostFtdcHedgeCfmField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "instrumentId", kind: 0 }, { js: "userId", kind: 0 }, { js: "volume", kind: 1 }, { js: "direction", kind: 0 }, { js: "requestId", kind: 1 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "orderRef", kind: 0 }, { js: "activeUserId", kind: 0 }, { js: "brokerOrderSeq", kind: 1 }, { js: "orderSysId", kind: 0 }, { js: "applyStatus", kind: 0 }, { js: "sequenceNo", kind: 1 }, { js: "dealVolume", kind: 1 }, { js: "insertDate", kind: 0 }, { js: "insertTime", kind: 0 }, { js: "cancelTime", kind: 0 }, { js: "reqDate", kind: 0 }, { js: "orderLocalId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "exchangeInstId", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderSubmitStatus", kind: 0 }, { js: "notifySequence", kind: 1 }, { js: "tradingDay", kind: 0 }, { js: "settlementId", kind: 1 }, { js: "statusMsg", kind: 0 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
898
|
+
{ id: 512, name: "QrySpdApply", cName: "CThostFtdcQrySpdApplyField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "firstLegInstrumentId", kind: 0 }, { js: "secondLegInstrumentId", kind: 0 }] },
|
|
899
|
+
{ id: 513, name: "QryHedgeCfm", cName: "CThostFtdcQryHedgeCfmField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "instrumentId", kind: 0 }] },
|
|
900
|
+
{ id: 514, name: "InputSpdApplyAction", cName: "CThostFtdcInputSpdApplyActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "requestId", kind: 1 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
901
|
+
{ id: 515, name: "InputHedgeCfmAction", cName: "CThostFtdcInputHedgeCfmActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "userId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "requestId", kind: 1 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
902
|
+
{ id: 516, name: "SpdApplyAction", cName: "CThostFtdcSpdApplyActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "requestId", kind: 1 }, { js: "statusMsg", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
903
|
+
{ id: 517, name: "HedgeCfmAction", cName: "CThostFtdcHedgeCfmActionField", fields: [{ js: "brokerId", kind: 0 }, { js: "investorId", kind: 0 }, { js: "actionDate", kind: 0 }, { js: "actionTime", kind: 0 }, { js: "traderId", kind: 0 }, { js: "installId", kind: 1 }, { js: "orderLocalId", kind: 0 }, { js: "actionLocalId", kind: 0 }, { js: "participantId", kind: 0 }, { js: "clientId", kind: 0 }, { js: "orderActionStatus", kind: 0 }, { js: "userId", kind: 0 }, { js: "exchangeId", kind: 0 }, { js: "orderSysId", kind: 0 }, { js: "requestId", kind: 1 }, { js: "statusMsg", kind: 0 }, { js: "orderRef", kind: 0 }, { js: "frontId", kind: 1 }, { js: "sessionId", kind: 1 }, { js: "ipAddress", kind: 0 }, { js: "macAddress", kind: 0 }] },
|
|
904
|
+
{ id: 518, name: "FrontInfo", cName: "CThostFtdcFrontInfoField", fields: [{ js: "frontAddr", kind: 0 }, { js: "qryFreq", kind: 1 }, { js: "ftdPkgFreq", kind: 1 }] }
|
|
844
905
|
];
|
|
845
906
|
var STRUCT_ID = {
|
|
846
907
|
"Dissemination": 0,
|
|
@@ -1207,7 +1268,7 @@ var STRUCT_ID = {
|
|
|
1207
1268
|
"QryClassifiedInstrument": 361,
|
|
1208
1269
|
"QryCombPromotionParam": 362,
|
|
1209
1270
|
"CombPromotionParam": 363,
|
|
1210
|
-
"
|
|
1271
|
+
"ReqUserLoginSM": 364,
|
|
1211
1272
|
"QryRiskSettleInvstPosition": 365,
|
|
1212
1273
|
"QryRiskSettleProductStatus": 366,
|
|
1213
1274
|
"RiskSettleInvstPosition": 367,
|
|
@@ -1308,7 +1369,60 @@ var STRUCT_ID = {
|
|
|
1308
1369
|
"SyncDeltaRCAMSInvstCombPos": 462,
|
|
1309
1370
|
"SyncDeltaRULEInstrParameter": 463,
|
|
1310
1371
|
"SyncDeltaRULEIntraParameter": 464,
|
|
1311
|
-
"SyncDeltaRULEInterParameter": 465
|
|
1372
|
+
"SyncDeltaRULEInterParameter": 465,
|
|
1373
|
+
"IpAddrParam": 466,
|
|
1374
|
+
"QryIpAddrParam": 467,
|
|
1375
|
+
"TGIpAddrParam": 468,
|
|
1376
|
+
"QryTGIpAddrParam": 469,
|
|
1377
|
+
"TGSessionQryStatus": 470,
|
|
1378
|
+
"LocalAddrConfig": 471,
|
|
1379
|
+
"QryLocalAddrConfig": 472,
|
|
1380
|
+
"ReqQueryBankAccountBySec": 473,
|
|
1381
|
+
"RspQueryBankAccountBySec": 474,
|
|
1382
|
+
"ReqTransferBySec": 475,
|
|
1383
|
+
"RspTransferBySec": 476,
|
|
1384
|
+
"NotifyQueryFutureAccountBySec": 477,
|
|
1385
|
+
"ExitEmergency": 478,
|
|
1386
|
+
"InvestorPortfMarginModel": 479,
|
|
1387
|
+
"InvestorPortfSetting": 480,
|
|
1388
|
+
"QryInvestorPortfSetting": 481,
|
|
1389
|
+
"UserPasswordUpdateFromSec": 482,
|
|
1390
|
+
"SettlementInfoConfirmFromSec": 483,
|
|
1391
|
+
"TradingAccountPasswordUpdateFromSec": 484,
|
|
1392
|
+
"RiskForbiddenRight": 485,
|
|
1393
|
+
"InvestorInfoCommRec": 486,
|
|
1394
|
+
"QryInvestorInfoCommRec": 487,
|
|
1395
|
+
"CombLeg": 488,
|
|
1396
|
+
"QryCombLeg": 489,
|
|
1397
|
+
"InputOffsetSetting": 490,
|
|
1398
|
+
"OffsetSetting": 491,
|
|
1399
|
+
"CancelOffsetSetting": 492,
|
|
1400
|
+
"QryOffsetSetting": 493,
|
|
1401
|
+
"AddrAppIDRelation": 494,
|
|
1402
|
+
"QryAddrAppIDRelation": 495,
|
|
1403
|
+
"WechatUserSystemInfo": 496,
|
|
1404
|
+
"InvestorReserveInfo": 497,
|
|
1405
|
+
"QryInvestorDepartmentFlat": 498,
|
|
1406
|
+
"InvestorDepartmentFlat": 499,
|
|
1407
|
+
"QryDepartmentUser": 500,
|
|
1408
|
+
"AppAuthenticationCode": 501,
|
|
1409
|
+
"UserDRIBypass": 502,
|
|
1410
|
+
"ReqGenSMSCode": 503,
|
|
1411
|
+
"RspGenSMSCode": 504,
|
|
1412
|
+
"SMSVerifyInfoFromSec": 505,
|
|
1413
|
+
"SMSVerifyConfig": 506,
|
|
1414
|
+
"SMSVerifyInfo": 507,
|
|
1415
|
+
"InputSpdApply": 508,
|
|
1416
|
+
"InputHedgeCfm": 509,
|
|
1417
|
+
"SpdApply": 510,
|
|
1418
|
+
"HedgeCfm": 511,
|
|
1419
|
+
"QrySpdApply": 512,
|
|
1420
|
+
"QryHedgeCfm": 513,
|
|
1421
|
+
"InputSpdApplyAction": 514,
|
|
1422
|
+
"InputHedgeCfmAction": 515,
|
|
1423
|
+
"SpdApplyAction": 516,
|
|
1424
|
+
"HedgeCfmAction": 517,
|
|
1425
|
+
"FrontInfo": 518
|
|
1312
1426
|
};
|
|
1313
1427
|
|
|
1314
1428
|
// dist/codec.js
|
|
@@ -1557,6 +1671,13 @@ var CtpClient = class extends import_node_events.EventEmitter {
|
|
|
1557
1671
|
}
|
|
1558
1672
|
return d;
|
|
1559
1673
|
}
|
|
1674
|
+
/** Decode one struct's raw bytes (e.g. a native snapshot) into a plain object,
|
|
1675
|
+
* reusing the lazily-built per-struct decoder — the same codec the ring uses,
|
|
1676
|
+
* so the result is identical to a streamed record. */
|
|
1677
|
+
decodeStruct(structId, bytes) {
|
|
1678
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
1679
|
+
return this.decoderFor(structId)(view, bytes, 0);
|
|
1680
|
+
}
|
|
1560
1681
|
drain() {
|
|
1561
1682
|
let count = this.native._claim();
|
|
1562
1683
|
while (count > 0) {
|
|
@@ -1845,6 +1966,23 @@ var MarketData = class extends CtpClient {
|
|
|
1845
1966
|
unsubscribeForQuote(instrumentIds) {
|
|
1846
1967
|
return this.native.unsubscribeForQuoteRsp(instrumentIds);
|
|
1847
1968
|
}
|
|
1969
|
+
/** Latest cached depth tick for an instrument — the C++ last-value cache,
|
|
1970
|
+
* updated on every tick before it reaches JS. Returns null if none has been
|
|
1971
|
+
* seen (or it was unsubscribed). Synchronous: no waiting for an event, no
|
|
1972
|
+
* per-tick bookkeeping in your strategy. */
|
|
1973
|
+
snapshot(instrumentId) {
|
|
1974
|
+
const bytes = this.native.snapshot(instrumentId);
|
|
1975
|
+
return bytes ? this.decodeStruct(STRUCT_ID.DepthMarketData, bytes) : null;
|
|
1976
|
+
}
|
|
1977
|
+
/** Latest price for an instrument from the cache (0 if none seen). Synchronous. */
|
|
1978
|
+
last(instrumentId) {
|
|
1979
|
+
return this.native.last(instrumentId);
|
|
1980
|
+
}
|
|
1981
|
+
/** @internal Hand the C++ snapshot cache to a Trader (Trader.trackMarketData),
|
|
1982
|
+
* so the Trader's deviation check reads live prices in C++ — no JS round-trip. */
|
|
1983
|
+
_snapshotExternal() {
|
|
1984
|
+
return this.native._snapshotExternal();
|
|
1985
|
+
}
|
|
1848
1986
|
/** Log in; resolves with the login response (or rejects on CTP error). */
|
|
1849
1987
|
login(req = {}) {
|
|
1850
1988
|
return this.request((id) => this.native.reqUserLogin(req, id), true);
|
|
@@ -1887,6 +2025,7 @@ var TraderEvent;
|
|
|
1887
2025
|
TraderEvent2["FrontDisconnected"] = "front-disconnected";
|
|
1888
2026
|
TraderEvent2["HeartBeatWarning"] = "heart-beat-warning";
|
|
1889
2027
|
TraderEvent2["RspAuthenticate"] = "rsp-authenticate";
|
|
2028
|
+
TraderEvent2["RtnPrivateSeqNo"] = "rtn-private-seq-no";
|
|
1890
2029
|
TraderEvent2["RspUserLogin"] = "rsp-user-login";
|
|
1891
2030
|
TraderEvent2["RspUserLogout"] = "rsp-user-logout";
|
|
1892
2031
|
TraderEvent2["RspUserPasswordUpdate"] = "rsp-user-password-update";
|
|
@@ -1919,6 +2058,7 @@ var TraderEvent;
|
|
|
1919
2058
|
TraderEvent2["RspQryTradingCode"] = "rsp-qry-trading-code";
|
|
1920
2059
|
TraderEvent2["RspQryInstrumentMarginRate"] = "rsp-qry-instrument-margin-rate";
|
|
1921
2060
|
TraderEvent2["RspQryInstrumentCommissionRate"] = "rsp-qry-instrument-commission-rate";
|
|
2061
|
+
TraderEvent2["RspQryUserSession"] = "rsp-qry-user-session";
|
|
1922
2062
|
TraderEvent2["RspQryExchange"] = "rsp-qry-exchange";
|
|
1923
2063
|
TraderEvent2["RspQryProduct"] = "rsp-qry-product";
|
|
1924
2064
|
TraderEvent2["RspQryInstrument"] = "rsp-qry-instrument";
|
|
@@ -2037,162 +2177,208 @@ var TraderEvent;
|
|
|
2037
2177
|
TraderEvent2["RspQryRULEIntraParameter"] = "rsp-qry-rule-intra-parameter";
|
|
2038
2178
|
TraderEvent2["RspQryRULEInterParameter"] = "rsp-qry-rule-inter-parameter";
|
|
2039
2179
|
TraderEvent2["RspQryInvestorProdRULEMargin"] = "rsp-qry-investor-prod-rule-margin";
|
|
2180
|
+
TraderEvent2["RspQryInvestorPortfSetting"] = "rsp-qry-investor-portf-setting";
|
|
2181
|
+
TraderEvent2["RspQryInvestorInfoCommRec"] = "rsp-qry-investor-info-comm-rec";
|
|
2182
|
+
TraderEvent2["RspQryCombLeg"] = "rsp-qry-comb-leg";
|
|
2183
|
+
TraderEvent2["RspOffsetSetting"] = "rsp-offset-setting";
|
|
2184
|
+
TraderEvent2["RspCancelOffsetSetting"] = "rsp-cancel-offset-setting";
|
|
2185
|
+
TraderEvent2["RtnOffsetSetting"] = "rtn-offset-setting";
|
|
2186
|
+
TraderEvent2["ErrRtnOffsetSetting"] = "err-rtn-offset-setting";
|
|
2187
|
+
TraderEvent2["ErrRtnCancelOffsetSetting"] = "err-rtn-cancel-offset-setting";
|
|
2188
|
+
TraderEvent2["RspQryOffsetSetting"] = "rsp-qry-offset-setting";
|
|
2189
|
+
TraderEvent2["RspGenSMSCode"] = "rsp-gen-sms-code";
|
|
2190
|
+
TraderEvent2["RspSpdApply"] = "rsp-spd-apply";
|
|
2191
|
+
TraderEvent2["RspSpdApplyAction"] = "rsp-spd-apply-action";
|
|
2192
|
+
TraderEvent2["RspQrySpdApply"] = "rsp-qry-spd-apply";
|
|
2193
|
+
TraderEvent2["RtnSpdApply"] = "rtn-spd-apply";
|
|
2194
|
+
TraderEvent2["ErrRtnSpdApply"] = "err-rtn-spd-apply";
|
|
2195
|
+
TraderEvent2["ErrRtnSpdApplyAction"] = "err-rtn-spd-apply-action";
|
|
2196
|
+
TraderEvent2["RspHedgeCfm"] = "rsp-hedge-cfm";
|
|
2197
|
+
TraderEvent2["RspHedgeCfmAction"] = "rsp-hedge-cfm-action";
|
|
2198
|
+
TraderEvent2["RspQryHedgeCfm"] = "rsp-qry-hedge-cfm";
|
|
2199
|
+
TraderEvent2["RtnHedgeCfm"] = "rtn-hedge-cfm";
|
|
2200
|
+
TraderEvent2["ErrRtnHedgeCfm"] = "err-rtn-hedge-cfm";
|
|
2201
|
+
TraderEvent2["ErrRtnHedgeCfmAction"] = "err-rtn-hedge-cfm-action";
|
|
2040
2202
|
})(TraderEvent || (TraderEvent = {}));
|
|
2041
2203
|
var TRADER_EVENTS = /* @__PURE__ */ new Map([
|
|
2042
2204
|
[8192 + 1, "front-connected"],
|
|
2043
2205
|
[8192 + 2, "front-disconnected"],
|
|
2044
2206
|
[8192 + 3, "heart-beat-warning"],
|
|
2045
2207
|
[8192 + 4, "rsp-authenticate"],
|
|
2046
|
-
[8192 + 5, "
|
|
2047
|
-
[8192 + 6, "rsp-user-
|
|
2048
|
-
[8192 + 7, "rsp-user-
|
|
2049
|
-
[8192 + 8, "rsp-
|
|
2050
|
-
[8192 + 9, "rsp-
|
|
2051
|
-
[8192 + 10, "rsp-
|
|
2052
|
-
[8192 + 11, "rsp-gen-user-
|
|
2053
|
-
[8192 + 12, "rsp-
|
|
2054
|
-
[8192 + 13, "rsp-
|
|
2055
|
-
[8192 + 14, "rsp-parked-order-
|
|
2056
|
-
[8192 + 15, "rsp-order-action"],
|
|
2057
|
-
[8192 + 16, "rsp-
|
|
2058
|
-
[8192 + 17, "rsp-
|
|
2059
|
-
[8192 + 18, "rsp-
|
|
2060
|
-
[8192 + 19, "rsp-remove-parked-order
|
|
2061
|
-
[8192 + 20, "rsp-
|
|
2062
|
-
[8192 + 21, "rsp-exec-order-
|
|
2063
|
-
[8192 + 22, "rsp-
|
|
2064
|
-
[8192 + 23, "rsp-quote-insert"],
|
|
2065
|
-
[8192 + 24, "rsp-quote-
|
|
2066
|
-
[8192 + 25, "rsp-
|
|
2067
|
-
[8192 + 26, "rsp-
|
|
2068
|
-
[8192 + 27, "rsp-option-self-close-
|
|
2069
|
-
[8192 + 28, "rsp-
|
|
2070
|
-
[8192 + 29, "rsp-
|
|
2071
|
-
[8192 + 30, "rsp-qry-
|
|
2072
|
-
[8192 + 31, "rsp-qry-
|
|
2073
|
-
[8192 + 32, "rsp-qry-
|
|
2074
|
-
[8192 + 33, "rsp-qry-
|
|
2075
|
-
[8192 + 34, "rsp-qry-
|
|
2076
|
-
[8192 + 35, "rsp-qry-
|
|
2077
|
-
[8192 + 36, "rsp-qry-instrument-
|
|
2078
|
-
[8192 + 37, "rsp-qry-
|
|
2079
|
-
[8192 + 38, "rsp-qry-
|
|
2080
|
-
[8192 + 39, "rsp-qry-
|
|
2081
|
-
[8192 + 40, "rsp-qry-
|
|
2082
|
-
[8192 + 41, "rsp-qry-
|
|
2083
|
-
[8192 + 42, "rsp-qry-
|
|
2084
|
-
[8192 + 43, "rsp-qry-
|
|
2085
|
-
[8192 + 44, "rsp-qry-
|
|
2086
|
-
[8192 + 45, "rsp-qry-
|
|
2087
|
-
[8192 + 46, "rsp-qry-
|
|
2088
|
-
[8192 + 47, "rsp-qry-
|
|
2089
|
-
[8192 + 48, "rsp-qry-
|
|
2090
|
-
[8192 + 49, "rsp-qry-
|
|
2091
|
-
[8192 + 50, "rsp-qry-
|
|
2092
|
-
[8192 + 51, "rsp-qry-
|
|
2093
|
-
[8192 + 52, "rsp-qry-
|
|
2094
|
-
[8192 + 53, "rsp-qry-exchange-rate"],
|
|
2095
|
-
[8192 + 54, "rsp-qry-
|
|
2096
|
-
[8192 + 55, "rsp-qry-
|
|
2097
|
-
[8192 + 56, "rsp-qry-
|
|
2098
|
-
[8192 + 57, "rsp-qry-
|
|
2099
|
-
[8192 + 58, "rsp-qry-
|
|
2100
|
-
[8192 + 59, "rsp-qry-instrument-
|
|
2101
|
-
[8192 + 60, "rsp-qry-
|
|
2102
|
-
[8192 + 61, "rsp-qry-
|
|
2103
|
-
[8192 + 62, "rsp-qry-sec-agent-
|
|
2104
|
-
[8192 + 63, "rsp-qry-
|
|
2105
|
-
[8192 + 64, "rsp-qry-
|
|
2106
|
-
[8192 + 65, "rsp-qry-
|
|
2107
|
-
[8192 + 66, "rsp-qry-
|
|
2108
|
-
[8192 + 67, "rsp-qry-
|
|
2109
|
-
[8192 + 68, "rsp-qry-
|
|
2110
|
-
[8192 + 69, "rsp-qry-
|
|
2111
|
-
[8192 + 70, "rsp-qry-
|
|
2112
|
-
[8192 + 71, "rsp-qry-
|
|
2113
|
-
[8192 + 72, "rsp-qry-
|
|
2114
|
-
[8192 + 73, "rsp-qry-
|
|
2115
|
-
[8192 + 74, "rsp-
|
|
2116
|
-
[8192 + 75, "
|
|
2117
|
-
[8192 + 76, "
|
|
2118
|
-
[8192 + 77, "
|
|
2119
|
-
[8192 + 78, "
|
|
2120
|
-
[8192 + 79, "rtn-
|
|
2121
|
-
[8192 + 80, "rtn-
|
|
2122
|
-
[8192 + 81, "rtn-
|
|
2123
|
-
[8192 + 82, "rtn-
|
|
2124
|
-
[8192 + 83, "rtn-
|
|
2125
|
-
[8192 + 84, "
|
|
2126
|
-
[8192 + 85, "
|
|
2127
|
-
[8192 + 86, "err-rtn-
|
|
2128
|
-
[8192 + 87, "rtn-
|
|
2129
|
-
[8192 + 88, "err-rtn-quote-insert"],
|
|
2130
|
-
[8192 + 89, "
|
|
2131
|
-
[8192 + 90, "rtn-
|
|
2132
|
-
[8192 + 91, "rtn-
|
|
2133
|
-
[8192 + 92, "
|
|
2134
|
-
[8192 + 93, "rtn-
|
|
2135
|
-
[8192 + 94, "err-rtn-
|
|
2136
|
-
[8192 + 95, "
|
|
2137
|
-
[8192 + 96, "rtn-
|
|
2138
|
-
[8192 + 97, "err-rtn-
|
|
2139
|
-
[8192 + 98, "
|
|
2140
|
-
[8192 + 99, "
|
|
2141
|
-
[8192 + 100, "rsp-qry-
|
|
2142
|
-
[8192 + 101, "rsp-qry-
|
|
2143
|
-
[8192 + 102, "rsp-qry-
|
|
2144
|
-
[8192 + 103, "rsp-qry-
|
|
2145
|
-
[8192 + 104, "rsp-
|
|
2146
|
-
[8192 + 105, "
|
|
2147
|
-
[8192 + 106, "
|
|
2148
|
-
[8192 + 107, "rtn-
|
|
2149
|
-
[8192 + 108, "rtn-
|
|
2150
|
-
[8192 + 109, "rtn-from-bank-to-future-by-
|
|
2151
|
-
[8192 + 110, "rtn-from-future-to-bank-by-
|
|
2152
|
-
[8192 + 111, "rtn-
|
|
2153
|
-
[8192 + 112, "rtn-
|
|
2154
|
-
[8192 + 113, "rtn-
|
|
2155
|
-
[8192 + 114, "
|
|
2156
|
-
[8192 + 115, "
|
|
2157
|
-
[8192 + 116, "err-rtn-
|
|
2158
|
-
[8192 + 117, "err-rtn-
|
|
2159
|
-
[8192 + 118, "err-rtn-
|
|
2160
|
-
[8192 + 119, "rtn-repeal-
|
|
2161
|
-
[8192 + 120, "rtn-
|
|
2162
|
-
[8192 + 121, "
|
|
2163
|
-
[8192 + 122, "
|
|
2164
|
-
[8192 + 123, "rsp-
|
|
2165
|
-
[8192 + 124, "
|
|
2166
|
-
[8192 + 125, "
|
|
2167
|
-
[8192 + 126, "rtn-
|
|
2168
|
-
[8192 + 127, "
|
|
2169
|
-
[8192 + 128, "
|
|
2170
|
-
[8192 + 129, "rsp-qry-
|
|
2171
|
-
[8192 + 130, "rsp-qry-
|
|
2172
|
-
[8192 + 131, "rsp-qry-
|
|
2173
|
-
[8192 + 132, "rsp-qry-
|
|
2174
|
-
[8192 + 133, "rsp-qry-spbm-
|
|
2175
|
-
[8192 + 134, "rsp-qry-spbm-
|
|
2176
|
-
[8192 + 135, "rsp-qry-spbm-
|
|
2177
|
-
[8192 + 136, "rsp-qry-spbm-
|
|
2178
|
-
[8192 + 137, "rsp-qry-
|
|
2179
|
-
[8192 + 138, "rsp-qry-investor-
|
|
2180
|
-
[8192 + 139, "rsp-qry-investor-
|
|
2181
|
-
[8192 + 140, "rsp-qry-investor-
|
|
2182
|
-
[8192 + 141, "rsp-qry-spmm-
|
|
2183
|
-
[8192 + 142, "rsp-qry-spmm-
|
|
2184
|
-
[8192 + 143, "rsp-qry-
|
|
2185
|
-
[8192 + 144, "rsp-qry-
|
|
2186
|
-
[8192 + 145, "rsp-qry-
|
|
2187
|
-
[8192 + 146, "rsp-qry-rcams-
|
|
2188
|
-
[8192 + 147, "rsp-qry-rcams-
|
|
2189
|
-
[8192 + 148, "rsp-qry-rcams-
|
|
2190
|
-
[8192 + 149, "rsp-qry-rcams-
|
|
2191
|
-
[8192 + 150, "rsp-qry-
|
|
2192
|
-
[8192 + 151, "rsp-qry-
|
|
2193
|
-
[8192 + 152, "rsp-qry-
|
|
2194
|
-
[8192 + 153, "rsp-qry-rule-
|
|
2195
|
-
[8192 + 154, "rsp-qry-
|
|
2208
|
+
[8192 + 5, "rtn-private-seq-no"],
|
|
2209
|
+
[8192 + 6, "rsp-user-login"],
|
|
2210
|
+
[8192 + 7, "rsp-user-logout"],
|
|
2211
|
+
[8192 + 8, "rsp-user-password-update"],
|
|
2212
|
+
[8192 + 9, "rsp-trading-account-password-update"],
|
|
2213
|
+
[8192 + 10, "rsp-user-auth-method"],
|
|
2214
|
+
[8192 + 11, "rsp-gen-user-captcha"],
|
|
2215
|
+
[8192 + 12, "rsp-gen-user-text"],
|
|
2216
|
+
[8192 + 13, "rsp-order-insert"],
|
|
2217
|
+
[8192 + 14, "rsp-parked-order-insert"],
|
|
2218
|
+
[8192 + 15, "rsp-parked-order-action"],
|
|
2219
|
+
[8192 + 16, "rsp-order-action"],
|
|
2220
|
+
[8192 + 17, "rsp-qry-max-order-volume"],
|
|
2221
|
+
[8192 + 18, "rsp-settlement-info-confirm"],
|
|
2222
|
+
[8192 + 19, "rsp-remove-parked-order"],
|
|
2223
|
+
[8192 + 20, "rsp-remove-parked-order-action"],
|
|
2224
|
+
[8192 + 21, "rsp-exec-order-insert"],
|
|
2225
|
+
[8192 + 22, "rsp-exec-order-action"],
|
|
2226
|
+
[8192 + 23, "rsp-for-quote-insert"],
|
|
2227
|
+
[8192 + 24, "rsp-quote-insert"],
|
|
2228
|
+
[8192 + 25, "rsp-quote-action"],
|
|
2229
|
+
[8192 + 26, "rsp-batch-order-action"],
|
|
2230
|
+
[8192 + 27, "rsp-option-self-close-insert"],
|
|
2231
|
+
[8192 + 28, "rsp-option-self-close-action"],
|
|
2232
|
+
[8192 + 29, "rsp-comb-action-insert"],
|
|
2233
|
+
[8192 + 30, "rsp-qry-order"],
|
|
2234
|
+
[8192 + 31, "rsp-qry-trade"],
|
|
2235
|
+
[8192 + 32, "rsp-qry-investor-position"],
|
|
2236
|
+
[8192 + 33, "rsp-qry-trading-account"],
|
|
2237
|
+
[8192 + 34, "rsp-qry-investor"],
|
|
2238
|
+
[8192 + 35, "rsp-qry-trading-code"],
|
|
2239
|
+
[8192 + 36, "rsp-qry-instrument-margin-rate"],
|
|
2240
|
+
[8192 + 37, "rsp-qry-instrument-commission-rate"],
|
|
2241
|
+
[8192 + 38, "rsp-qry-user-session"],
|
|
2242
|
+
[8192 + 39, "rsp-qry-exchange"],
|
|
2243
|
+
[8192 + 40, "rsp-qry-product"],
|
|
2244
|
+
[8192 + 41, "rsp-qry-instrument"],
|
|
2245
|
+
[8192 + 42, "rsp-qry-depth-market-data"],
|
|
2246
|
+
[8192 + 43, "rsp-qry-trader-offer"],
|
|
2247
|
+
[8192 + 44, "rsp-qry-settlement-info"],
|
|
2248
|
+
[8192 + 45, "rsp-qry-transfer-bank"],
|
|
2249
|
+
[8192 + 46, "rsp-qry-investor-position-detail"],
|
|
2250
|
+
[8192 + 47, "rsp-qry-notice"],
|
|
2251
|
+
[8192 + 48, "rsp-qry-settlement-info-confirm"],
|
|
2252
|
+
[8192 + 49, "rsp-qry-investor-position-combine-detail"],
|
|
2253
|
+
[8192 + 50, "rsp-qry-cfmmc-trading-account-key"],
|
|
2254
|
+
[8192 + 51, "rsp-qry-e-warrant-offset"],
|
|
2255
|
+
[8192 + 52, "rsp-qry-investor-product-group-margin"],
|
|
2256
|
+
[8192 + 53, "rsp-qry-exchange-margin-rate"],
|
|
2257
|
+
[8192 + 54, "rsp-qry-exchange-margin-rate-adjust"],
|
|
2258
|
+
[8192 + 55, "rsp-qry-exchange-rate"],
|
|
2259
|
+
[8192 + 56, "rsp-qry-sec-agent-acid-map"],
|
|
2260
|
+
[8192 + 57, "rsp-qry-product-exch-rate"],
|
|
2261
|
+
[8192 + 58, "rsp-qry-product-group"],
|
|
2262
|
+
[8192 + 59, "rsp-qry-mm-instrument-commission-rate"],
|
|
2263
|
+
[8192 + 60, "rsp-qry-mm-option-instr-comm-rate"],
|
|
2264
|
+
[8192 + 61, "rsp-qry-instrument-order-comm-rate"],
|
|
2265
|
+
[8192 + 62, "rsp-qry-sec-agent-trading-account"],
|
|
2266
|
+
[8192 + 63, "rsp-qry-sec-agent-check-mode"],
|
|
2267
|
+
[8192 + 64, "rsp-qry-sec-agent-trade-info"],
|
|
2268
|
+
[8192 + 65, "rsp-qry-option-instr-trade-cost"],
|
|
2269
|
+
[8192 + 66, "rsp-qry-option-instr-comm-rate"],
|
|
2270
|
+
[8192 + 67, "rsp-qry-exec-order"],
|
|
2271
|
+
[8192 + 68, "rsp-qry-for-quote"],
|
|
2272
|
+
[8192 + 69, "rsp-qry-quote"],
|
|
2273
|
+
[8192 + 70, "rsp-qry-option-self-close"],
|
|
2274
|
+
[8192 + 71, "rsp-qry-invest-unit"],
|
|
2275
|
+
[8192 + 72, "rsp-qry-comb-instrument-guard"],
|
|
2276
|
+
[8192 + 73, "rsp-qry-comb-action"],
|
|
2277
|
+
[8192 + 74, "rsp-qry-transfer-serial"],
|
|
2278
|
+
[8192 + 75, "rsp-qry-accountregister"],
|
|
2279
|
+
[8192 + 76, "rsp-error"],
|
|
2280
|
+
[8192 + 77, "rtn-order"],
|
|
2281
|
+
[8192 + 78, "rtn-trade"],
|
|
2282
|
+
[8192 + 79, "err-rtn-order-insert"],
|
|
2283
|
+
[8192 + 80, "err-rtn-order-action"],
|
|
2284
|
+
[8192 + 81, "rtn-instrument-status"],
|
|
2285
|
+
[8192 + 82, "rtn-bulletin"],
|
|
2286
|
+
[8192 + 83, "rtn-trading-notice"],
|
|
2287
|
+
[8192 + 84, "rtn-error-conditional-order"],
|
|
2288
|
+
[8192 + 85, "rtn-exec-order"],
|
|
2289
|
+
[8192 + 86, "err-rtn-exec-order-insert"],
|
|
2290
|
+
[8192 + 87, "err-rtn-exec-order-action"],
|
|
2291
|
+
[8192 + 88, "err-rtn-for-quote-insert"],
|
|
2292
|
+
[8192 + 89, "rtn-quote"],
|
|
2293
|
+
[8192 + 90, "err-rtn-quote-insert"],
|
|
2294
|
+
[8192 + 91, "err-rtn-quote-action"],
|
|
2295
|
+
[8192 + 92, "rtn-for-quote-rsp"],
|
|
2296
|
+
[8192 + 93, "rtn-cfmmc-trading-account-token"],
|
|
2297
|
+
[8192 + 94, "err-rtn-batch-order-action"],
|
|
2298
|
+
[8192 + 95, "rtn-option-self-close"],
|
|
2299
|
+
[8192 + 96, "err-rtn-option-self-close-insert"],
|
|
2300
|
+
[8192 + 97, "err-rtn-option-self-close-action"],
|
|
2301
|
+
[8192 + 98, "rtn-comb-action"],
|
|
2302
|
+
[8192 + 99, "err-rtn-comb-action-insert"],
|
|
2303
|
+
[8192 + 100, "rsp-qry-contract-bank"],
|
|
2304
|
+
[8192 + 101, "rsp-qry-parked-order"],
|
|
2305
|
+
[8192 + 102, "rsp-qry-parked-order-action"],
|
|
2306
|
+
[8192 + 103, "rsp-qry-trading-notice"],
|
|
2307
|
+
[8192 + 104, "rsp-qry-broker-trading-params"],
|
|
2308
|
+
[8192 + 105, "rsp-qry-broker-trading-algos"],
|
|
2309
|
+
[8192 + 106, "rsp-query-cfmmc-trading-account-token"],
|
|
2310
|
+
[8192 + 107, "rtn-from-bank-to-future-by-bank"],
|
|
2311
|
+
[8192 + 108, "rtn-from-future-to-bank-by-bank"],
|
|
2312
|
+
[8192 + 109, "rtn-repeal-from-bank-to-future-by-bank"],
|
|
2313
|
+
[8192 + 110, "rtn-repeal-from-future-to-bank-by-bank"],
|
|
2314
|
+
[8192 + 111, "rtn-from-bank-to-future-by-future"],
|
|
2315
|
+
[8192 + 112, "rtn-from-future-to-bank-by-future"],
|
|
2316
|
+
[8192 + 113, "rtn-repeal-from-bank-to-future-by-future-manual"],
|
|
2317
|
+
[8192 + 114, "rtn-repeal-from-future-to-bank-by-future-manual"],
|
|
2318
|
+
[8192 + 115, "rtn-query-bank-balance-by-future"],
|
|
2319
|
+
[8192 + 116, "err-rtn-bank-to-future-by-future"],
|
|
2320
|
+
[8192 + 117, "err-rtn-future-to-bank-by-future"],
|
|
2321
|
+
[8192 + 118, "err-rtn-repeal-bank-to-future-by-future-manual"],
|
|
2322
|
+
[8192 + 119, "err-rtn-repeal-future-to-bank-by-future-manual"],
|
|
2323
|
+
[8192 + 120, "err-rtn-query-bank-balance-by-future"],
|
|
2324
|
+
[8192 + 121, "rtn-repeal-from-bank-to-future-by-future"],
|
|
2325
|
+
[8192 + 122, "rtn-repeal-from-future-to-bank-by-future"],
|
|
2326
|
+
[8192 + 123, "rsp-from-bank-to-future-by-future"],
|
|
2327
|
+
[8192 + 124, "rsp-from-future-to-bank-by-future"],
|
|
2328
|
+
[8192 + 125, "rsp-query-bank-account-money-by-future"],
|
|
2329
|
+
[8192 + 126, "rtn-open-account-by-bank"],
|
|
2330
|
+
[8192 + 127, "rtn-cancel-account-by-bank"],
|
|
2331
|
+
[8192 + 128, "rtn-change-account-by-bank"],
|
|
2332
|
+
[8192 + 129, "rsp-qry-classified-instrument"],
|
|
2333
|
+
[8192 + 130, "rsp-qry-comb-promotion-param"],
|
|
2334
|
+
[8192 + 131, "rsp-qry-risk-settle-invst-position"],
|
|
2335
|
+
[8192 + 132, "rsp-qry-risk-settle-product-status"],
|
|
2336
|
+
[8192 + 133, "rsp-qry-spbm-future-parameter"],
|
|
2337
|
+
[8192 + 134, "rsp-qry-spbm-option-parameter"],
|
|
2338
|
+
[8192 + 135, "rsp-qry-spbm-intra-parameter"],
|
|
2339
|
+
[8192 + 136, "rsp-qry-spbm-inter-parameter"],
|
|
2340
|
+
[8192 + 137, "rsp-qry-spbm-portf-definition"],
|
|
2341
|
+
[8192 + 138, "rsp-qry-spbm-investor-portf-def"],
|
|
2342
|
+
[8192 + 139, "rsp-qry-investor-portf-margin-ratio"],
|
|
2343
|
+
[8192 + 140, "rsp-qry-investor-prod-spbm-detail"],
|
|
2344
|
+
[8192 + 141, "rsp-qry-investor-commodity-spmm-margin"],
|
|
2345
|
+
[8192 + 142, "rsp-qry-investor-commodity-group-spmm-margin"],
|
|
2346
|
+
[8192 + 143, "rsp-qry-spmm-inst-param"],
|
|
2347
|
+
[8192 + 144, "rsp-qry-spmm-product-param"],
|
|
2348
|
+
[8192 + 145, "rsp-qry-spbm-add-on-inter-parameter"],
|
|
2349
|
+
[8192 + 146, "rsp-qry-rcams-comb-product-info"],
|
|
2350
|
+
[8192 + 147, "rsp-qry-rcams-instr-parameter"],
|
|
2351
|
+
[8192 + 148, "rsp-qry-rcams-intra-parameter"],
|
|
2352
|
+
[8192 + 149, "rsp-qry-rcams-inter-parameter"],
|
|
2353
|
+
[8192 + 150, "rsp-qry-rcams-short-opt-adjust-param"],
|
|
2354
|
+
[8192 + 151, "rsp-qry-rcams-investor-comb-position"],
|
|
2355
|
+
[8192 + 152, "rsp-qry-investor-prod-rcams-margin"],
|
|
2356
|
+
[8192 + 153, "rsp-qry-rule-instr-parameter"],
|
|
2357
|
+
[8192 + 154, "rsp-qry-rule-intra-parameter"],
|
|
2358
|
+
[8192 + 155, "rsp-qry-rule-inter-parameter"],
|
|
2359
|
+
[8192 + 156, "rsp-qry-investor-prod-rule-margin"],
|
|
2360
|
+
[8192 + 157, "rsp-qry-investor-portf-setting"],
|
|
2361
|
+
[8192 + 158, "rsp-qry-investor-info-comm-rec"],
|
|
2362
|
+
[8192 + 159, "rsp-qry-comb-leg"],
|
|
2363
|
+
[8192 + 160, "rsp-offset-setting"],
|
|
2364
|
+
[8192 + 161, "rsp-cancel-offset-setting"],
|
|
2365
|
+
[8192 + 162, "rtn-offset-setting"],
|
|
2366
|
+
[8192 + 163, "err-rtn-offset-setting"],
|
|
2367
|
+
[8192 + 164, "err-rtn-cancel-offset-setting"],
|
|
2368
|
+
[8192 + 165, "rsp-qry-offset-setting"],
|
|
2369
|
+
[8192 + 166, "rsp-gen-sms-code"],
|
|
2370
|
+
[8192 + 167, "rsp-spd-apply"],
|
|
2371
|
+
[8192 + 168, "rsp-spd-apply-action"],
|
|
2372
|
+
[8192 + 169, "rsp-qry-spd-apply"],
|
|
2373
|
+
[8192 + 170, "rtn-spd-apply"],
|
|
2374
|
+
[8192 + 171, "err-rtn-spd-apply"],
|
|
2375
|
+
[8192 + 172, "err-rtn-spd-apply-action"],
|
|
2376
|
+
[8192 + 173, "rsp-hedge-cfm"],
|
|
2377
|
+
[8192 + 174, "rsp-hedge-cfm-action"],
|
|
2378
|
+
[8192 + 175, "rsp-qry-hedge-cfm"],
|
|
2379
|
+
[8192 + 176, "rtn-hedge-cfm"],
|
|
2380
|
+
[8192 + 177, "err-rtn-hedge-cfm"],
|
|
2381
|
+
[8192 + 178, "err-rtn-hedge-cfm-action"]
|
|
2196
2382
|
]);
|
|
2197
2383
|
var TraderBase = class extends CtpClient {
|
|
2198
2384
|
reqAuthenticate(req = {}) {
|
|
@@ -2303,230 +2489,272 @@ var TraderBase = class extends CtpClient {
|
|
|
2303
2489
|
reqQryInstrumentCommissionRate(req = {}) {
|
|
2304
2490
|
return this.request((id) => this.native._req(36, this.encode(STRUCT_ID.QryInstrumentCommissionRate, req), id), false);
|
|
2305
2491
|
}
|
|
2492
|
+
reqQryUserSession(req = {}) {
|
|
2493
|
+
return this.request((id) => this.native._req(37, this.encode(STRUCT_ID.QryUserSession, req), id), false);
|
|
2494
|
+
}
|
|
2306
2495
|
reqQryExchange(req = {}) {
|
|
2307
|
-
return this.request((id) => this.native._req(
|
|
2496
|
+
return this.request((id) => this.native._req(38, this.encode(STRUCT_ID.QryExchange, req), id), false);
|
|
2308
2497
|
}
|
|
2309
2498
|
reqQryProduct(req = {}) {
|
|
2310
|
-
return this.request((id) => this.native._req(
|
|
2499
|
+
return this.request((id) => this.native._req(39, this.encode(STRUCT_ID.QryProduct, req), id), false);
|
|
2311
2500
|
}
|
|
2312
2501
|
reqQryInstrument(req = {}) {
|
|
2313
|
-
return this.request((id) => this.native._req(
|
|
2502
|
+
return this.request((id) => this.native._req(40, this.encode(STRUCT_ID.QryInstrument, req), id), false);
|
|
2314
2503
|
}
|
|
2315
2504
|
reqQryDepthMarketData(req = {}) {
|
|
2316
|
-
return this.request((id) => this.native._req(
|
|
2505
|
+
return this.request((id) => this.native._req(41, this.encode(STRUCT_ID.QryDepthMarketData, req), id), false);
|
|
2317
2506
|
}
|
|
2318
2507
|
reqQryTraderOffer(req = {}) {
|
|
2319
|
-
return this.request((id) => this.native._req(
|
|
2508
|
+
return this.request((id) => this.native._req(42, this.encode(STRUCT_ID.QryTraderOffer, req), id), false);
|
|
2320
2509
|
}
|
|
2321
2510
|
reqQrySettlementInfo(req = {}) {
|
|
2322
|
-
return this.request((id) => this.native._req(
|
|
2511
|
+
return this.request((id) => this.native._req(43, this.encode(STRUCT_ID.QrySettlementInfo, req), id), false);
|
|
2323
2512
|
}
|
|
2324
2513
|
reqQryTransferBank(req = {}) {
|
|
2325
|
-
return this.request((id) => this.native._req(
|
|
2514
|
+
return this.request((id) => this.native._req(44, this.encode(STRUCT_ID.QryTransferBank, req), id), false);
|
|
2326
2515
|
}
|
|
2327
2516
|
reqQryInvestorPositionDetail(req = {}) {
|
|
2328
|
-
return this.request((id) => this.native._req(
|
|
2517
|
+
return this.request((id) => this.native._req(45, this.encode(STRUCT_ID.QryInvestorPositionDetail, req), id), false);
|
|
2329
2518
|
}
|
|
2330
2519
|
reqQryNotice(req = {}) {
|
|
2331
|
-
return this.request((id) => this.native._req(
|
|
2520
|
+
return this.request((id) => this.native._req(46, this.encode(STRUCT_ID.QryNotice, req), id), false);
|
|
2332
2521
|
}
|
|
2333
2522
|
reqQrySettlementInfoConfirm(req = {}) {
|
|
2334
|
-
return this.request((id) => this.native._req(
|
|
2523
|
+
return this.request((id) => this.native._req(47, this.encode(STRUCT_ID.QrySettlementInfoConfirm, req), id), false);
|
|
2335
2524
|
}
|
|
2336
2525
|
reqQryInvestorPositionCombineDetail(req = {}) {
|
|
2337
|
-
return this.request((id) => this.native._req(
|
|
2526
|
+
return this.request((id) => this.native._req(48, this.encode(STRUCT_ID.QryInvestorPositionCombineDetail, req), id), false);
|
|
2338
2527
|
}
|
|
2339
2528
|
reqQryCfmmcTradingAccountKey(req = {}) {
|
|
2340
|
-
return this.request((id) => this.native._req(
|
|
2529
|
+
return this.request((id) => this.native._req(49, this.encode(STRUCT_ID.QryCFMMCTradingAccountKey, req), id), false);
|
|
2341
2530
|
}
|
|
2342
2531
|
reqQryEWarrantOffset(req = {}) {
|
|
2343
|
-
return this.request((id) => this.native._req(
|
|
2532
|
+
return this.request((id) => this.native._req(50, this.encode(STRUCT_ID.QryEWarrantOffset, req), id), false);
|
|
2344
2533
|
}
|
|
2345
2534
|
reqQryInvestorProductGroupMargin(req = {}) {
|
|
2346
|
-
return this.request((id) => this.native._req(
|
|
2535
|
+
return this.request((id) => this.native._req(51, this.encode(STRUCT_ID.QryInvestorProductGroupMargin, req), id), false);
|
|
2347
2536
|
}
|
|
2348
2537
|
reqQryExchangeMarginRate(req = {}) {
|
|
2349
|
-
return this.request((id) => this.native._req(
|
|
2538
|
+
return this.request((id) => this.native._req(52, this.encode(STRUCT_ID.QryExchangeMarginRate, req), id), false);
|
|
2350
2539
|
}
|
|
2351
2540
|
reqQryExchangeMarginRateAdjust(req = {}) {
|
|
2352
|
-
return this.request((id) => this.native._req(
|
|
2541
|
+
return this.request((id) => this.native._req(53, this.encode(STRUCT_ID.QryExchangeMarginRateAdjust, req), id), false);
|
|
2353
2542
|
}
|
|
2354
2543
|
reqQryExchangeRate(req = {}) {
|
|
2355
|
-
return this.request((id) => this.native._req(
|
|
2544
|
+
return this.request((id) => this.native._req(54, this.encode(STRUCT_ID.QryExchangeRate, req), id), false);
|
|
2356
2545
|
}
|
|
2357
2546
|
reqQrySecAgentAcidMap(req = {}) {
|
|
2358
|
-
return this.request((id) => this.native._req(
|
|
2547
|
+
return this.request((id) => this.native._req(55, this.encode(STRUCT_ID.QrySecAgentACIDMap, req), id), false);
|
|
2359
2548
|
}
|
|
2360
2549
|
reqQryProductExchRate(req = {}) {
|
|
2361
|
-
return this.request((id) => this.native._req(
|
|
2550
|
+
return this.request((id) => this.native._req(56, this.encode(STRUCT_ID.QryProductExchRate, req), id), false);
|
|
2362
2551
|
}
|
|
2363
2552
|
reqQryProductGroup(req = {}) {
|
|
2364
|
-
return this.request((id) => this.native._req(
|
|
2553
|
+
return this.request((id) => this.native._req(57, this.encode(STRUCT_ID.QryProductGroup, req), id), false);
|
|
2365
2554
|
}
|
|
2366
2555
|
reqQryMmInstrumentCommissionRate(req = {}) {
|
|
2367
|
-
return this.request((id) => this.native._req(
|
|
2556
|
+
return this.request((id) => this.native._req(58, this.encode(STRUCT_ID.QryMMInstrumentCommissionRate, req), id), false);
|
|
2368
2557
|
}
|
|
2369
2558
|
reqQryMmOptionInstrCommRate(req = {}) {
|
|
2370
|
-
return this.request((id) => this.native._req(
|
|
2559
|
+
return this.request((id) => this.native._req(59, this.encode(STRUCT_ID.QryMMOptionInstrCommRate, req), id), false);
|
|
2371
2560
|
}
|
|
2372
2561
|
reqQryInstrumentOrderCommRate(req = {}) {
|
|
2373
|
-
return this.request((id) => this.native._req(
|
|
2562
|
+
return this.request((id) => this.native._req(60, this.encode(STRUCT_ID.QryInstrumentOrderCommRate, req), id), false);
|
|
2374
2563
|
}
|
|
2375
2564
|
reqQrySecAgentTradingAccount(req = {}) {
|
|
2376
|
-
return this.request((id) => this.native._req(
|
|
2565
|
+
return this.request((id) => this.native._req(61, this.encode(STRUCT_ID.QryTradingAccount, req), id), false);
|
|
2377
2566
|
}
|
|
2378
2567
|
reqQrySecAgentCheckMode(req = {}) {
|
|
2379
|
-
return this.request((id) => this.native._req(
|
|
2568
|
+
return this.request((id) => this.native._req(62, this.encode(STRUCT_ID.QrySecAgentCheckMode, req), id), false);
|
|
2380
2569
|
}
|
|
2381
2570
|
reqQrySecAgentTradeInfo(req = {}) {
|
|
2382
|
-
return this.request((id) => this.native._req(
|
|
2571
|
+
return this.request((id) => this.native._req(63, this.encode(STRUCT_ID.QrySecAgentTradeInfo, req), id), false);
|
|
2383
2572
|
}
|
|
2384
2573
|
reqQryOptionInstrTradeCost(req = {}) {
|
|
2385
|
-
return this.request((id) => this.native._req(
|
|
2574
|
+
return this.request((id) => this.native._req(64, this.encode(STRUCT_ID.QryOptionInstrTradeCost, req), id), false);
|
|
2386
2575
|
}
|
|
2387
2576
|
reqQryOptionInstrCommRate(req = {}) {
|
|
2388
|
-
return this.request((id) => this.native._req(
|
|
2577
|
+
return this.request((id) => this.native._req(65, this.encode(STRUCT_ID.QryOptionInstrCommRate, req), id), false);
|
|
2389
2578
|
}
|
|
2390
2579
|
reqQryExecOrder(req = {}) {
|
|
2391
|
-
return this.request((id) => this.native._req(
|
|
2580
|
+
return this.request((id) => this.native._req(66, this.encode(STRUCT_ID.QryExecOrder, req), id), false);
|
|
2392
2581
|
}
|
|
2393
2582
|
reqQryForQuote(req = {}) {
|
|
2394
|
-
return this.request((id) => this.native._req(
|
|
2583
|
+
return this.request((id) => this.native._req(67, this.encode(STRUCT_ID.QryForQuote, req), id), false);
|
|
2395
2584
|
}
|
|
2396
2585
|
reqQryQuote(req = {}) {
|
|
2397
|
-
return this.request((id) => this.native._req(
|
|
2586
|
+
return this.request((id) => this.native._req(68, this.encode(STRUCT_ID.QryQuote, req), id), false);
|
|
2398
2587
|
}
|
|
2399
2588
|
reqQryOptionSelfClose(req = {}) {
|
|
2400
|
-
return this.request((id) => this.native._req(
|
|
2589
|
+
return this.request((id) => this.native._req(69, this.encode(STRUCT_ID.QryOptionSelfClose, req), id), false);
|
|
2401
2590
|
}
|
|
2402
2591
|
reqQryInvestUnit(req = {}) {
|
|
2403
|
-
return this.request((id) => this.native._req(
|
|
2592
|
+
return this.request((id) => this.native._req(70, this.encode(STRUCT_ID.QryInvestUnit, req), id), false);
|
|
2404
2593
|
}
|
|
2405
2594
|
reqQryCombInstrumentGuard(req = {}) {
|
|
2406
|
-
return this.request((id) => this.native._req(
|
|
2595
|
+
return this.request((id) => this.native._req(71, this.encode(STRUCT_ID.QryCombInstrumentGuard, req), id), false);
|
|
2407
2596
|
}
|
|
2408
2597
|
reqQryCombAction(req = {}) {
|
|
2409
|
-
return this.request((id) => this.native._req(
|
|
2598
|
+
return this.request((id) => this.native._req(72, this.encode(STRUCT_ID.QryCombAction, req), id), false);
|
|
2410
2599
|
}
|
|
2411
2600
|
reqQryTransferSerial(req = {}) {
|
|
2412
|
-
return this.request((id) => this.native._req(
|
|
2601
|
+
return this.request((id) => this.native._req(73, this.encode(STRUCT_ID.QryTransferSerial, req), id), false);
|
|
2413
2602
|
}
|
|
2414
2603
|
reqQryAccountregister(req = {}) {
|
|
2415
|
-
return this.request((id) => this.native._req(
|
|
2604
|
+
return this.request((id) => this.native._req(74, this.encode(STRUCT_ID.QryAccountregister, req), id), false);
|
|
2416
2605
|
}
|
|
2417
2606
|
reqQryContractBank(req = {}) {
|
|
2418
|
-
return this.request((id) => this.native._req(
|
|
2607
|
+
return this.request((id) => this.native._req(75, this.encode(STRUCT_ID.QryContractBank, req), id), false);
|
|
2419
2608
|
}
|
|
2420
2609
|
reqQryParkedOrder(req = {}) {
|
|
2421
|
-
return this.request((id) => this.native._req(
|
|
2610
|
+
return this.request((id) => this.native._req(76, this.encode(STRUCT_ID.QryParkedOrder, req), id), false);
|
|
2422
2611
|
}
|
|
2423
2612
|
reqQryParkedOrderAction(req = {}) {
|
|
2424
|
-
return this.request((id) => this.native._req(
|
|
2613
|
+
return this.request((id) => this.native._req(77, this.encode(STRUCT_ID.QryParkedOrderAction, req), id), false);
|
|
2425
2614
|
}
|
|
2426
2615
|
reqQryTradingNotice(req = {}) {
|
|
2427
|
-
return this.request((id) => this.native._req(
|
|
2616
|
+
return this.request((id) => this.native._req(78, this.encode(STRUCT_ID.QryTradingNotice, req), id), false);
|
|
2428
2617
|
}
|
|
2429
2618
|
reqQryBrokerTradingParams(req = {}) {
|
|
2430
|
-
return this.request((id) => this.native._req(
|
|
2619
|
+
return this.request((id) => this.native._req(79, this.encode(STRUCT_ID.QryBrokerTradingParams, req), id), false);
|
|
2431
2620
|
}
|
|
2432
2621
|
reqQryBrokerTradingAlgos(req = {}) {
|
|
2433
|
-
return this.request((id) => this.native._req(
|
|
2622
|
+
return this.request((id) => this.native._req(80, this.encode(STRUCT_ID.QryBrokerTradingAlgos, req), id), false);
|
|
2434
2623
|
}
|
|
2435
2624
|
reqQueryCfmmcTradingAccountToken(req = {}) {
|
|
2436
|
-
return this.request((id) => this.native._req(
|
|
2625
|
+
return this.request((id) => this.native._req(81, this.encode(STRUCT_ID.QueryCFMMCTradingAccountToken, req), id), true);
|
|
2437
2626
|
}
|
|
2438
2627
|
reqFromBankToFutureByFuture(req = {}) {
|
|
2439
|
-
return this.request((id) => this.native._req(
|
|
2628
|
+
return this.request((id) => this.native._req(82, this.encode(STRUCT_ID.ReqTransfer, req), id), true);
|
|
2440
2629
|
}
|
|
2441
2630
|
reqFromFutureToBankByFuture(req = {}) {
|
|
2442
|
-
return this.request((id) => this.native._req(
|
|
2631
|
+
return this.request((id) => this.native._req(83, this.encode(STRUCT_ID.ReqTransfer, req), id), true);
|
|
2443
2632
|
}
|
|
2444
2633
|
reqQueryBankAccountMoneyByFuture(req = {}) {
|
|
2445
|
-
return this.request((id) => this.native._req(
|
|
2634
|
+
return this.request((id) => this.native._req(84, this.encode(STRUCT_ID.ReqQueryAccount, req), id), true);
|
|
2446
2635
|
}
|
|
2447
2636
|
reqQryClassifiedInstrument(req = {}) {
|
|
2448
|
-
return this.request((id) => this.native._req(
|
|
2637
|
+
return this.request((id) => this.native._req(85, this.encode(STRUCT_ID.QryClassifiedInstrument, req), id), false);
|
|
2449
2638
|
}
|
|
2450
2639
|
reqQryCombPromotionParam(req = {}) {
|
|
2451
|
-
return this.request((id) => this.native._req(
|
|
2640
|
+
return this.request((id) => this.native._req(86, this.encode(STRUCT_ID.QryCombPromotionParam, req), id), false);
|
|
2452
2641
|
}
|
|
2453
2642
|
reqQryRiskSettleInvstPosition(req = {}) {
|
|
2454
|
-
return this.request((id) => this.native._req(
|
|
2643
|
+
return this.request((id) => this.native._req(87, this.encode(STRUCT_ID.QryRiskSettleInvstPosition, req), id), false);
|
|
2455
2644
|
}
|
|
2456
2645
|
reqQryRiskSettleProductStatus(req = {}) {
|
|
2457
|
-
return this.request((id) => this.native._req(
|
|
2646
|
+
return this.request((id) => this.native._req(88, this.encode(STRUCT_ID.QryRiskSettleProductStatus, req), id), false);
|
|
2458
2647
|
}
|
|
2459
2648
|
reqQrySpbmFutureParameter(req = {}) {
|
|
2460
|
-
return this.request((id) => this.native._req(
|
|
2649
|
+
return this.request((id) => this.native._req(89, this.encode(STRUCT_ID.QrySPBMFutureParameter, req), id), false);
|
|
2461
2650
|
}
|
|
2462
2651
|
reqQrySpbmOptionParameter(req = {}) {
|
|
2463
|
-
return this.request((id) => this.native._req(
|
|
2652
|
+
return this.request((id) => this.native._req(90, this.encode(STRUCT_ID.QrySPBMOptionParameter, req), id), false);
|
|
2464
2653
|
}
|
|
2465
2654
|
reqQrySpbmIntraParameter(req = {}) {
|
|
2466
|
-
return this.request((id) => this.native._req(
|
|
2655
|
+
return this.request((id) => this.native._req(91, this.encode(STRUCT_ID.QrySPBMIntraParameter, req), id), false);
|
|
2467
2656
|
}
|
|
2468
2657
|
reqQrySpbmInterParameter(req = {}) {
|
|
2469
|
-
return this.request((id) => this.native._req(
|
|
2658
|
+
return this.request((id) => this.native._req(92, this.encode(STRUCT_ID.QrySPBMInterParameter, req), id), false);
|
|
2470
2659
|
}
|
|
2471
2660
|
reqQrySpbmPortfDefinition(req = {}) {
|
|
2472
|
-
return this.request((id) => this.native._req(
|
|
2661
|
+
return this.request((id) => this.native._req(93, this.encode(STRUCT_ID.QrySPBMPortfDefinition, req), id), false);
|
|
2473
2662
|
}
|
|
2474
2663
|
reqQrySpbmInvestorPortfDef(req = {}) {
|
|
2475
|
-
return this.request((id) => this.native._req(
|
|
2664
|
+
return this.request((id) => this.native._req(94, this.encode(STRUCT_ID.QrySPBMInvestorPortfDef, req), id), false);
|
|
2476
2665
|
}
|
|
2477
2666
|
reqQryInvestorPortfMarginRatio(req = {}) {
|
|
2478
|
-
return this.request((id) => this.native._req(
|
|
2667
|
+
return this.request((id) => this.native._req(95, this.encode(STRUCT_ID.QryInvestorPortfMarginRatio, req), id), false);
|
|
2479
2668
|
}
|
|
2480
2669
|
reqQryInvestorProdSpbmDetail(req = {}) {
|
|
2481
|
-
return this.request((id) => this.native._req(
|
|
2670
|
+
return this.request((id) => this.native._req(96, this.encode(STRUCT_ID.QryInvestorProdSPBMDetail, req), id), false);
|
|
2482
2671
|
}
|
|
2483
2672
|
reqQryInvestorCommoditySpmmMargin(req = {}) {
|
|
2484
|
-
return this.request((id) => this.native._req(
|
|
2673
|
+
return this.request((id) => this.native._req(97, this.encode(STRUCT_ID.QryInvestorCommoditySPMMMargin, req), id), false);
|
|
2485
2674
|
}
|
|
2486
2675
|
reqQryInvestorCommodityGroupSpmmMargin(req = {}) {
|
|
2487
|
-
return this.request((id) => this.native._req(
|
|
2676
|
+
return this.request((id) => this.native._req(98, this.encode(STRUCT_ID.QryInvestorCommodityGroupSPMMMargin, req), id), false);
|
|
2488
2677
|
}
|
|
2489
2678
|
reqQrySpmmInstParam(req = {}) {
|
|
2490
|
-
return this.request((id) => this.native._req(
|
|
2679
|
+
return this.request((id) => this.native._req(99, this.encode(STRUCT_ID.QrySPMMInstParam, req), id), false);
|
|
2491
2680
|
}
|
|
2492
2681
|
reqQrySpmmProductParam(req = {}) {
|
|
2493
|
-
return this.request((id) => this.native._req(
|
|
2682
|
+
return this.request((id) => this.native._req(100, this.encode(STRUCT_ID.QrySPMMProductParam, req), id), false);
|
|
2494
2683
|
}
|
|
2495
2684
|
reqQrySpbmAddOnInterParameter(req = {}) {
|
|
2496
|
-
return this.request((id) => this.native._req(
|
|
2685
|
+
return this.request((id) => this.native._req(101, this.encode(STRUCT_ID.QrySPBMAddOnInterParameter, req), id), false);
|
|
2497
2686
|
}
|
|
2498
2687
|
reqQryRcamsCombProductInfo(req = {}) {
|
|
2499
|
-
return this.request((id) => this.native._req(
|
|
2688
|
+
return this.request((id) => this.native._req(102, this.encode(STRUCT_ID.QryRCAMSCombProductInfo, req), id), false);
|
|
2500
2689
|
}
|
|
2501
2690
|
reqQryRcamsInstrParameter(req = {}) {
|
|
2502
|
-
return this.request((id) => this.native._req(
|
|
2691
|
+
return this.request((id) => this.native._req(103, this.encode(STRUCT_ID.QryRCAMSInstrParameter, req), id), false);
|
|
2503
2692
|
}
|
|
2504
2693
|
reqQryRcamsIntraParameter(req = {}) {
|
|
2505
|
-
return this.request((id) => this.native._req(
|
|
2694
|
+
return this.request((id) => this.native._req(104, this.encode(STRUCT_ID.QryRCAMSIntraParameter, req), id), false);
|
|
2506
2695
|
}
|
|
2507
2696
|
reqQryRcamsInterParameter(req = {}) {
|
|
2508
|
-
return this.request((id) => this.native._req(
|
|
2697
|
+
return this.request((id) => this.native._req(105, this.encode(STRUCT_ID.QryRCAMSInterParameter, req), id), false);
|
|
2509
2698
|
}
|
|
2510
2699
|
reqQryRcamsShortOptAdjustParam(req = {}) {
|
|
2511
|
-
return this.request((id) => this.native._req(
|
|
2700
|
+
return this.request((id) => this.native._req(106, this.encode(STRUCT_ID.QryRCAMSShortOptAdjustParam, req), id), false);
|
|
2512
2701
|
}
|
|
2513
2702
|
reqQryRcamsInvestorCombPosition(req = {}) {
|
|
2514
|
-
return this.request((id) => this.native._req(
|
|
2703
|
+
return this.request((id) => this.native._req(107, this.encode(STRUCT_ID.QryRCAMSInvestorCombPosition, req), id), false);
|
|
2515
2704
|
}
|
|
2516
2705
|
reqQryInvestorProdRcamsMargin(req = {}) {
|
|
2517
|
-
return this.request((id) => this.native._req(
|
|
2706
|
+
return this.request((id) => this.native._req(108, this.encode(STRUCT_ID.QryInvestorProdRCAMSMargin, req), id), false);
|
|
2518
2707
|
}
|
|
2519
2708
|
reqQryRuleInstrParameter(req = {}) {
|
|
2520
|
-
return this.request((id) => this.native._req(
|
|
2709
|
+
return this.request((id) => this.native._req(109, this.encode(STRUCT_ID.QryRULEInstrParameter, req), id), false);
|
|
2521
2710
|
}
|
|
2522
2711
|
reqQryRuleIntraParameter(req = {}) {
|
|
2523
|
-
return this.request((id) => this.native._req(
|
|
2712
|
+
return this.request((id) => this.native._req(110, this.encode(STRUCT_ID.QryRULEIntraParameter, req), id), false);
|
|
2524
2713
|
}
|
|
2525
2714
|
reqQryRuleInterParameter(req = {}) {
|
|
2526
|
-
return this.request((id) => this.native._req(
|
|
2715
|
+
return this.request((id) => this.native._req(111, this.encode(STRUCT_ID.QryRULEInterParameter, req), id), false);
|
|
2527
2716
|
}
|
|
2528
2717
|
reqQryInvestorProdRuleMargin(req = {}) {
|
|
2529
|
-
return this.request((id) => this.native._req(
|
|
2718
|
+
return this.request((id) => this.native._req(112, this.encode(STRUCT_ID.QryInvestorProdRULEMargin, req), id), false);
|
|
2719
|
+
}
|
|
2720
|
+
reqQryInvestorPortfSetting(req = {}) {
|
|
2721
|
+
return this.request((id) => this.native._req(113, this.encode(STRUCT_ID.QryInvestorPortfSetting, req), id), false);
|
|
2722
|
+
}
|
|
2723
|
+
reqQryInvestorInfoCommRec(req = {}) {
|
|
2724
|
+
return this.request((id) => this.native._req(114, this.encode(STRUCT_ID.QryInvestorInfoCommRec, req), id), false);
|
|
2725
|
+
}
|
|
2726
|
+
reqQryCombLeg(req = {}) {
|
|
2727
|
+
return this.request((id) => this.native._req(115, this.encode(STRUCT_ID.QryCombLeg, req), id), false);
|
|
2728
|
+
}
|
|
2729
|
+
reqOffsetSetting(req = {}) {
|
|
2730
|
+
return this.request((id) => this.native._req(116, this.encode(STRUCT_ID.InputOffsetSetting, req), id), true);
|
|
2731
|
+
}
|
|
2732
|
+
reqCancelOffsetSetting(req = {}) {
|
|
2733
|
+
return this.request((id) => this.native._req(117, this.encode(STRUCT_ID.InputOffsetSetting, req), id), true);
|
|
2734
|
+
}
|
|
2735
|
+
reqQryOffsetSetting(req = {}) {
|
|
2736
|
+
return this.request((id) => this.native._req(118, this.encode(STRUCT_ID.QryOffsetSetting, req), id), false);
|
|
2737
|
+
}
|
|
2738
|
+
reqGenSmsCode(req = {}) {
|
|
2739
|
+
return this.request((id) => this.native._req(119, this.encode(STRUCT_ID.ReqGenSMSCode, req), id), true);
|
|
2740
|
+
}
|
|
2741
|
+
reqSpdApply(req = {}) {
|
|
2742
|
+
return this.request((id) => this.native._req(120, this.encode(STRUCT_ID.InputSpdApply, req), id), true);
|
|
2743
|
+
}
|
|
2744
|
+
reqSpdApplyAction(req = {}) {
|
|
2745
|
+
return this.request((id) => this.native._req(121, this.encode(STRUCT_ID.InputSpdApplyAction, req), id), true);
|
|
2746
|
+
}
|
|
2747
|
+
reqQrySpdApply(req = {}) {
|
|
2748
|
+
return this.request((id) => this.native._req(122, this.encode(STRUCT_ID.QrySpdApply, req), id), false);
|
|
2749
|
+
}
|
|
2750
|
+
reqHedgeCfm(req = {}) {
|
|
2751
|
+
return this.request((id) => this.native._req(123, this.encode(STRUCT_ID.InputHedgeCfm, req), id), true);
|
|
2752
|
+
}
|
|
2753
|
+
reqHedgeCfmAction(req = {}) {
|
|
2754
|
+
return this.request((id) => this.native._req(124, this.encode(STRUCT_ID.InputHedgeCfmAction, req), id), true);
|
|
2755
|
+
}
|
|
2756
|
+
reqQryHedgeCfm(req = {}) {
|
|
2757
|
+
return this.request((id) => this.native._req(125, this.encode(STRUCT_ID.QryHedgeCfm, req), id), false);
|
|
2530
2758
|
}
|
|
2531
2759
|
};
|
|
2532
2760
|
|
|
@@ -2551,9 +2779,6 @@ var Trader = class extends TraderBase {
|
|
|
2551
2779
|
const mx = r.maxOrderRef ? parseInt(r.maxOrderRef, 10) : NaN;
|
|
2552
2780
|
if (Number.isFinite(mx) && mx > this.orderRefSeq)
|
|
2553
2781
|
this.orderRefSeq = mx;
|
|
2554
|
-
if (typeof r.frontId === "number" && typeof r.sessionId === "number") {
|
|
2555
|
-
this.native.setSession(r.frontId, r.sessionId);
|
|
2556
|
-
}
|
|
2557
2782
|
}
|
|
2558
2783
|
});
|
|
2559
2784
|
this.start();
|
|
@@ -2620,6 +2845,7 @@ var Trader = class extends TraderBase {
|
|
|
2620
2845
|
assertFiniteLimit("riskSet.maxOrdersPerSec", config.maxOrdersPerSec);
|
|
2621
2846
|
assertFiniteLimit("riskSet.orderBurst", config.orderBurst);
|
|
2622
2847
|
assertFiniteLimit("riskSet.maxPositionCost", config.maxPositionCost);
|
|
2848
|
+
assertFiniteLimit("riskSet.maxMargin", config.maxMargin);
|
|
2623
2849
|
this.native.riskSet(config);
|
|
2624
2850
|
return this;
|
|
2625
2851
|
}
|
|
@@ -2638,22 +2864,22 @@ var Trader = class extends TraderBase {
|
|
|
2638
2864
|
this.native.riskResume();
|
|
2639
2865
|
return this;
|
|
2640
2866
|
}
|
|
2641
|
-
/**
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
/** Auto-feed last prices from a MarketData feed so the maxPriceDeviation
|
|
2647
|
-
* check has a live reference. */
|
|
2867
|
+
/** Use a MarketData feed as the live reference for the maxPriceDeviation check.
|
|
2868
|
+
* Wires the feed's C++ snapshot cache straight into this Trader's risk engine,
|
|
2869
|
+
* so the deviation check reads current prices in C++ on the order path (no JS
|
|
2870
|
+
* round-trip, and it also covers armed orders that fire with no JS in the loop).
|
|
2871
|
+
* Without this, no reference is set and the deviation check is skipped. */
|
|
2648
2872
|
trackMarketData(md) {
|
|
2649
|
-
|
|
2650
|
-
return this;
|
|
2651
|
-
}
|
|
2652
|
-
/** Set a contract's multiplier (合约乘数) for position-cost accounting. */
|
|
2653
|
-
setMultiplier(instrumentId, multiplier) {
|
|
2654
|
-
this.native.setMultiplier(instrumentId, multiplier);
|
|
2873
|
+
this.native._attachSnapshot(md._snapshotExternal());
|
|
2655
2874
|
return this;
|
|
2656
2875
|
}
|
|
2876
|
+
// Contract multipliers (for cost accounting) and margin rates (for the
|
|
2877
|
+
// maxMargin cap) are NOT fed from JS: the C++ risk engine sources them directly
|
|
2878
|
+
// from CTP's OnRspQryInstrument / OnRspQryInstrumentMarginRate callbacks (see
|
|
2879
|
+
// scripts/codegen/generate-trader.mjs). So any reqQryInstrument keeps
|
|
2880
|
+
// multipliers current, and querying reqQryInstrumentMarginRate for the
|
|
2881
|
+
// contracts you trade keeps the margin cap exact — no JS round-trip, and the
|
|
2882
|
+
// checks also cover armed orders that fire from C++ with no JS in the loop.
|
|
2657
2883
|
/**
|
|
2658
2884
|
* Cap the open position (in lots) for one instrument, enforced in C++ on
|
|
2659
2885
|
* every opening order. Pass a number to cap both sides at once, or
|
|
@@ -2712,17 +2938,21 @@ var Trader = class extends TraderBase {
|
|
|
2712
2938
|
}
|
|
2713
2939
|
return this;
|
|
2714
2940
|
}
|
|
2715
|
-
/** Seed a pre-existing position
|
|
2716
|
-
|
|
2717
|
-
|
|
2941
|
+
/** Seed a pre-existing position into the margin/cost cap. `margin` is the real
|
|
2942
|
+
* capital occupied (CTP InvestorPosition.UseMargin) — the unit the maxMargin
|
|
2943
|
+
* cap tracks. A deliberate resync op (overwrites the held side), so it stays a
|
|
2944
|
+
* JS-driven call, unlike the passive multiplier / margin-rate feeds (sourced in
|
|
2945
|
+
* C++). */
|
|
2946
|
+
seedPosition(instrumentId, side, volume, margin) {
|
|
2947
|
+
this.native.seedPosition(instrumentId, side === "long", volume, margin);
|
|
2718
2948
|
return this;
|
|
2719
2949
|
}
|
|
2720
|
-
/** Seed open-position
|
|
2950
|
+
/** Seed open-position MARGIN from reqQryInvestorPosition() rows for GROSS-mode
|
|
2721
2951
|
* accounts (posiDirection '2' = long, '3' = short; any other value, incl. net
|
|
2722
|
-
* '1', is bucketed as short).
|
|
2723
|
-
* matter for them, but a per-side *volume*
|
|
2724
|
-
* track the wrong side — for net-mode
|
|
2725
|
-
* with the side you intend. */
|
|
2952
|
+
* '1', is bucketed as short). Uses each row's real UseMargin. Cost/margin caps
|
|
2953
|
+
* sum both sides so the bucket doesn't matter for them, but a per-side *volume*
|
|
2954
|
+
* cap on a net-mode instrument would track the wrong side — for net-mode
|
|
2955
|
+
* accounts, seed those via seedPosition() with the side you intend. */
|
|
2726
2956
|
seedFromPositions(positions) {
|
|
2727
2957
|
const agg = /* @__PURE__ */ new Map();
|
|
2728
2958
|
for (const p of positions) {
|
|
@@ -2732,7 +2962,7 @@ var Trader = class extends TraderBase {
|
|
|
2732
2962
|
const key = `${p.instrumentId}|${long}`;
|
|
2733
2963
|
const e = agg.get(key) ?? { id: p.instrumentId, long, vol: 0, cost: 0 };
|
|
2734
2964
|
e.vol += p.position;
|
|
2735
|
-
e.cost += p.
|
|
2965
|
+
e.cost += p.useMargin;
|
|
2736
2966
|
agg.set(key, e);
|
|
2737
2967
|
}
|
|
2738
2968
|
for (const e of agg.values())
|
|
@@ -2773,17 +3003,16 @@ var Trader = class extends TraderBase {
|
|
|
2773
3003
|
throw lastErr;
|
|
2774
3004
|
return [];
|
|
2775
3005
|
}
|
|
2776
|
-
/**
|
|
2777
|
-
*
|
|
2778
|
-
*
|
|
3006
|
+
/** Query instruments so the C++ risk engine picks up their multipliers (it
|
|
3007
|
+
* sources them directly from OnRspQryInstrument — no JS feed). No args queries
|
|
3008
|
+
* all instruments (one request); otherwise the given symbols. Retries through
|
|
3009
|
+
* cold-start flow control. Returns the count of contracts with a multiplier. */
|
|
2779
3010
|
async syncMultipliers(instrumentIds) {
|
|
2780
3011
|
let count = 0;
|
|
2781
3012
|
const apply = (rows) => {
|
|
2782
3013
|
for (const r of rows) {
|
|
2783
|
-
if (r.volumeMultiple > 0)
|
|
2784
|
-
this.setMultiplier(r.instrumentId, r.volumeMultiple);
|
|
3014
|
+
if (r.volumeMultiple > 0)
|
|
2785
3015
|
count++;
|
|
2786
|
-
}
|
|
2787
3016
|
}
|
|
2788
3017
|
};
|
|
2789
3018
|
if (instrumentIds && instrumentIds.length) {
|
|
@@ -2797,8 +3026,9 @@ var Trader = class extends TraderBase {
|
|
|
2797
3026
|
}
|
|
2798
3027
|
return count;
|
|
2799
3028
|
}
|
|
2800
|
-
/** Seed open-position
|
|
2801
|
-
* logged-in account unless brokerId/investorId are supplied.
|
|
3029
|
+
/** Seed open-position MARGIN from CTP (reqQryInvestorPosition) into the cap.
|
|
3030
|
+
* Uses the logged-in account unless brokerId/investorId are supplied. A
|
|
3031
|
+
* deliberate resync (resets the held book first), so it stays JS-driven. */
|
|
2802
3032
|
async syncPositions(opts) {
|
|
2803
3033
|
const brokerId = opts?.brokerId ?? this.broker;
|
|
2804
3034
|
const investorId = opts?.investorId ?? this.investor;
|
|
@@ -2832,16 +3062,6 @@ var Trader = class extends TraderBase {
|
|
|
2832
3062
|
this.native.rebuildReservations(working);
|
|
2833
3063
|
return working.length;
|
|
2834
3064
|
}
|
|
2835
|
-
/** @internal test-only: feed a synthetic fill into the position-cost tracker. */
|
|
2836
|
-
_applyTestTrade(instrumentId, isBuy, isOpen, price, volume) {
|
|
2837
|
-
this.native._applyTestTrade(instrumentId, isBuy, isOpen, price, volume);
|
|
2838
|
-
}
|
|
2839
|
-
/** @internal test-only: drive the in-flight reservation tracker (OnRtnOrder).
|
|
2840
|
-
* status: '1'/'3' = working (queueing), others (e.g. '0' filled, '5'
|
|
2841
|
-
* cancelled) = terminal. */
|
|
2842
|
-
_applyTestOrder(frontId, sessionId, orderRef, instrumentId, isOpen, isLong, status, limitPrice, volTotal, volTraded) {
|
|
2843
|
-
this.native._applyTestOrder(frontId, sessionId, orderRef, instrumentId, isOpen, isLong, status, limitPrice, volTotal, volTraded);
|
|
2844
|
-
}
|
|
2845
3065
|
/**
|
|
2846
3066
|
* Arm a latency-critical trigger: when `md` sees the condition, the order is
|
|
2847
3067
|
* sent from C++ on the callback thread (through this Trader's risk gate),
|
|
@@ -2972,6 +3192,7 @@ var FunctionCode;
|
|
|
2972
3192
|
FunctionCode2["ParkedOrderAction"] = "D";
|
|
2973
3193
|
FunctionCode2["SyncOTP"] = "E";
|
|
2974
3194
|
FunctionCode2["DeleteOrder"] = "F";
|
|
3195
|
+
FunctionCode2["ExitEmergency"] = "G";
|
|
2975
3196
|
})(FunctionCode || (FunctionCode = {}));
|
|
2976
3197
|
var BrokerFunctionCode;
|
|
2977
3198
|
(function(BrokerFunctionCode2) {
|
|
@@ -3030,6 +3251,7 @@ var BrokerFunctionCode;
|
|
|
3030
3251
|
BrokerFunctionCode2["QryPosiLimit"] = "V";
|
|
3031
3252
|
BrokerFunctionCode2["FBSign"] = "W";
|
|
3032
3253
|
BrokerFunctionCode2["FBAccount"] = "X";
|
|
3254
|
+
BrokerFunctionCode2["RcvSMSCode"] = "Y";
|
|
3033
3255
|
})(BrokerFunctionCode || (BrokerFunctionCode = {}));
|
|
3034
3256
|
var OrderActionStatus;
|
|
3035
3257
|
(function(OrderActionStatus2) {
|
|
@@ -3195,6 +3417,9 @@ var ForceCloseReason;
|
|
|
3195
3417
|
ForceCloseReason2["Other"] = "6";
|
|
3196
3418
|
ForceCloseReason2["PersonDeliv"] = "7";
|
|
3197
3419
|
ForceCloseReason2["Notverifycapital"] = "8";
|
|
3420
|
+
ForceCloseReason2["LocalLackDeposit"] = "9";
|
|
3421
|
+
ForceCloseReason2["LocalViolationNocheck"] = "a";
|
|
3422
|
+
ForceCloseReason2["LocalViolation"] = "b";
|
|
3198
3423
|
})(ForceCloseReason || (ForceCloseReason = {}));
|
|
3199
3424
|
var OrderType;
|
|
3200
3425
|
(function(OrderType2) {
|
|
@@ -3288,6 +3513,7 @@ var InstrumentStatusType;
|
|
|
3288
3513
|
InstrumentStatusType2["AuctionBalance"] = "4";
|
|
3289
3514
|
InstrumentStatusType2["AuctionMatch"] = "5";
|
|
3290
3515
|
InstrumentStatusType2["Closed"] = "6";
|
|
3516
|
+
InstrumentStatusType2["TransactionProcessing"] = "7";
|
|
3291
3517
|
})(InstrumentStatusType || (InstrumentStatusType = {}));
|
|
3292
3518
|
var InstStatusEnterReason;
|
|
3293
3519
|
(function(InstStatusEnterReason2) {
|
|
@@ -3402,6 +3628,13 @@ var TradeParamID;
|
|
|
3402
3628
|
TradeParamID2["MinPwdLen"] = "O";
|
|
3403
3629
|
TradeParamID2["LoginFailMaxNumForIP"] = "U";
|
|
3404
3630
|
TradeParamID2["PasswordPeriod"] = "V";
|
|
3631
|
+
TradeParamID2["PwdHistoryCmp"] = "X";
|
|
3632
|
+
TradeParamID2["TranferChkProperty"] = "i";
|
|
3633
|
+
TradeParamID2["TradeChkPhase"] = "j";
|
|
3634
|
+
TradeParamID2["TradeChkPriceVol"] = "k";
|
|
3635
|
+
TradeParamID2["NewBESMarginAlgo"] = "l";
|
|
3636
|
+
TradeParamID2["IsDceFutCloseFrozen"] = "m";
|
|
3637
|
+
TradeParamID2["UseSMSVerify"] = "n";
|
|
3405
3638
|
})(TradeParamID || (TradeParamID = {}));
|
|
3406
3639
|
var FileID;
|
|
3407
3640
|
(function(FileID2) {
|
|
@@ -3703,6 +3936,7 @@ var UserEventType;
|
|
|
3703
3936
|
UserEventType2["SubmitSysInfo"] = "7";
|
|
3704
3937
|
UserEventType2["Transfer"] = "8";
|
|
3705
3938
|
UserEventType2["Other"] = "9";
|
|
3939
|
+
UserEventType2["UpdateTradingAccountPassword"] = "a";
|
|
3706
3940
|
})(UserEventType || (UserEventType = {}));
|
|
3707
3941
|
var CloseStyle;
|
|
3708
3942
|
(function(CloseStyle2) {
|
|
@@ -5142,6 +5376,62 @@ var ProdChangeFlag;
|
|
|
5142
5376
|
ProdChangeFlag2["OnlyFrozen"] = "1";
|
|
5143
5377
|
ProdChangeFlag2["PositionChange"] = "2";
|
|
5144
5378
|
})(ProdChangeFlag || (ProdChangeFlag = {}));
|
|
5379
|
+
var PwdRcdSrc;
|
|
5380
|
+
(function(PwdRcdSrc2) {
|
|
5381
|
+
PwdRcdSrc2["Init"] = "0";
|
|
5382
|
+
PwdRcdSrc2["Sync"] = "1";
|
|
5383
|
+
PwdRcdSrc2["UserUpd"] = "2";
|
|
5384
|
+
PwdRcdSrc2["SuperUserUpd"] = "3";
|
|
5385
|
+
PwdRcdSrc2["SecUpd"] = "4";
|
|
5386
|
+
})(PwdRcdSrc || (PwdRcdSrc = {}));
|
|
5387
|
+
var AddrSrvMode;
|
|
5388
|
+
(function(AddrSrvMode2) {
|
|
5389
|
+
AddrSrvMode2["Trade"] = "0";
|
|
5390
|
+
AddrSrvMode2["MarketData"] = "1";
|
|
5391
|
+
AddrSrvMode2["Other"] = "2";
|
|
5392
|
+
})(AddrSrvMode || (AddrSrvMode = {}));
|
|
5393
|
+
var AddrVer;
|
|
5394
|
+
(function(AddrVer2) {
|
|
5395
|
+
AddrVer2["V4"] = "0";
|
|
5396
|
+
AddrVer2["V6"] = "1";
|
|
5397
|
+
})(AddrVer || (AddrVer = {}));
|
|
5398
|
+
var TGSessionQryStatusType;
|
|
5399
|
+
(function(TGSessionQryStatusType2) {
|
|
5400
|
+
TGSessionQryStatusType2["QryIdle"] = "1";
|
|
5401
|
+
TGSessionQryStatusType2["QryBusy"] = "2";
|
|
5402
|
+
})(TGSessionQryStatusType || (TGSessionQryStatusType = {}));
|
|
5403
|
+
var OffsetType;
|
|
5404
|
+
(function(OffsetType2) {
|
|
5405
|
+
OffsetType2["OPT_OFFSET"] = "0";
|
|
5406
|
+
OffsetType2["FUT_OFFSET"] = "1";
|
|
5407
|
+
OffsetType2["EXEC_OFFSET"] = "2";
|
|
5408
|
+
OffsetType2["PERFORM_OFFSET"] = "3";
|
|
5409
|
+
})(OffsetType || (OffsetType = {}));
|
|
5410
|
+
var ApplySrc;
|
|
5411
|
+
(function(ApplySrc2) {
|
|
5412
|
+
ApplySrc2["Trade"] = "0";
|
|
5413
|
+
ApplySrc2["Member"] = "1";
|
|
5414
|
+
})(ApplySrc || (ApplySrc = {}));
|
|
5415
|
+
var ApplyStatus;
|
|
5416
|
+
(function(ApplyStatus2) {
|
|
5417
|
+
ApplyStatus2["Unknown"] = "a";
|
|
5418
|
+
ApplyStatus2["Canceled"] = "0";
|
|
5419
|
+
ApplyStatus2["Suspended"] = "1";
|
|
5420
|
+
ApplyStatus2["Accepted"] = "3";
|
|
5421
|
+
})(ApplyStatus || (ApplyStatus = {}));
|
|
5422
|
+
var CmbType;
|
|
5423
|
+
(function(CmbType2) {
|
|
5424
|
+
CmbType2["SPZ"] = "0";
|
|
5425
|
+
CmbType2["SPD"] = "1";
|
|
5426
|
+
CmbType2["IPS"] = "2";
|
|
5427
|
+
CmbType2["BUL"] = "3";
|
|
5428
|
+
CmbType2["BER"] = "4";
|
|
5429
|
+
CmbType2["BLT"] = "5";
|
|
5430
|
+
CmbType2["BRT"] = "6";
|
|
5431
|
+
CmbType2["STD"] = "7";
|
|
5432
|
+
CmbType2["STG"] = "8";
|
|
5433
|
+
CmbType2["PRT"] = "9";
|
|
5434
|
+
})(CmbType || (CmbType = {}));
|
|
5145
5435
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5146
5436
|
0 && (module.exports = {
|
|
5147
5437
|
AMLCheckStatus,
|
|
@@ -5153,6 +5443,8 @@ var ProdChangeFlag;
|
|
|
5153
5443
|
ActionFlag,
|
|
5154
5444
|
ActionType,
|
|
5155
5445
|
ActiveType,
|
|
5446
|
+
AddrSrvMode,
|
|
5447
|
+
AddrVer,
|
|
5156
5448
|
AlgoType,
|
|
5157
5449
|
Algorithm,
|
|
5158
5450
|
AllWithoutTrade,
|
|
@@ -5161,6 +5453,8 @@ var ProdChangeFlag;
|
|
|
5161
5453
|
AmlDateType,
|
|
5162
5454
|
AppType,
|
|
5163
5455
|
ApplyOperateID,
|
|
5456
|
+
ApplySrc,
|
|
5457
|
+
ApplyStatus,
|
|
5164
5458
|
ApplyStatusID,
|
|
5165
5459
|
ApplyType,
|
|
5166
5460
|
AssetmgrClientType,
|
|
@@ -5208,6 +5502,7 @@ var ProdChangeFlag;
|
|
|
5208
5502
|
ClientType,
|
|
5209
5503
|
CloseDealType,
|
|
5210
5504
|
CloseStyle,
|
|
5505
|
+
CmbType,
|
|
5211
5506
|
CodeSourceType,
|
|
5212
5507
|
CombDirection,
|
|
5213
5508
|
CombinationType,
|
|
@@ -5334,6 +5629,7 @@ var ProdChangeFlag;
|
|
|
5334
5629
|
OTPType,
|
|
5335
5630
|
OffsetFlag,
|
|
5336
5631
|
OffsetFlagEn,
|
|
5632
|
+
OffsetType,
|
|
5337
5633
|
OpenLimitControlLevel,
|
|
5338
5634
|
OpenOrDestroy,
|
|
5339
5635
|
OptSelfCloseFlag,
|
|
@@ -5373,6 +5669,7 @@ var ProdChangeFlag;
|
|
|
5373
5669
|
ProtocalID,
|
|
5374
5670
|
PublishStatus,
|
|
5375
5671
|
PwdFlag,
|
|
5672
|
+
PwdRcdSrc,
|
|
5376
5673
|
QueryInvestorRange,
|
|
5377
5674
|
QuestionType,
|
|
5378
5675
|
RCAMSCombinationType,
|
|
@@ -5430,6 +5727,7 @@ var ProdChangeFlag;
|
|
|
5430
5727
|
SystemParamID,
|
|
5431
5728
|
SystemStatus,
|
|
5432
5729
|
SystemType,
|
|
5730
|
+
TGSessionQryStatusType,
|
|
5433
5731
|
TemplateType,
|
|
5434
5732
|
TimeCondition,
|
|
5435
5733
|
TimeRange,
|