/* AUTO-GENERATED by scripts/codegen/generate-trader.mjs. Do not edit. */
import { CtpClient } from "../client.js";
import { STRUCT_ID } from "./structs.gen.js";
export var TraderEvent;
(function (TraderEvent) {
    TraderEvent["FrontConnected"] = "front-connected";
    TraderEvent["FrontDisconnected"] = "front-disconnected";
    TraderEvent["HeartBeatWarning"] = "heart-beat-warning";
    TraderEvent["RspAuthenticate"] = "rsp-authenticate";
    TraderEvent["RtnPrivateSeqNo"] = "rtn-private-seq-no";
    TraderEvent["RspUserLogin"] = "rsp-user-login";
    TraderEvent["RspUserLogout"] = "rsp-user-logout";
    TraderEvent["RspUserPasswordUpdate"] = "rsp-user-password-update";
    TraderEvent["RspTradingAccountPasswordUpdate"] = "rsp-trading-account-password-update";
    TraderEvent["RspUserAuthMethod"] = "rsp-user-auth-method";
    TraderEvent["RspGenUserCaptcha"] = "rsp-gen-user-captcha";
    TraderEvent["RspGenUserText"] = "rsp-gen-user-text";
    TraderEvent["RspOrderInsert"] = "rsp-order-insert";
    TraderEvent["RspParkedOrderInsert"] = "rsp-parked-order-insert";
    TraderEvent["RspParkedOrderAction"] = "rsp-parked-order-action";
    TraderEvent["RspOrderAction"] = "rsp-order-action";
    TraderEvent["RspQryMaxOrderVolume"] = "rsp-qry-max-order-volume";
    TraderEvent["RspSettlementInfoConfirm"] = "rsp-settlement-info-confirm";
    TraderEvent["RspRemoveParkedOrder"] = "rsp-remove-parked-order";
    TraderEvent["RspRemoveParkedOrderAction"] = "rsp-remove-parked-order-action";
    TraderEvent["RspExecOrderInsert"] = "rsp-exec-order-insert";
    TraderEvent["RspExecOrderAction"] = "rsp-exec-order-action";
    TraderEvent["RspForQuoteInsert"] = "rsp-for-quote-insert";
    TraderEvent["RspQuoteInsert"] = "rsp-quote-insert";
    TraderEvent["RspQuoteAction"] = "rsp-quote-action";
    TraderEvent["RspBatchOrderAction"] = "rsp-batch-order-action";
    TraderEvent["RspOptionSelfCloseInsert"] = "rsp-option-self-close-insert";
    TraderEvent["RspOptionSelfCloseAction"] = "rsp-option-self-close-action";
    TraderEvent["RspCombActionInsert"] = "rsp-comb-action-insert";
    TraderEvent["RspQryOrder"] = "rsp-qry-order";
    TraderEvent["RspQryTrade"] = "rsp-qry-trade";
    TraderEvent["RspQryInvestorPosition"] = "rsp-qry-investor-position";
    TraderEvent["RspQryTradingAccount"] = "rsp-qry-trading-account";
    TraderEvent["RspQryInvestor"] = "rsp-qry-investor";
    TraderEvent["RspQryTradingCode"] = "rsp-qry-trading-code";
    TraderEvent["RspQryInstrumentMarginRate"] = "rsp-qry-instrument-margin-rate";
    TraderEvent["RspQryInstrumentCommissionRate"] = "rsp-qry-instrument-commission-rate";
    TraderEvent["RspQryUserSession"] = "rsp-qry-user-session";
    TraderEvent["RspQryExchange"] = "rsp-qry-exchange";
    TraderEvent["RspQryProduct"] = "rsp-qry-product";
    TraderEvent["RspQryInstrument"] = "rsp-qry-instrument";
    TraderEvent["RspQryDepthMarketData"] = "rsp-qry-depth-market-data";
    TraderEvent["RspQryTraderOffer"] = "rsp-qry-trader-offer";
    TraderEvent["RspQrySettlementInfo"] = "rsp-qry-settlement-info";
    TraderEvent["RspQryTransferBank"] = "rsp-qry-transfer-bank";
    TraderEvent["RspQryInvestorPositionDetail"] = "rsp-qry-investor-position-detail";
    TraderEvent["RspQryNotice"] = "rsp-qry-notice";
    TraderEvent["RspQrySettlementInfoConfirm"] = "rsp-qry-settlement-info-confirm";
    TraderEvent["RspQryInvestorPositionCombineDetail"] = "rsp-qry-investor-position-combine-detail";
    TraderEvent["RspQryCFMMCTradingAccountKey"] = "rsp-qry-cfmmc-trading-account-key";
    TraderEvent["RspQryEWarrantOffset"] = "rsp-qry-e-warrant-offset";
    TraderEvent["RspQryInvestorProductGroupMargin"] = "rsp-qry-investor-product-group-margin";
    TraderEvent["RspQryExchangeMarginRate"] = "rsp-qry-exchange-margin-rate";
    TraderEvent["RspQryExchangeMarginRateAdjust"] = "rsp-qry-exchange-margin-rate-adjust";
    TraderEvent["RspQryExchangeRate"] = "rsp-qry-exchange-rate";
    TraderEvent["RspQrySecAgentACIDMap"] = "rsp-qry-sec-agent-acid-map";
    TraderEvent["RspQryProductExchRate"] = "rsp-qry-product-exch-rate";
    TraderEvent["RspQryProductGroup"] = "rsp-qry-product-group";
    TraderEvent["RspQryMMInstrumentCommissionRate"] = "rsp-qry-mm-instrument-commission-rate";
    TraderEvent["RspQryMMOptionInstrCommRate"] = "rsp-qry-mm-option-instr-comm-rate";
    TraderEvent["RspQryInstrumentOrderCommRate"] = "rsp-qry-instrument-order-comm-rate";
    TraderEvent["RspQrySecAgentTradingAccount"] = "rsp-qry-sec-agent-trading-account";
    TraderEvent["RspQrySecAgentCheckMode"] = "rsp-qry-sec-agent-check-mode";
    TraderEvent["RspQrySecAgentTradeInfo"] = "rsp-qry-sec-agent-trade-info";
    TraderEvent["RspQryOptionInstrTradeCost"] = "rsp-qry-option-instr-trade-cost";
    TraderEvent["RspQryOptionInstrCommRate"] = "rsp-qry-option-instr-comm-rate";
    TraderEvent["RspQryExecOrder"] = "rsp-qry-exec-order";
    TraderEvent["RspQryForQuote"] = "rsp-qry-for-quote";
    TraderEvent["RspQryQuote"] = "rsp-qry-quote";
    TraderEvent["RspQryOptionSelfClose"] = "rsp-qry-option-self-close";
    TraderEvent["RspQryInvestUnit"] = "rsp-qry-invest-unit";
    TraderEvent["RspQryCombInstrumentGuard"] = "rsp-qry-comb-instrument-guard";
    TraderEvent["RspQryCombAction"] = "rsp-qry-comb-action";
    TraderEvent["RspQryTransferSerial"] = "rsp-qry-transfer-serial";
    TraderEvent["RspQryAccountregister"] = "rsp-qry-accountregister";
    TraderEvent["RspError"] = "rsp-error";
    TraderEvent["RtnOrder"] = "rtn-order";
    TraderEvent["RtnTrade"] = "rtn-trade";
    TraderEvent["ErrRtnOrderInsert"] = "err-rtn-order-insert";
    TraderEvent["ErrRtnOrderAction"] = "err-rtn-order-action";
    TraderEvent["RtnInstrumentStatus"] = "rtn-instrument-status";
    TraderEvent["RtnBulletin"] = "rtn-bulletin";
    TraderEvent["RtnTradingNotice"] = "rtn-trading-notice";
    TraderEvent["RtnErrorConditionalOrder"] = "rtn-error-conditional-order";
    TraderEvent["RtnExecOrder"] = "rtn-exec-order";
    TraderEvent["ErrRtnExecOrderInsert"] = "err-rtn-exec-order-insert";
    TraderEvent["ErrRtnExecOrderAction"] = "err-rtn-exec-order-action";
    TraderEvent["ErrRtnForQuoteInsert"] = "err-rtn-for-quote-insert";
    TraderEvent["RtnQuote"] = "rtn-quote";
    TraderEvent["ErrRtnQuoteInsert"] = "err-rtn-quote-insert";
    TraderEvent["ErrRtnQuoteAction"] = "err-rtn-quote-action";
    TraderEvent["RtnForQuoteRsp"] = "rtn-for-quote-rsp";
    TraderEvent["RtnCFMMCTradingAccountToken"] = "rtn-cfmmc-trading-account-token";
    TraderEvent["ErrRtnBatchOrderAction"] = "err-rtn-batch-order-action";
    TraderEvent["RtnOptionSelfClose"] = "rtn-option-self-close";
    TraderEvent["ErrRtnOptionSelfCloseInsert"] = "err-rtn-option-self-close-insert";
    TraderEvent["ErrRtnOptionSelfCloseAction"] = "err-rtn-option-self-close-action";
    TraderEvent["RtnCombAction"] = "rtn-comb-action";
    TraderEvent["ErrRtnCombActionInsert"] = "err-rtn-comb-action-insert";
    TraderEvent["RspQryContractBank"] = "rsp-qry-contract-bank";
    TraderEvent["RspQryParkedOrder"] = "rsp-qry-parked-order";
    TraderEvent["RspQryParkedOrderAction"] = "rsp-qry-parked-order-action";
    TraderEvent["RspQryTradingNotice"] = "rsp-qry-trading-notice";
    TraderEvent["RspQryBrokerTradingParams"] = "rsp-qry-broker-trading-params";
    TraderEvent["RspQryBrokerTradingAlgos"] = "rsp-qry-broker-trading-algos";
    TraderEvent["RspQueryCFMMCTradingAccountToken"] = "rsp-query-cfmmc-trading-account-token";
    TraderEvent["RtnFromBankToFutureByBank"] = "rtn-from-bank-to-future-by-bank";
    TraderEvent["RtnFromFutureToBankByBank"] = "rtn-from-future-to-bank-by-bank";
    TraderEvent["RtnRepealFromBankToFutureByBank"] = "rtn-repeal-from-bank-to-future-by-bank";
    TraderEvent["RtnRepealFromFutureToBankByBank"] = "rtn-repeal-from-future-to-bank-by-bank";
    TraderEvent["RtnFromBankToFutureByFuture"] = "rtn-from-bank-to-future-by-future";
    TraderEvent["RtnFromFutureToBankByFuture"] = "rtn-from-future-to-bank-by-future";
    TraderEvent["RtnRepealFromBankToFutureByFutureManual"] = "rtn-repeal-from-bank-to-future-by-future-manual";
    TraderEvent["RtnRepealFromFutureToBankByFutureManual"] = "rtn-repeal-from-future-to-bank-by-future-manual";
    TraderEvent["RtnQueryBankBalanceByFuture"] = "rtn-query-bank-balance-by-future";
    TraderEvent["ErrRtnBankToFutureByFuture"] = "err-rtn-bank-to-future-by-future";
    TraderEvent["ErrRtnFutureToBankByFuture"] = "err-rtn-future-to-bank-by-future";
    TraderEvent["ErrRtnRepealBankToFutureByFutureManual"] = "err-rtn-repeal-bank-to-future-by-future-manual";
    TraderEvent["ErrRtnRepealFutureToBankByFutureManual"] = "err-rtn-repeal-future-to-bank-by-future-manual";
    TraderEvent["ErrRtnQueryBankBalanceByFuture"] = "err-rtn-query-bank-balance-by-future";
    TraderEvent["RtnRepealFromBankToFutureByFuture"] = "rtn-repeal-from-bank-to-future-by-future";
    TraderEvent["RtnRepealFromFutureToBankByFuture"] = "rtn-repeal-from-future-to-bank-by-future";
    TraderEvent["RspFromBankToFutureByFuture"] = "rsp-from-bank-to-future-by-future";
    TraderEvent["RspFromFutureToBankByFuture"] = "rsp-from-future-to-bank-by-future";
    TraderEvent["RspQueryBankAccountMoneyByFuture"] = "rsp-query-bank-account-money-by-future";
    TraderEvent["RtnOpenAccountByBank"] = "rtn-open-account-by-bank";
    TraderEvent["RtnCancelAccountByBank"] = "rtn-cancel-account-by-bank";
    TraderEvent["RtnChangeAccountByBank"] = "rtn-change-account-by-bank";
    TraderEvent["RspQryClassifiedInstrument"] = "rsp-qry-classified-instrument";
    TraderEvent["RspQryCombPromotionParam"] = "rsp-qry-comb-promotion-param";
    TraderEvent["RspQryRiskSettleInvstPosition"] = "rsp-qry-risk-settle-invst-position";
    TraderEvent["RspQryRiskSettleProductStatus"] = "rsp-qry-risk-settle-product-status";
    TraderEvent["RspQrySPBMFutureParameter"] = "rsp-qry-spbm-future-parameter";
    TraderEvent["RspQrySPBMOptionParameter"] = "rsp-qry-spbm-option-parameter";
    TraderEvent["RspQrySPBMIntraParameter"] = "rsp-qry-spbm-intra-parameter";
    TraderEvent["RspQrySPBMInterParameter"] = "rsp-qry-spbm-inter-parameter";
    TraderEvent["RspQrySPBMPortfDefinition"] = "rsp-qry-spbm-portf-definition";
    TraderEvent["RspQrySPBMInvestorPortfDef"] = "rsp-qry-spbm-investor-portf-def";
    TraderEvent["RspQryInvestorPortfMarginRatio"] = "rsp-qry-investor-portf-margin-ratio";
    TraderEvent["RspQryInvestorProdSPBMDetail"] = "rsp-qry-investor-prod-spbm-detail";
    TraderEvent["RspQryInvestorCommoditySPMMMargin"] = "rsp-qry-investor-commodity-spmm-margin";
    TraderEvent["RspQryInvestorCommodityGroupSPMMMargin"] = "rsp-qry-investor-commodity-group-spmm-margin";
    TraderEvent["RspQrySPMMInstParam"] = "rsp-qry-spmm-inst-param";
    TraderEvent["RspQrySPMMProductParam"] = "rsp-qry-spmm-product-param";
    TraderEvent["RspQrySPBMAddOnInterParameter"] = "rsp-qry-spbm-add-on-inter-parameter";
    TraderEvent["RspQryRCAMSCombProductInfo"] = "rsp-qry-rcams-comb-product-info";
    TraderEvent["RspQryRCAMSInstrParameter"] = "rsp-qry-rcams-instr-parameter";
    TraderEvent["RspQryRCAMSIntraParameter"] = "rsp-qry-rcams-intra-parameter";
    TraderEvent["RspQryRCAMSInterParameter"] = "rsp-qry-rcams-inter-parameter";
    TraderEvent["RspQryRCAMSShortOptAdjustParam"] = "rsp-qry-rcams-short-opt-adjust-param";
    TraderEvent["RspQryRCAMSInvestorCombPosition"] = "rsp-qry-rcams-investor-comb-position";
    TraderEvent["RspQryInvestorProdRCAMSMargin"] = "rsp-qry-investor-prod-rcams-margin";
    TraderEvent["RspQryRULEInstrParameter"] = "rsp-qry-rule-instr-parameter";
    TraderEvent["RspQryRULEIntraParameter"] = "rsp-qry-rule-intra-parameter";
    TraderEvent["RspQryRULEInterParameter"] = "rsp-qry-rule-inter-parameter";
    TraderEvent["RspQryInvestorProdRULEMargin"] = "rsp-qry-investor-prod-rule-margin";
    TraderEvent["RspQryInvestorPortfSetting"] = "rsp-qry-investor-portf-setting";
    TraderEvent["RspQryInvestorInfoCommRec"] = "rsp-qry-investor-info-comm-rec";
    TraderEvent["RspQryCombLeg"] = "rsp-qry-comb-leg";
    TraderEvent["RspOffsetSetting"] = "rsp-offset-setting";
    TraderEvent["RspCancelOffsetSetting"] = "rsp-cancel-offset-setting";
    TraderEvent["RtnOffsetSetting"] = "rtn-offset-setting";
    TraderEvent["ErrRtnOffsetSetting"] = "err-rtn-offset-setting";
    TraderEvent["ErrRtnCancelOffsetSetting"] = "err-rtn-cancel-offset-setting";
    TraderEvent["RspQryOffsetSetting"] = "rsp-qry-offset-setting";
    TraderEvent["RspGenSMSCode"] = "rsp-gen-sms-code";
    TraderEvent["RspSpdApply"] = "rsp-spd-apply";
    TraderEvent["RspSpdApplyAction"] = "rsp-spd-apply-action";
    TraderEvent["RspQrySpdApply"] = "rsp-qry-spd-apply";
    TraderEvent["RtnSpdApply"] = "rtn-spd-apply";
    TraderEvent["ErrRtnSpdApply"] = "err-rtn-spd-apply";
    TraderEvent["ErrRtnSpdApplyAction"] = "err-rtn-spd-apply-action";
    TraderEvent["RspHedgeCfm"] = "rsp-hedge-cfm";
    TraderEvent["RspHedgeCfmAction"] = "rsp-hedge-cfm-action";
    TraderEvent["RspQryHedgeCfm"] = "rsp-qry-hedge-cfm";
    TraderEvent["RtnHedgeCfm"] = "rtn-hedge-cfm";
    TraderEvent["ErrRtnHedgeCfm"] = "err-rtn-hedge-cfm";
    TraderEvent["ErrRtnHedgeCfmAction"] = "err-rtn-hedge-cfm-action";
})(TraderEvent || (TraderEvent = {}));
export const TRADER_EVENTS = new Map([
    [8192 + 1, "front-connected"],
    [8192 + 2, "front-disconnected"],
    [8192 + 3, "heart-beat-warning"],
    [8192 + 4, "rsp-authenticate"],
    [8192 + 5, "rtn-private-seq-no"],
    [8192 + 6, "rsp-user-login"],
    [8192 + 7, "rsp-user-logout"],
    [8192 + 8, "rsp-user-password-update"],
    [8192 + 9, "rsp-trading-account-password-update"],
    [8192 + 10, "rsp-user-auth-method"],
    [8192 + 11, "rsp-gen-user-captcha"],
    [8192 + 12, "rsp-gen-user-text"],
    [8192 + 13, "rsp-order-insert"],
    [8192 + 14, "rsp-parked-order-insert"],
    [8192 + 15, "rsp-parked-order-action"],
    [8192 + 16, "rsp-order-action"],
    [8192 + 17, "rsp-qry-max-order-volume"],
    [8192 + 18, "rsp-settlement-info-confirm"],
    [8192 + 19, "rsp-remove-parked-order"],
    [8192 + 20, "rsp-remove-parked-order-action"],
    [8192 + 21, "rsp-exec-order-insert"],
    [8192 + 22, "rsp-exec-order-action"],
    [8192 + 23, "rsp-for-quote-insert"],
    [8192 + 24, "rsp-quote-insert"],
    [8192 + 25, "rsp-quote-action"],
    [8192 + 26, "rsp-batch-order-action"],
    [8192 + 27, "rsp-option-self-close-insert"],
    [8192 + 28, "rsp-option-self-close-action"],
    [8192 + 29, "rsp-comb-action-insert"],
    [8192 + 30, "rsp-qry-order"],
    [8192 + 31, "rsp-qry-trade"],
    [8192 + 32, "rsp-qry-investor-position"],
    [8192 + 33, "rsp-qry-trading-account"],
    [8192 + 34, "rsp-qry-investor"],
    [8192 + 35, "rsp-qry-trading-code"],
    [8192 + 36, "rsp-qry-instrument-margin-rate"],
    [8192 + 37, "rsp-qry-instrument-commission-rate"],
    [8192 + 38, "rsp-qry-user-session"],
    [8192 + 39, "rsp-qry-exchange"],
    [8192 + 40, "rsp-qry-product"],
    [8192 + 41, "rsp-qry-instrument"],
    [8192 + 42, "rsp-qry-depth-market-data"],
    [8192 + 43, "rsp-qry-trader-offer"],
    [8192 + 44, "rsp-qry-settlement-info"],
    [8192 + 45, "rsp-qry-transfer-bank"],
    [8192 + 46, "rsp-qry-investor-position-detail"],
    [8192 + 47, "rsp-qry-notice"],
    [8192 + 48, "rsp-qry-settlement-info-confirm"],
    [8192 + 49, "rsp-qry-investor-position-combine-detail"],
    [8192 + 50, "rsp-qry-cfmmc-trading-account-key"],
    [8192 + 51, "rsp-qry-e-warrant-offset"],
    [8192 + 52, "rsp-qry-investor-product-group-margin"],
    [8192 + 53, "rsp-qry-exchange-margin-rate"],
    [8192 + 54, "rsp-qry-exchange-margin-rate-adjust"],
    [8192 + 55, "rsp-qry-exchange-rate"],
    [8192 + 56, "rsp-qry-sec-agent-acid-map"],
    [8192 + 57, "rsp-qry-product-exch-rate"],
    [8192 + 58, "rsp-qry-product-group"],
    [8192 + 59, "rsp-qry-mm-instrument-commission-rate"],
    [8192 + 60, "rsp-qry-mm-option-instr-comm-rate"],
    [8192 + 61, "rsp-qry-instrument-order-comm-rate"],
    [8192 + 62, "rsp-qry-sec-agent-trading-account"],
    [8192 + 63, "rsp-qry-sec-agent-check-mode"],
    [8192 + 64, "rsp-qry-sec-agent-trade-info"],
    [8192 + 65, "rsp-qry-option-instr-trade-cost"],
    [8192 + 66, "rsp-qry-option-instr-comm-rate"],
    [8192 + 67, "rsp-qry-exec-order"],
    [8192 + 68, "rsp-qry-for-quote"],
    [8192 + 69, "rsp-qry-quote"],
    [8192 + 70, "rsp-qry-option-self-close"],
    [8192 + 71, "rsp-qry-invest-unit"],
    [8192 + 72, "rsp-qry-comb-instrument-guard"],
    [8192 + 73, "rsp-qry-comb-action"],
    [8192 + 74, "rsp-qry-transfer-serial"],
    [8192 + 75, "rsp-qry-accountregister"],
    [8192 + 76, "rsp-error"],
    [8192 + 77, "rtn-order"],
    [8192 + 78, "rtn-trade"],
    [8192 + 79, "err-rtn-order-insert"],
    [8192 + 80, "err-rtn-order-action"],
    [8192 + 81, "rtn-instrument-status"],
    [8192 + 82, "rtn-bulletin"],
    [8192 + 83, "rtn-trading-notice"],
    [8192 + 84, "rtn-error-conditional-order"],
    [8192 + 85, "rtn-exec-order"],
    [8192 + 86, "err-rtn-exec-order-insert"],
    [8192 + 87, "err-rtn-exec-order-action"],
    [8192 + 88, "err-rtn-for-quote-insert"],
    [8192 + 89, "rtn-quote"],
    [8192 + 90, "err-rtn-quote-insert"],
    [8192 + 91, "err-rtn-quote-action"],
    [8192 + 92, "rtn-for-quote-rsp"],
    [8192 + 93, "rtn-cfmmc-trading-account-token"],
    [8192 + 94, "err-rtn-batch-order-action"],
    [8192 + 95, "rtn-option-self-close"],
    [8192 + 96, "err-rtn-option-self-close-insert"],
    [8192 + 97, "err-rtn-option-self-close-action"],
    [8192 + 98, "rtn-comb-action"],
    [8192 + 99, "err-rtn-comb-action-insert"],
    [8192 + 100, "rsp-qry-contract-bank"],
    [8192 + 101, "rsp-qry-parked-order"],
    [8192 + 102, "rsp-qry-parked-order-action"],
    [8192 + 103, "rsp-qry-trading-notice"],
    [8192 + 104, "rsp-qry-broker-trading-params"],
    [8192 + 105, "rsp-qry-broker-trading-algos"],
    [8192 + 106, "rsp-query-cfmmc-trading-account-token"],
    [8192 + 107, "rtn-from-bank-to-future-by-bank"],
    [8192 + 108, "rtn-from-future-to-bank-by-bank"],
    [8192 + 109, "rtn-repeal-from-bank-to-future-by-bank"],
    [8192 + 110, "rtn-repeal-from-future-to-bank-by-bank"],
    [8192 + 111, "rtn-from-bank-to-future-by-future"],
    [8192 + 112, "rtn-from-future-to-bank-by-future"],
    [8192 + 113, "rtn-repeal-from-bank-to-future-by-future-manual"],
    [8192 + 114, "rtn-repeal-from-future-to-bank-by-future-manual"],
    [8192 + 115, "rtn-query-bank-balance-by-future"],
    [8192 + 116, "err-rtn-bank-to-future-by-future"],
    [8192 + 117, "err-rtn-future-to-bank-by-future"],
    [8192 + 118, "err-rtn-repeal-bank-to-future-by-future-manual"],
    [8192 + 119, "err-rtn-repeal-future-to-bank-by-future-manual"],
    [8192 + 120, "err-rtn-query-bank-balance-by-future"],
    [8192 + 121, "rtn-repeal-from-bank-to-future-by-future"],
    [8192 + 122, "rtn-repeal-from-future-to-bank-by-future"],
    [8192 + 123, "rsp-from-bank-to-future-by-future"],
    [8192 + 124, "rsp-from-future-to-bank-by-future"],
    [8192 + 125, "rsp-query-bank-account-money-by-future"],
    [8192 + 126, "rtn-open-account-by-bank"],
    [8192 + 127, "rtn-cancel-account-by-bank"],
    [8192 + 128, "rtn-change-account-by-bank"],
    [8192 + 129, "rsp-qry-classified-instrument"],
    [8192 + 130, "rsp-qry-comb-promotion-param"],
    [8192 + 131, "rsp-qry-risk-settle-invst-position"],
    [8192 + 132, "rsp-qry-risk-settle-product-status"],
    [8192 + 133, "rsp-qry-spbm-future-parameter"],
    [8192 + 134, "rsp-qry-spbm-option-parameter"],
    [8192 + 135, "rsp-qry-spbm-intra-parameter"],
    [8192 + 136, "rsp-qry-spbm-inter-parameter"],
    [8192 + 137, "rsp-qry-spbm-portf-definition"],
    [8192 + 138, "rsp-qry-spbm-investor-portf-def"],
    [8192 + 139, "rsp-qry-investor-portf-margin-ratio"],
    [8192 + 140, "rsp-qry-investor-prod-spbm-detail"],
    [8192 + 141, "rsp-qry-investor-commodity-spmm-margin"],
    [8192 + 142, "rsp-qry-investor-commodity-group-spmm-margin"],
    [8192 + 143, "rsp-qry-spmm-inst-param"],
    [8192 + 144, "rsp-qry-spmm-product-param"],
    [8192 + 145, "rsp-qry-spbm-add-on-inter-parameter"],
    [8192 + 146, "rsp-qry-rcams-comb-product-info"],
    [8192 + 147, "rsp-qry-rcams-instr-parameter"],
    [8192 + 148, "rsp-qry-rcams-intra-parameter"],
    [8192 + 149, "rsp-qry-rcams-inter-parameter"],
    [8192 + 150, "rsp-qry-rcams-short-opt-adjust-param"],
    [8192 + 151, "rsp-qry-rcams-investor-comb-position"],
    [8192 + 152, "rsp-qry-investor-prod-rcams-margin"],
    [8192 + 153, "rsp-qry-rule-instr-parameter"],
    [8192 + 154, "rsp-qry-rule-intra-parameter"],
    [8192 + 155, "rsp-qry-rule-inter-parameter"],
    [8192 + 156, "rsp-qry-investor-prod-rule-margin"],
    [8192 + 157, "rsp-qry-investor-portf-setting"],
    [8192 + 158, "rsp-qry-investor-info-comm-rec"],
    [8192 + 159, "rsp-qry-comb-leg"],
    [8192 + 160, "rsp-offset-setting"],
    [8192 + 161, "rsp-cancel-offset-setting"],
    [8192 + 162, "rtn-offset-setting"],
    [8192 + 163, "err-rtn-offset-setting"],
    [8192 + 164, "err-rtn-cancel-offset-setting"],
    [8192 + 165, "rsp-qry-offset-setting"],
    [8192 + 166, "rsp-gen-sms-code"],
    [8192 + 167, "rsp-spd-apply"],
    [8192 + 168, "rsp-spd-apply-action"],
    [8192 + 169, "rsp-qry-spd-apply"],
    [8192 + 170, "rtn-spd-apply"],
    [8192 + 171, "err-rtn-spd-apply"],
    [8192 + 172, "err-rtn-spd-apply-action"],
    [8192 + 173, "rsp-hedge-cfm"],
    [8192 + 174, "rsp-hedge-cfm-action"],
    [8192 + 175, "rsp-qry-hedge-cfm"],
    [8192 + 176, "rtn-hedge-cfm"],
    [8192 + 177, "err-rtn-hedge-cfm"],
    [8192 + 178, "err-rtn-hedge-cfm-action"],
]);
/* eslint-disable @typescript-eslint/no-explicit-any */
export class TraderBase extends CtpClient {
    reqAuthenticate(req = {}) {
        return this.request((id) => this.native._req(1, this.encode(STRUCT_ID.ReqAuthenticate, req), id), true);
    }
    reqUserLogin(req = {}) {
        return this.request((id) => this.native._req(2, this.encode(STRUCT_ID.ReqUserLogin, req), id), true);
    }
    reqUserLogout(req = {}) {
        return this.request((id) => this.native._req(3, this.encode(STRUCT_ID.UserLogout, req), id), true);
    }
    reqUserPasswordUpdate(req = {}) {
        return this.request((id) => this.native._req(4, this.encode(STRUCT_ID.UserPasswordUpdate, req), id), true);
    }
    reqTradingAccountPasswordUpdate(req = {}) {
        return this.request((id) => this.native._req(5, this.encode(STRUCT_ID.TradingAccountPasswordUpdate, req), id), true);
    }
    reqUserAuthMethod(req = {}) {
        return this.request((id) => this.native._req(6, this.encode(STRUCT_ID.ReqUserAuthMethod, req), id), true);
    }
    reqGenUserCaptcha(req = {}) {
        return this.request((id) => this.native._req(7, this.encode(STRUCT_ID.ReqGenUserCaptcha, req), id), true);
    }
    reqGenUserText(req = {}) {
        return this.request((id) => this.native._req(8, this.encode(STRUCT_ID.ReqGenUserText, req), id), true);
    }
    reqUserLoginWithCaptcha(req = {}) {
        return this.request((id) => this.native._req(9, this.encode(STRUCT_ID.ReqUserLoginWithCaptcha, req), id), true);
    }
    reqUserLoginWithText(req = {}) {
        return this.request((id) => this.native._req(10, this.encode(STRUCT_ID.ReqUserLoginWithText, req), id), true);
    }
    reqUserLoginWithOtp(req = {}) {
        return this.request((id) => this.native._req(11, this.encode(STRUCT_ID.ReqUserLoginWithOTP, req), id), true);
    }
    reqOrderInsert(req = {}) {
        return this.submit((id) => this.native._req(12, this.encode(STRUCT_ID.InputOrder, req), id));
    }
    reqParkedOrderInsert(req = {}) {
        return this.request((id) => this.native._req(13, this.encode(STRUCT_ID.ParkedOrder, req), id), true);
    }
    reqParkedOrderAction(req = {}) {
        return this.request((id) => this.native._req(14, this.encode(STRUCT_ID.ParkedOrderAction, req), id), true);
    }
    reqOrderAction(req = {}) {
        return this.submit((id) => this.native._req(15, this.encode(STRUCT_ID.InputOrderAction, req), id));
    }
    reqQryMaxOrderVolume(req = {}) {
        return this.request((id) => this.native._req(16, this.encode(STRUCT_ID.QryMaxOrderVolume, req), id), false);
    }
    reqSettlementInfoConfirm(req = {}) {
        return this.request((id) => this.native._req(17, this.encode(STRUCT_ID.SettlementInfoConfirm, req), id), true);
    }
    reqRemoveParkedOrder(req = {}) {
        return this.request((id) => this.native._req(18, this.encode(STRUCT_ID.RemoveParkedOrder, req), id), true);
    }
    reqRemoveParkedOrderAction(req = {}) {
        return this.request((id) => this.native._req(19, this.encode(STRUCT_ID.RemoveParkedOrderAction, req), id), true);
    }
    reqExecOrderInsert(req = {}) {
        return this.submit((id) => this.native._req(20, this.encode(STRUCT_ID.InputExecOrder, req), id));
    }
    reqExecOrderAction(req = {}) {
        return this.submit((id) => this.native._req(21, this.encode(STRUCT_ID.InputExecOrderAction, req), id));
    }
    reqForQuoteInsert(req = {}) {
        return this.submit((id) => this.native._req(22, this.encode(STRUCT_ID.InputForQuote, req), id));
    }
    reqQuoteInsert(req = {}) {
        return this.submit((id) => this.native._req(23, this.encode(STRUCT_ID.InputQuote, req), id));
    }
    reqQuoteAction(req = {}) {
        return this.submit((id) => this.native._req(24, this.encode(STRUCT_ID.InputQuoteAction, req), id));
    }
    reqBatchOrderAction(req = {}) {
        return this.submit((id) => this.native._req(25, this.encode(STRUCT_ID.InputBatchOrderAction, req), id));
    }
    reqOptionSelfCloseInsert(req = {}) {
        return this.submit((id) => this.native._req(26, this.encode(STRUCT_ID.InputOptionSelfClose, req), id));
    }
    reqOptionSelfCloseAction(req = {}) {
        return this.submit((id) => this.native._req(27, this.encode(STRUCT_ID.InputOptionSelfCloseAction, req), id));
    }
    reqCombActionInsert(req = {}) {
        return this.submit((id) => this.native._req(28, this.encode(STRUCT_ID.InputCombAction, req), id));
    }
    reqQryOrder(req = {}) {
        return this.request((id) => this.native._req(29, this.encode(STRUCT_ID.QryOrder, req), id), false);
    }
    reqQryTrade(req = {}) {
        return this.request((id) => this.native._req(30, this.encode(STRUCT_ID.QryTrade, req), id), false);
    }
    reqQryInvestorPosition(req = {}) {
        return this.request((id) => this.native._req(31, this.encode(STRUCT_ID.QryInvestorPosition, req), id), false);
    }
    reqQryTradingAccount(req = {}) {
        return this.request((id) => this.native._req(32, this.encode(STRUCT_ID.QryTradingAccount, req), id), false);
    }
    reqQryInvestor(req = {}) {
        return this.request((id) => this.native._req(33, this.encode(STRUCT_ID.QryInvestor, req), id), false);
    }
    reqQryTradingCode(req = {}) {
        return this.request((id) => this.native._req(34, this.encode(STRUCT_ID.QryTradingCode, req), id), false);
    }
    reqQryInstrumentMarginRate(req = {}) {
        return this.request((id) => this.native._req(35, this.encode(STRUCT_ID.QryInstrumentMarginRate, req), id), false);
    }
    reqQryInstrumentCommissionRate(req = {}) {
        return this.request((id) => this.native._req(36, this.encode(STRUCT_ID.QryInstrumentCommissionRate, req), id), false);
    }
    reqQryUserSession(req = {}) {
        return this.request((id) => this.native._req(37, this.encode(STRUCT_ID.QryUserSession, req), id), false);
    }
    reqQryExchange(req = {}) {
        return this.request((id) => this.native._req(38, this.encode(STRUCT_ID.QryExchange, req), id), false);
    }
    reqQryProduct(req = {}) {
        return this.request((id) => this.native._req(39, this.encode(STRUCT_ID.QryProduct, req), id), false);
    }
    reqQryInstrument(req = {}) {
        return this.request((id) => this.native._req(40, this.encode(STRUCT_ID.QryInstrument, req), id), false);
    }
    reqQryDepthMarketData(req = {}) {
        return this.request((id) => this.native._req(41, this.encode(STRUCT_ID.QryDepthMarketData, req), id), false);
    }
    reqQryTraderOffer(req = {}) {
        return this.request((id) => this.native._req(42, this.encode(STRUCT_ID.QryTraderOffer, req), id), false);
    }
    reqQrySettlementInfo(req = {}) {
        return this.request((id) => this.native._req(43, this.encode(STRUCT_ID.QrySettlementInfo, req), id), false);
    }
    reqQryTransferBank(req = {}) {
        return this.request((id) => this.native._req(44, this.encode(STRUCT_ID.QryTransferBank, req), id), false);
    }
    reqQryInvestorPositionDetail(req = {}) {
        return this.request((id) => this.native._req(45, this.encode(STRUCT_ID.QryInvestorPositionDetail, req), id), false);
    }
    reqQryNotice(req = {}) {
        return this.request((id) => this.native._req(46, this.encode(STRUCT_ID.QryNotice, req), id), false);
    }
    reqQrySettlementInfoConfirm(req = {}) {
        return this.request((id) => this.native._req(47, this.encode(STRUCT_ID.QrySettlementInfoConfirm, req), id), false);
    }
    reqQryInvestorPositionCombineDetail(req = {}) {
        return this.request((id) => this.native._req(48, this.encode(STRUCT_ID.QryInvestorPositionCombineDetail, req), id), false);
    }
    reqQryCfmmcTradingAccountKey(req = {}) {
        return this.request((id) => this.native._req(49, this.encode(STRUCT_ID.QryCFMMCTradingAccountKey, req), id), false);
    }
    reqQryEWarrantOffset(req = {}) {
        return this.request((id) => this.native._req(50, this.encode(STRUCT_ID.QryEWarrantOffset, req), id), false);
    }
    reqQryInvestorProductGroupMargin(req = {}) {
        return this.request((id) => this.native._req(51, this.encode(STRUCT_ID.QryInvestorProductGroupMargin, req), id), false);
    }
    reqQryExchangeMarginRate(req = {}) {
        return this.request((id) => this.native._req(52, this.encode(STRUCT_ID.QryExchangeMarginRate, req), id), false);
    }
    reqQryExchangeMarginRateAdjust(req = {}) {
        return this.request((id) => this.native._req(53, this.encode(STRUCT_ID.QryExchangeMarginRateAdjust, req), id), false);
    }
    reqQryExchangeRate(req = {}) {
        return this.request((id) => this.native._req(54, this.encode(STRUCT_ID.QryExchangeRate, req), id), false);
    }
    reqQrySecAgentAcidMap(req = {}) {
        return this.request((id) => this.native._req(55, this.encode(STRUCT_ID.QrySecAgentACIDMap, req), id), false);
    }
    reqQryProductExchRate(req = {}) {
        return this.request((id) => this.native._req(56, this.encode(STRUCT_ID.QryProductExchRate, req), id), false);
    }
    reqQryProductGroup(req = {}) {
        return this.request((id) => this.native._req(57, this.encode(STRUCT_ID.QryProductGroup, req), id), false);
    }
    reqQryMmInstrumentCommissionRate(req = {}) {
        return this.request((id) => this.native._req(58, this.encode(STRUCT_ID.QryMMInstrumentCommissionRate, req), id), false);
    }
    reqQryMmOptionInstrCommRate(req = {}) {
        return this.request((id) => this.native._req(59, this.encode(STRUCT_ID.QryMMOptionInstrCommRate, req), id), false);
    }
    reqQryInstrumentOrderCommRate(req = {}) {
        return this.request((id) => this.native._req(60, this.encode(STRUCT_ID.QryInstrumentOrderCommRate, req), id), false);
    }
    reqQrySecAgentTradingAccount(req = {}) {
        return this.request((id) => this.native._req(61, this.encode(STRUCT_ID.QryTradingAccount, req), id), false);
    }
    reqQrySecAgentCheckMode(req = {}) {
        return this.request((id) => this.native._req(62, this.encode(STRUCT_ID.QrySecAgentCheckMode, req), id), false);
    }
    reqQrySecAgentTradeInfo(req = {}) {
        return this.request((id) => this.native._req(63, this.encode(STRUCT_ID.QrySecAgentTradeInfo, req), id), false);
    }
    reqQryOptionInstrTradeCost(req = {}) {
        return this.request((id) => this.native._req(64, this.encode(STRUCT_ID.QryOptionInstrTradeCost, req), id), false);
    }
    reqQryOptionInstrCommRate(req = {}) {
        return this.request((id) => this.native._req(65, this.encode(STRUCT_ID.QryOptionInstrCommRate, req), id), false);
    }
    reqQryExecOrder(req = {}) {
        return this.request((id) => this.native._req(66, this.encode(STRUCT_ID.QryExecOrder, req), id), false);
    }
    reqQryForQuote(req = {}) {
        return this.request((id) => this.native._req(67, this.encode(STRUCT_ID.QryForQuote, req), id), false);
    }
    reqQryQuote(req = {}) {
        return this.request((id) => this.native._req(68, this.encode(STRUCT_ID.QryQuote, req), id), false);
    }
    reqQryOptionSelfClose(req = {}) {
        return this.request((id) => this.native._req(69, this.encode(STRUCT_ID.QryOptionSelfClose, req), id), false);
    }
    reqQryInvestUnit(req = {}) {
        return this.request((id) => this.native._req(70, this.encode(STRUCT_ID.QryInvestUnit, req), id), false);
    }
    reqQryCombInstrumentGuard(req = {}) {
        return this.request((id) => this.native._req(71, this.encode(STRUCT_ID.QryCombInstrumentGuard, req), id), false);
    }
    reqQryCombAction(req = {}) {
        return this.request((id) => this.native._req(72, this.encode(STRUCT_ID.QryCombAction, req), id), false);
    }
    reqQryTransferSerial(req = {}) {
        return this.request((id) => this.native._req(73, this.encode(STRUCT_ID.QryTransferSerial, req), id), false);
    }
    reqQryAccountregister(req = {}) {
        return this.request((id) => this.native._req(74, this.encode(STRUCT_ID.QryAccountregister, req), id), false);
    }
    reqQryContractBank(req = {}) {
        return this.request((id) => this.native._req(75, this.encode(STRUCT_ID.QryContractBank, req), id), false);
    }
    reqQryParkedOrder(req = {}) {
        return this.request((id) => this.native._req(76, this.encode(STRUCT_ID.QryParkedOrder, req), id), false);
    }
    reqQryParkedOrderAction(req = {}) {
        return this.request((id) => this.native._req(77, this.encode(STRUCT_ID.QryParkedOrderAction, req), id), false);
    }
    reqQryTradingNotice(req = {}) {
        return this.request((id) => this.native._req(78, this.encode(STRUCT_ID.QryTradingNotice, req), id), false);
    }
    reqQryBrokerTradingParams(req = {}) {
        return this.request((id) => this.native._req(79, this.encode(STRUCT_ID.QryBrokerTradingParams, req), id), false);
    }
    reqQryBrokerTradingAlgos(req = {}) {
        return this.request((id) => this.native._req(80, this.encode(STRUCT_ID.QryBrokerTradingAlgos, req), id), false);
    }
    reqQueryCfmmcTradingAccountToken(req = {}) {
        return this.request((id) => this.native._req(81, this.encode(STRUCT_ID.QueryCFMMCTradingAccountToken, req), id), true);
    }
    reqFromBankToFutureByFuture(req = {}) {
        return this.request((id) => this.native._req(82, this.encode(STRUCT_ID.ReqTransfer, req), id), true);
    }
    reqFromFutureToBankByFuture(req = {}) {
        return this.request((id) => this.native._req(83, this.encode(STRUCT_ID.ReqTransfer, req), id), true);
    }
    reqQueryBankAccountMoneyByFuture(req = {}) {
        return this.request((id) => this.native._req(84, this.encode(STRUCT_ID.ReqQueryAccount, req), id), true);
    }
    reqQryClassifiedInstrument(req = {}) {
        return this.request((id) => this.native._req(85, this.encode(STRUCT_ID.QryClassifiedInstrument, req), id), false);
    }
    reqQryCombPromotionParam(req = {}) {
        return this.request((id) => this.native._req(86, this.encode(STRUCT_ID.QryCombPromotionParam, req), id), false);
    }
    reqQryRiskSettleInvstPosition(req = {}) {
        return this.request((id) => this.native._req(87, this.encode(STRUCT_ID.QryRiskSettleInvstPosition, req), id), false);
    }
    reqQryRiskSettleProductStatus(req = {}) {
        return this.request((id) => this.native._req(88, this.encode(STRUCT_ID.QryRiskSettleProductStatus, req), id), false);
    }
    reqQrySpbmFutureParameter(req = {}) {
        return this.request((id) => this.native._req(89, this.encode(STRUCT_ID.QrySPBMFutureParameter, req), id), false);
    }
    reqQrySpbmOptionParameter(req = {}) {
        return this.request((id) => this.native._req(90, this.encode(STRUCT_ID.QrySPBMOptionParameter, req), id), false);
    }
    reqQrySpbmIntraParameter(req = {}) {
        return this.request((id) => this.native._req(91, this.encode(STRUCT_ID.QrySPBMIntraParameter, req), id), false);
    }
    reqQrySpbmInterParameter(req = {}) {
        return this.request((id) => this.native._req(92, this.encode(STRUCT_ID.QrySPBMInterParameter, req), id), false);
    }
    reqQrySpbmPortfDefinition(req = {}) {
        return this.request((id) => this.native._req(93, this.encode(STRUCT_ID.QrySPBMPortfDefinition, req), id), false);
    }
    reqQrySpbmInvestorPortfDef(req = {}) {
        return this.request((id) => this.native._req(94, this.encode(STRUCT_ID.QrySPBMInvestorPortfDef, req), id), false);
    }
    reqQryInvestorPortfMarginRatio(req = {}) {
        return this.request((id) => this.native._req(95, this.encode(STRUCT_ID.QryInvestorPortfMarginRatio, req), id), false);
    }
    reqQryInvestorProdSpbmDetail(req = {}) {
        return this.request((id) => this.native._req(96, this.encode(STRUCT_ID.QryInvestorProdSPBMDetail, req), id), false);
    }
    reqQryInvestorCommoditySpmmMargin(req = {}) {
        return this.request((id) => this.native._req(97, this.encode(STRUCT_ID.QryInvestorCommoditySPMMMargin, req), id), false);
    }
    reqQryInvestorCommodityGroupSpmmMargin(req = {}) {
        return this.request((id) => this.native._req(98, this.encode(STRUCT_ID.QryInvestorCommodityGroupSPMMMargin, req), id), false);
    }
    reqQrySpmmInstParam(req = {}) {
        return this.request((id) => this.native._req(99, this.encode(STRUCT_ID.QrySPMMInstParam, req), id), false);
    }
    reqQrySpmmProductParam(req = {}) {
        return this.request((id) => this.native._req(100, this.encode(STRUCT_ID.QrySPMMProductParam, req), id), false);
    }
    reqQrySpbmAddOnInterParameter(req = {}) {
        return this.request((id) => this.native._req(101, this.encode(STRUCT_ID.QrySPBMAddOnInterParameter, req), id), false);
    }
    reqQryRcamsCombProductInfo(req = {}) {
        return this.request((id) => this.native._req(102, this.encode(STRUCT_ID.QryRCAMSCombProductInfo, req), id), false);
    }
    reqQryRcamsInstrParameter(req = {}) {
        return this.request((id) => this.native._req(103, this.encode(STRUCT_ID.QryRCAMSInstrParameter, req), id), false);
    }
    reqQryRcamsIntraParameter(req = {}) {
        return this.request((id) => this.native._req(104, this.encode(STRUCT_ID.QryRCAMSIntraParameter, req), id), false);
    }
    reqQryRcamsInterParameter(req = {}) {
        return this.request((id) => this.native._req(105, this.encode(STRUCT_ID.QryRCAMSInterParameter, req), id), false);
    }
    reqQryRcamsShortOptAdjustParam(req = {}) {
        return this.request((id) => this.native._req(106, this.encode(STRUCT_ID.QryRCAMSShortOptAdjustParam, req), id), false);
    }
    reqQryRcamsInvestorCombPosition(req = {}) {
        return this.request((id) => this.native._req(107, this.encode(STRUCT_ID.QryRCAMSInvestorCombPosition, req), id), false);
    }
    reqQryInvestorProdRcamsMargin(req = {}) {
        return this.request((id) => this.native._req(108, this.encode(STRUCT_ID.QryInvestorProdRCAMSMargin, req), id), false);
    }
    reqQryRuleInstrParameter(req = {}) {
        return this.request((id) => this.native._req(109, this.encode(STRUCT_ID.QryRULEInstrParameter, req), id), false);
    }
    reqQryRuleIntraParameter(req = {}) {
        return this.request((id) => this.native._req(110, this.encode(STRUCT_ID.QryRULEIntraParameter, req), id), false);
    }
    reqQryRuleInterParameter(req = {}) {
        return this.request((id) => this.native._req(111, this.encode(STRUCT_ID.QryRULEInterParameter, req), id), false);
    }
    reqQryInvestorProdRuleMargin(req = {}) {
        return this.request((id) => this.native._req(112, this.encode(STRUCT_ID.QryInvestorProdRULEMargin, req), id), false);
    }
    reqQryInvestorPortfSetting(req = {}) {
        return this.request((id) => this.native._req(113, this.encode(STRUCT_ID.QryInvestorPortfSetting, req), id), false);
    }
    reqQryInvestorInfoCommRec(req = {}) {
        return this.request((id) => this.native._req(114, this.encode(STRUCT_ID.QryInvestorInfoCommRec, req), id), false);
    }
    reqQryCombLeg(req = {}) {
        return this.request((id) => this.native._req(115, this.encode(STRUCT_ID.QryCombLeg, req), id), false);
    }
    reqOffsetSetting(req = {}) {
        return this.request((id) => this.native._req(116, this.encode(STRUCT_ID.InputOffsetSetting, req), id), true);
    }
    reqCancelOffsetSetting(req = {}) {
        return this.request((id) => this.native._req(117, this.encode(STRUCT_ID.InputOffsetSetting, req), id), true);
    }
    reqQryOffsetSetting(req = {}) {
        return this.request((id) => this.native._req(118, this.encode(STRUCT_ID.QryOffsetSetting, req), id), false);
    }
    reqGenSmsCode(req = {}) {
        return this.request((id) => this.native._req(119, this.encode(STRUCT_ID.ReqGenSMSCode, req), id), true);
    }
    reqSpdApply(req = {}) {
        return this.request((id) => this.native._req(120, this.encode(STRUCT_ID.InputSpdApply, req), id), true);
    }
    reqSpdApplyAction(req = {}) {
        return this.request((id) => this.native._req(121, this.encode(STRUCT_ID.InputSpdApplyAction, req), id), true);
    }
    reqQrySpdApply(req = {}) {
        return this.request((id) => this.native._req(122, this.encode(STRUCT_ID.QrySpdApply, req), id), false);
    }
    reqHedgeCfm(req = {}) {
        return this.request((id) => this.native._req(123, this.encode(STRUCT_ID.InputHedgeCfm, req), id), true);
    }
    reqHedgeCfmAction(req = {}) {
        return this.request((id) => this.native._req(124, this.encode(STRUCT_ID.InputHedgeCfmAction, req), id), true);
    }
    reqQryHedgeCfm(req = {}) {
        return this.request((id) => this.native._req(125, this.encode(STRUCT_ID.QryHedgeCfm, req), id), false);
    }
}
//# sourceMappingURL=trader.gen.js.map