├── .gitignore ├── README.md ├── build.gradle.kts ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── log └── seize.txt ├── rt-common ├── build.gradle.kts └── src │ └── main │ └── kotlin │ └── xyz │ └── redtorch │ └── common │ ├── cache │ ├── CacheService.kt │ └── impl │ │ └── CacheServiceImpl.kt │ ├── constant │ └── Constant.kt │ ├── enumeration │ └── ConnectionStatusEnum.kt │ ├── event │ ├── Event.kt │ ├── EventObserver.kt │ ├── EventTypeEnum.kt │ └── service │ │ ├── EventService.kt │ │ └── impl │ │ └── EventServiceImpl.kt │ ├── storage │ ├── enumeration │ │ └── GatewayTypeEnum.kt │ └── po │ │ ├── BasePo.kt │ │ ├── GatewayAdapterCtpSetting.kt │ │ ├── GatewayAdapterIbSetting.kt │ │ ├── GatewaySetting.kt │ │ ├── SlaveNode.kt │ │ └── User.kt │ ├── sync │ ├── dto │ │ ├── Action.kt │ │ ├── Auth.kt │ │ ├── BaseMirror.kt │ │ ├── CancelOrder.kt │ │ ├── GatewayStatus.kt │ │ ├── InsertOrder.kt │ │ ├── Notice.kt │ │ ├── OrderRtnPatch.kt │ │ ├── PortfolioMirror.kt │ │ ├── QuoteMirror.kt │ │ ├── SlaveNodeReportMirror.kt │ │ ├── SlaveNodeSettingMirror.kt │ │ ├── TickRtnPatch.kt │ │ ├── TradeRtnPatch.kt │ │ └── TransactionMirror.kt │ └── enumeration │ │ ├── ActionEnum.kt │ │ └── InfoLevelEnum.kt │ ├── trade │ ├── client │ │ └── service │ │ │ ├── TradeClientSyncService.kt │ │ │ ├── TradeClientSyncServiceCallBack.kt │ │ │ └── impl │ │ │ └── TradeClientSyncServiceImpl.kt │ ├── dto │ │ ├── Account.kt │ │ ├── Contract.kt │ │ ├── Order.kt │ │ ├── Position.kt │ │ ├── Tick.kt │ │ └── Trade.kt │ └── enumeration │ │ ├── ActionFlagEnum.kt │ │ ├── CombinationTypeEnum.kt │ │ ├── ContingentConditionEnum.kt │ │ ├── CurrencyEnum.kt │ │ ├── DirectionEnum.kt │ │ ├── ExchangeEnum.kt │ │ ├── ForceCloseReasonEnum.kt │ │ ├── HedgeFlagEnum.kt │ │ ├── OffsetFlagEnum.kt │ │ ├── OptionsTypeEnum.kt │ │ ├── OrderActionStatusEnum.kt │ │ ├── OrderPriceTypeEnum.kt │ │ ├── OrderSourceEnum.kt │ │ ├── OrderStatusEnum.kt │ │ ├── OrderSubmitStatusEnum.kt │ │ ├── OrderTypeEnum.kt │ │ ├── PositionDirectionEnum.kt │ │ ├── PositionTypeEnum.kt │ │ ├── PriceSourceEnum.kt │ │ ├── ProductClassEnum.kt │ │ ├── StrikeModeEnum.kt │ │ ├── TimeConditionEnum.kt │ │ ├── TradeTypeEnum.kt │ │ ├── TradingRightEnum.kt │ │ └── VolumeConditionEnum.kt │ ├── utils │ ├── CommonUtils.kt │ ├── JsonUtils.kt │ ├── Lz4Utils.kt │ ├── STD3DesUtils.kt │ └── ZookeeperUtils.kt │ └── web │ └── socket │ ├── WebSocketClient.kt │ └── WebSocketClientCallBack.kt ├── rt-desktop ├── build.gradle.kts └── src │ └── main │ ├── kotlin │ └── xyz │ │ └── redtorch │ │ └── desktop │ │ ├── RedTorchDesktopApplication.kt │ │ └── gui │ │ ├── bean │ │ ├── AccountFXBean.kt │ │ ├── OrderFXBean.kt │ │ ├── PositionFXBean.kt │ │ ├── TickFXBean.kt │ │ └── TradeFXBean.kt │ │ ├── state │ │ └── ViewState.kt │ │ ├── utils │ │ └── FXUtils.kt │ │ └── view │ │ ├── AccountTableView.kt │ │ ├── CombinationView.kt │ │ ├── ContractTableView.kt │ │ ├── DashboardView.kt │ │ ├── LoginView.kt │ │ ├── NoticeView.kt │ │ ├── OrderTableView.kt │ │ ├── PlaceOrderView.kt │ │ ├── PositionTableView.kt │ │ ├── QuoteTableView.kt │ │ ├── QuoteView.kt │ │ └── TradeTableView.kt │ └── resources │ ├── application.properties │ ├── fx │ └── style │ │ └── main.css │ └── logback-spring.xml ├── rt-gateway-api ├── build.gradle.kts └── src │ └── main │ └── kotlin │ └── xyz │ └── redtorch │ └── gateway │ ├── Gateway.kt │ └── GatewayAbstract.kt ├── rt-gateway-ctp ├── build.gradle.kts └── src │ └── main │ ├── java │ └── xyz │ │ └── redtorch │ │ └── gateway │ │ └── ctp │ │ ├── x64v6v3v19p1v │ │ └── api │ │ │ ├── CThostFtdcAccountPropertyField.java │ │ │ ├── CThostFtdcAccountregisterField.java │ │ │ ├── CThostFtdcAppIDAuthAssignField.java │ │ │ ├── CThostFtdcAuthForbiddenIPField.java │ │ │ ├── CThostFtdcAuthenticationInfoField.java │ │ │ ├── CThostFtdcBatchOrderActionField.java │ │ │ ├── CThostFtdcBrokerDepositField.java │ │ │ ├── CThostFtdcBrokerField.java │ │ │ ├── CThostFtdcBrokerSyncField.java │ │ │ ├── CThostFtdcBrokerTradingAlgosField.java │ │ │ ├── CThostFtdcBrokerTradingParamsField.java │ │ │ ├── CThostFtdcBrokerUserEventField.java │ │ │ ├── CThostFtdcBrokerUserField.java │ │ │ ├── CThostFtdcBrokerUserFunctionField.java │ │ │ ├── CThostFtdcBrokerUserOTPParamField.java │ │ │ ├── CThostFtdcBrokerUserPasswordField.java │ │ │ ├── CThostFtdcBrokerUserRightAssignField.java │ │ │ ├── CThostFtdcBrokerWithdrawAlgorithmField.java │ │ │ ├── CThostFtdcBulletinField.java │ │ │ ├── CThostFtdcCFMMCBrokerKeyField.java │ │ │ ├── CThostFtdcCFMMCTradingAccountKeyField.java │ │ │ ├── CThostFtdcCFMMCTradingAccountTokenField.java │ │ │ ├── CThostFtdcCancelAccountField.java │ │ │ ├── CThostFtdcChangeAccountField.java │ │ │ ├── CThostFtdcCombActionField.java │ │ │ ├── CThostFtdcCombInstrumentGuardField.java │ │ │ ├── CThostFtdcCombinationLegField.java │ │ │ ├── CThostFtdcCommPhaseField.java │ │ │ ├── CThostFtdcCommRateModelField.java │ │ │ ├── CThostFtdcContractBankField.java │ │ │ ├── CThostFtdcCurrDRIdentityField.java │ │ │ ├── CThostFtdcCurrTransferIdentityField.java │ │ │ ├── CThostFtdcCurrentTimeField.java │ │ │ ├── CThostFtdcDRTransferField.java │ │ │ ├── CThostFtdcDepartmentUserField.java │ │ │ ├── CThostFtdcDepositResultInformField.java │ │ │ ├── CThostFtdcDepthMarketDataField.java │ │ │ ├── CThostFtdcDiscountField.java │ │ │ ├── CThostFtdcDisseminationField.java │ │ │ ├── CThostFtdcEWarrantOffsetField.java │ │ │ ├── CThostFtdcErrExecOrderActionField.java │ │ │ ├── CThostFtdcErrExecOrderField.java │ │ │ ├── CThostFtdcErrOrderActionField.java │ │ │ ├── CThostFtdcErrOrderField.java │ │ │ ├── CThostFtdcErrorConditionalOrderField.java │ │ │ ├── CThostFtdcExchangeBatchOrderActionField.java │ │ │ ├── CThostFtdcExchangeCombActionField.java │ │ │ ├── CThostFtdcExchangeExecOrderActionField.java │ │ │ ├── CThostFtdcExchangeExecOrderField.java │ │ │ ├── CThostFtdcExchangeField.java │ │ │ ├── CThostFtdcExchangeForQuoteField.java │ │ │ ├── CThostFtdcExchangeMarginRateAdjustField.java │ │ │ ├── CThostFtdcExchangeMarginRateField.java │ │ │ ├── CThostFtdcExchangeOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcExchangeOptionSelfCloseField.java │ │ │ ├── CThostFtdcExchangeOrderActionErrorField.java │ │ │ ├── CThostFtdcExchangeOrderActionField.java │ │ │ ├── CThostFtdcExchangeOrderField.java │ │ │ ├── CThostFtdcExchangeOrderInsertErrorField.java │ │ │ ├── CThostFtdcExchangeQuoteActionField.java │ │ │ ├── CThostFtdcExchangeQuoteField.java │ │ │ ├── CThostFtdcExchangeRateField.java │ │ │ ├── CThostFtdcExchangeSequenceField.java │ │ │ ├── CThostFtdcExchangeTradeField.java │ │ │ ├── CThostFtdcExecOrderActionField.java │ │ │ ├── CThostFtdcExecOrderField.java │ │ │ ├── CThostFtdcFensUserInfoField.java │ │ │ ├── CThostFtdcForQuoteField.java │ │ │ ├── CThostFtdcForQuoteParamField.java │ │ │ ├── CThostFtdcForQuoteRspField.java │ │ │ ├── CThostFtdcForceUserLogoutField.java │ │ │ ├── CThostFtdcFrontStatusField.java │ │ │ ├── CThostFtdcFutureLimitPosiParamField.java │ │ │ ├── CThostFtdcFutureSignIOField.java │ │ │ ├── CThostFtdcIPListField.java │ │ │ ├── CThostFtdcIndexPriceField.java │ │ │ ├── CThostFtdcInputBatchOrderActionField.java │ │ │ ├── CThostFtdcInputCombActionField.java │ │ │ ├── CThostFtdcInputExecOrderActionField.java │ │ │ ├── CThostFtdcInputExecOrderField.java │ │ │ ├── CThostFtdcInputForQuoteField.java │ │ │ ├── CThostFtdcInputOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcInputOptionSelfCloseField.java │ │ │ ├── CThostFtdcInputOrderActionField.java │ │ │ ├── CThostFtdcInputOrderField.java │ │ │ ├── CThostFtdcInputQuoteActionField.java │ │ │ ├── CThostFtdcInputQuoteField.java │ │ │ ├── CThostFtdcInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcInstrumentField.java │ │ │ ├── CThostFtdcInstrumentMarginRateAdjustField.java │ │ │ ├── CThostFtdcInstrumentMarginRateField.java │ │ │ ├── CThostFtdcInstrumentMarginRateULField.java │ │ │ ├── CThostFtdcInstrumentOrderCommRateField.java │ │ │ ├── CThostFtdcInstrumentStatusField.java │ │ │ ├── CThostFtdcInstrumentTradingRightField.java │ │ │ ├── CThostFtdcInvestUnitField.java │ │ │ ├── CThostFtdcInvestorAccountField.java │ │ │ ├── CThostFtdcInvestorField.java │ │ │ ├── CThostFtdcInvestorGroupField.java │ │ │ ├── CThostFtdcInvestorPositionCombineDetailField.java │ │ │ ├── CThostFtdcInvestorPositionDetailField.java │ │ │ ├── CThostFtdcInvestorPositionField.java │ │ │ ├── CThostFtdcInvestorProductGroupMarginField.java │ │ │ ├── CThostFtdcInvestorWithdrawAlgorithmField.java │ │ │ ├── CThostFtdcLinkManField.java │ │ │ ├── CThostFtdcLoadSettlementInfoField.java │ │ │ ├── CThostFtdcLoginForbiddenIPField.java │ │ │ ├── CThostFtdcLoginForbiddenUserField.java │ │ │ ├── CThostFtdcLoginInfoField.java │ │ │ ├── CThostFtdcLogoutAllField.java │ │ │ ├── CThostFtdcMDTraderOfferField.java │ │ │ ├── CThostFtdcMMInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcMMOptionInstrCommRateField.java │ │ │ ├── CThostFtdcManualSyncBrokerUserOTPField.java │ │ │ ├── CThostFtdcMarginModelField.java │ │ │ ├── CThostFtdcMarketDataAsk23Field.java │ │ │ ├── CThostFtdcMarketDataAsk45Field.java │ │ │ ├── CThostFtdcMarketDataAveragePriceField.java │ │ │ ├── CThostFtdcMarketDataBaseField.java │ │ │ ├── CThostFtdcMarketDataBestPriceField.java │ │ │ ├── CThostFtdcMarketDataBid23Field.java │ │ │ ├── CThostFtdcMarketDataBid45Field.java │ │ │ ├── CThostFtdcMarketDataExchangeField.java │ │ │ ├── CThostFtdcMarketDataField.java │ │ │ ├── CThostFtdcMarketDataLastMatchField.java │ │ │ ├── CThostFtdcMarketDataStaticField.java │ │ │ ├── CThostFtdcMarketDataUpdateTimeField.java │ │ │ ├── CThostFtdcMdApi.java │ │ │ ├── CThostFtdcMdSpi.java │ │ │ ├── CThostFtdcMulticastGroupInfoField.java │ │ │ ├── CThostFtdcMulticastInstrumentField.java │ │ │ ├── CThostFtdcNoticeField.java │ │ │ ├── CThostFtdcNotifyFutureSignInField.java │ │ │ ├── CThostFtdcNotifyFutureSignOutField.java │ │ │ ├── CThostFtdcNotifyQueryAccountField.java │ │ │ ├── CThostFtdcNotifySyncKeyField.java │ │ │ ├── CThostFtdcOpenAccountField.java │ │ │ ├── CThostFtdcOptionInstrCommRateField.java │ │ │ ├── CThostFtdcOptionInstrDeltaField.java │ │ │ ├── CThostFtdcOptionInstrMarginAdjustField.java │ │ │ ├── CThostFtdcOptionInstrMiniMarginField.java │ │ │ ├── CThostFtdcOptionInstrTradeCostField.java │ │ │ ├── CThostFtdcOptionInstrTradingRightField.java │ │ │ ├── CThostFtdcOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcOptionSelfCloseField.java │ │ │ ├── CThostFtdcOrderActionField.java │ │ │ ├── CThostFtdcOrderField.java │ │ │ ├── CThostFtdcParkedOrderActionField.java │ │ │ ├── CThostFtdcParkedOrderField.java │ │ │ ├── CThostFtdcPartBrokerField.java │ │ │ ├── CThostFtdcPositionProfitAlgorithmField.java │ │ │ ├── CThostFtdcProductExchRateField.java │ │ │ ├── CThostFtdcProductField.java │ │ │ ├── CThostFtdcProductGroupField.java │ │ │ ├── CThostFtdcQryAccountregisterField.java │ │ │ ├── CThostFtdcQryAuthForbiddenIPField.java │ │ │ ├── CThostFtdcQryBatchOrderActionField.java │ │ │ ├── CThostFtdcQryBrokerField.java │ │ │ ├── CThostFtdcQryBrokerTradingAlgosField.java │ │ │ ├── CThostFtdcQryBrokerTradingParamsField.java │ │ │ ├── CThostFtdcQryBrokerUserEventField.java │ │ │ ├── CThostFtdcQryBrokerUserField.java │ │ │ ├── CThostFtdcQryBrokerUserFunctionField.java │ │ │ ├── CThostFtdcQryBulletinField.java │ │ │ ├── CThostFtdcQryCFMMCBrokerKeyField.java │ │ │ ├── CThostFtdcQryCFMMCTradingAccountKeyField.java │ │ │ ├── CThostFtdcQryCombActionField.java │ │ │ ├── CThostFtdcQryCombInstrumentGuardField.java │ │ │ ├── CThostFtdcQryCombinationLegField.java │ │ │ ├── CThostFtdcQryCommRateModelField.java │ │ │ ├── CThostFtdcQryContractBankField.java │ │ │ ├── CThostFtdcQryCurrDRIdentityField.java │ │ │ ├── CThostFtdcQryDepthMarketDataField.java │ │ │ ├── CThostFtdcQryEWarrantOffsetField.java │ │ │ ├── CThostFtdcQryErrExecOrderActionField.java │ │ │ ├── CThostFtdcQryErrExecOrderField.java │ │ │ ├── CThostFtdcQryErrOrderActionField.java │ │ │ ├── CThostFtdcQryErrOrderField.java │ │ │ ├── CThostFtdcQryExchangeCombActionField.java │ │ │ ├── CThostFtdcQryExchangeExecOrderActionField.java │ │ │ ├── CThostFtdcQryExchangeExecOrderField.java │ │ │ ├── CThostFtdcQryExchangeField.java │ │ │ ├── CThostFtdcQryExchangeForQuoteField.java │ │ │ ├── CThostFtdcQryExchangeMarginRateAdjustField.java │ │ │ ├── CThostFtdcQryExchangeMarginRateField.java │ │ │ ├── CThostFtdcQryExchangeOrderActionField.java │ │ │ ├── CThostFtdcQryExchangeOrderField.java │ │ │ ├── CThostFtdcQryExchangeQuoteActionField.java │ │ │ ├── CThostFtdcQryExchangeQuoteField.java │ │ │ ├── CThostFtdcQryExchangeRateField.java │ │ │ ├── CThostFtdcQryExchangeSequenceField.java │ │ │ ├── CThostFtdcQryExecOrderActionField.java │ │ │ ├── CThostFtdcQryExecOrderField.java │ │ │ ├── CThostFtdcQryForQuoteField.java │ │ │ ├── CThostFtdcQryForQuoteParamField.java │ │ │ ├── CThostFtdcQryFrontStatusField.java │ │ │ ├── CThostFtdcQryHisOrderField.java │ │ │ ├── CThostFtdcQryIPListField.java │ │ │ ├── CThostFtdcQryInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcQryInstrumentField.java │ │ │ ├── CThostFtdcQryInstrumentMarginRateField.java │ │ │ ├── CThostFtdcQryInstrumentOrderCommRateField.java │ │ │ ├── CThostFtdcQryInstrumentStatusField.java │ │ │ ├── CThostFtdcQryInstrumentTradingRightField.java │ │ │ ├── CThostFtdcQryInvestUnitField.java │ │ │ ├── CThostFtdcQryInvestorField.java │ │ │ ├── CThostFtdcQryInvestorGroupField.java │ │ │ ├── CThostFtdcQryInvestorPositionCombineDetailField.java │ │ │ ├── CThostFtdcQryInvestorPositionDetailField.java │ │ │ ├── CThostFtdcQryInvestorPositionField.java │ │ │ ├── CThostFtdcQryInvestorProductGroupMarginField.java │ │ │ ├── CThostFtdcQryLinkManField.java │ │ │ ├── CThostFtdcQryLoginForbiddenIPField.java │ │ │ ├── CThostFtdcQryLoginForbiddenUserField.java │ │ │ ├── CThostFtdcQryMDTraderOfferField.java │ │ │ ├── CThostFtdcQryMMInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcQryMMOptionInstrCommRateField.java │ │ │ ├── CThostFtdcQryMarginModelField.java │ │ │ ├── CThostFtdcQryMulticastInstrumentField.java │ │ │ ├── CThostFtdcQryNoticeField.java │ │ │ ├── CThostFtdcQryOptionInstrCommRateField.java │ │ │ ├── CThostFtdcQryOptionInstrTradeCostField.java │ │ │ ├── CThostFtdcQryOptionInstrTradingRightField.java │ │ │ ├── CThostFtdcQryOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcQryOptionSelfCloseField.java │ │ │ ├── CThostFtdcQryOrderActionField.java │ │ │ ├── CThostFtdcQryOrderField.java │ │ │ ├── CThostFtdcQryParkedOrderActionField.java │ │ │ ├── CThostFtdcQryParkedOrderField.java │ │ │ ├── CThostFtdcQryPartBrokerField.java │ │ │ ├── CThostFtdcQryProductExchRateField.java │ │ │ ├── CThostFtdcQryProductField.java │ │ │ ├── CThostFtdcQryProductGroupField.java │ │ │ ├── CThostFtdcQryQuoteActionField.java │ │ │ ├── CThostFtdcQryQuoteField.java │ │ │ ├── CThostFtdcQrySecAgentACIDMapField.java │ │ │ ├── CThostFtdcQrySecAgentCheckModeField.java │ │ │ ├── CThostFtdcQrySecAgentTradeInfoField.java │ │ │ ├── CThostFtdcQrySettlementInfoConfirmField.java │ │ │ ├── CThostFtdcQrySettlementInfoField.java │ │ │ ├── CThostFtdcQryStrikeOffsetField.java │ │ │ ├── CThostFtdcQrySuperUserField.java │ │ │ ├── CThostFtdcQrySuperUserFunctionField.java │ │ │ ├── CThostFtdcQrySyncDelaySwapField.java │ │ │ ├── CThostFtdcQrySyncDepositField.java │ │ │ ├── CThostFtdcQrySyncFundMortgageField.java │ │ │ ├── CThostFtdcQrySyncStatusField.java │ │ │ ├── CThostFtdcQryTradeField.java │ │ │ ├── CThostFtdcQryTraderField.java │ │ │ ├── CThostFtdcQryTraderOfferField.java │ │ │ ├── CThostFtdcQryTradingAccountField.java │ │ │ ├── CThostFtdcQryTradingCodeField.java │ │ │ ├── CThostFtdcQryTradingNoticeField.java │ │ │ ├── CThostFtdcQryTransferBankField.java │ │ │ ├── CThostFtdcQryTransferSerialField.java │ │ │ ├── CThostFtdcQryUserRightsAssignField.java │ │ │ ├── CThostFtdcQryUserSessionField.java │ │ │ ├── CThostFtdcQueryBrokerDepositField.java │ │ │ ├── CThostFtdcQueryCFMMCTradingAccountTokenField.java │ │ │ ├── CThostFtdcQueryFreqField.java │ │ │ ├── CThostFtdcQueryMaxOrderVolumeField.java │ │ │ ├── CThostFtdcQueryMaxOrderVolumeWithPriceField.java │ │ │ ├── CThostFtdcQuoteActionField.java │ │ │ ├── CThostFtdcQuoteField.java │ │ │ ├── CThostFtdcRemoveParkedOrderActionField.java │ │ │ ├── CThostFtdcRemoveParkedOrderField.java │ │ │ ├── CThostFtdcReqApiHandshakeField.java │ │ │ ├── CThostFtdcReqAuthenticateField.java │ │ │ ├── CThostFtdcReqCancelAccountField.java │ │ │ ├── CThostFtdcReqChangeAccountField.java │ │ │ ├── CThostFtdcReqDayEndFileReadyField.java │ │ │ ├── CThostFtdcReqFutureSignOutField.java │ │ │ ├── CThostFtdcReqGenUserCaptchaField.java │ │ │ ├── CThostFtdcReqGenUserTextField.java │ │ │ ├── CThostFtdcReqOpenAccountField.java │ │ │ ├── CThostFtdcReqQueryAccountField.java │ │ │ ├── CThostFtdcReqQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcReqRepealField.java │ │ │ ├── CThostFtdcReqSyncKeyField.java │ │ │ ├── CThostFtdcReqTransferField.java │ │ │ ├── CThostFtdcReqUserAuthMethodField.java │ │ │ ├── CThostFtdcReqUserLoginField.java │ │ │ ├── CThostFtdcReqUserLoginWithCaptchaField.java │ │ │ ├── CThostFtdcReqUserLoginWithOTPField.java │ │ │ ├── CThostFtdcReqUserLoginWithTextField.java │ │ │ ├── CThostFtdcReqVerifyApiKeyField.java │ │ │ ├── CThostFtdcReserveOpenAccountConfirmField.java │ │ │ ├── CThostFtdcReserveOpenAccountField.java │ │ │ ├── CThostFtdcReturnResultField.java │ │ │ ├── CThostFtdcRspApiHandshakeField.java │ │ │ ├── CThostFtdcRspAuthenticateField.java │ │ │ ├── CThostFtdcRspFutureSignInField.java │ │ │ ├── CThostFtdcRspFutureSignOutField.java │ │ │ ├── CThostFtdcRspGenUserCaptchaField.java │ │ │ ├── CThostFtdcRspGenUserTextField.java │ │ │ ├── CThostFtdcRspInfoField.java │ │ │ ├── CThostFtdcRspQueryAccountField.java │ │ │ ├── CThostFtdcRspQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcRspRepealField.java │ │ │ ├── CThostFtdcRspSyncKeyField.java │ │ │ ├── CThostFtdcRspTransferField.java │ │ │ ├── CThostFtdcRspUserAuthMethodField.java │ │ │ ├── CThostFtdcRspUserLogin2Field.java │ │ │ ├── CThostFtdcRspUserLoginField.java │ │ │ ├── CThostFtdcSecAgentACIDMapField.java │ │ │ ├── CThostFtdcSecAgentCheckModeField.java │ │ │ ├── CThostFtdcSecAgentTradeInfoField.java │ │ │ ├── CThostFtdcSettlementInfoConfirmField.java │ │ │ ├── CThostFtdcSettlementInfoField.java │ │ │ ├── CThostFtdcSettlementRefField.java │ │ │ ├── CThostFtdcSpecificInstrumentField.java │ │ │ ├── CThostFtdcStrikeOffsetField.java │ │ │ ├── CThostFtdcSuperUserField.java │ │ │ ├── CThostFtdcSuperUserFunctionField.java │ │ │ ├── CThostFtdcSyncDelaySwapField.java │ │ │ ├── CThostFtdcSyncDelaySwapFrozenField.java │ │ │ ├── CThostFtdcSyncDepositField.java │ │ │ ├── CThostFtdcSyncFundMortgageField.java │ │ │ ├── CThostFtdcSyncStatusField.java │ │ │ ├── CThostFtdcSyncingInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcSyncingInstrumentMarginRateField.java │ │ │ ├── CThostFtdcSyncingInstrumentTradingRightField.java │ │ │ ├── CThostFtdcSyncingInvestorField.java │ │ │ ├── CThostFtdcSyncingInvestorGroupField.java │ │ │ ├── CThostFtdcSyncingInvestorPositionField.java │ │ │ ├── CThostFtdcSyncingTradingAccountField.java │ │ │ ├── CThostFtdcSyncingTradingCodeField.java │ │ │ ├── CThostFtdcTradeField.java │ │ │ ├── CThostFtdcTradeParamField.java │ │ │ ├── CThostFtdcTraderApi.java │ │ │ ├── CThostFtdcTraderField.java │ │ │ ├── CThostFtdcTraderOfferField.java │ │ │ ├── CThostFtdcTraderSpi.java │ │ │ ├── CThostFtdcTradingAccountField.java │ │ │ ├── CThostFtdcTradingAccountPasswordField.java │ │ │ ├── CThostFtdcTradingAccountPasswordUpdateField.java │ │ │ ├── CThostFtdcTradingAccountPasswordUpdateV1Field.java │ │ │ ├── CThostFtdcTradingAccountReserveField.java │ │ │ ├── CThostFtdcTradingCodeField.java │ │ │ ├── CThostFtdcTradingNoticeField.java │ │ │ ├── CThostFtdcTradingNoticeInfoField.java │ │ │ ├── CThostFtdcTransferBankField.java │ │ │ ├── CThostFtdcTransferBankToFutureReqField.java │ │ │ ├── CThostFtdcTransferBankToFutureRspField.java │ │ │ ├── CThostFtdcTransferFutureToBankReqField.java │ │ │ ├── CThostFtdcTransferFutureToBankRspField.java │ │ │ ├── CThostFtdcTransferHeaderField.java │ │ │ ├── CThostFtdcTransferQryBankReqField.java │ │ │ ├── CThostFtdcTransferQryBankRspField.java │ │ │ ├── CThostFtdcTransferQryDetailReqField.java │ │ │ ├── CThostFtdcTransferQryDetailRspField.java │ │ │ ├── CThostFtdcTransferSerialField.java │ │ │ ├── CThostFtdcUserIPField.java │ │ │ ├── CThostFtdcUserLogoutField.java │ │ │ ├── CThostFtdcUserPasswordUpdateField.java │ │ │ ├── CThostFtdcUserRightField.java │ │ │ ├── CThostFtdcUserRightsAssignField.java │ │ │ ├── CThostFtdcUserSessionField.java │ │ │ ├── CThostFtdcUserSystemInfoField.java │ │ │ ├── CThostFtdcVerifyCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordAndCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordField.java │ │ │ ├── CThostFtdcVerifyInvestorPasswordField.java │ │ │ ├── THOST_TE_RESUME_TYPE.java │ │ │ ├── jctpv6v3v19p1x64api.java │ │ │ ├── jctpv6v3v19p1x64apiConstants.java │ │ │ └── jctpv6v3v19p1x64apiJNI.java │ │ ├── x64v6v3v19t1v │ │ └── api │ │ │ ├── CThostFtdcAccountPropertyField.java │ │ │ ├── CThostFtdcAccountregisterField.java │ │ │ ├── CThostFtdcAppIDAuthAssignField.java │ │ │ ├── CThostFtdcAuthForbiddenIPField.java │ │ │ ├── CThostFtdcAuthenticationInfoField.java │ │ │ ├── CThostFtdcBatchOrderActionField.java │ │ │ ├── CThostFtdcBrokerDepositField.java │ │ │ ├── CThostFtdcBrokerField.java │ │ │ ├── CThostFtdcBrokerSyncField.java │ │ │ ├── CThostFtdcBrokerTradingAlgosField.java │ │ │ ├── CThostFtdcBrokerTradingParamsField.java │ │ │ ├── CThostFtdcBrokerUserEventField.java │ │ │ ├── CThostFtdcBrokerUserField.java │ │ │ ├── CThostFtdcBrokerUserFunctionField.java │ │ │ ├── CThostFtdcBrokerUserOTPParamField.java │ │ │ ├── CThostFtdcBrokerUserPasswordField.java │ │ │ ├── CThostFtdcBrokerUserRightAssignField.java │ │ │ ├── CThostFtdcBrokerWithdrawAlgorithmField.java │ │ │ ├── CThostFtdcBulletinField.java │ │ │ ├── CThostFtdcCFMMCBrokerKeyField.java │ │ │ ├── CThostFtdcCFMMCTradingAccountKeyField.java │ │ │ ├── CThostFtdcCFMMCTradingAccountTokenField.java │ │ │ ├── CThostFtdcCancelAccountField.java │ │ │ ├── CThostFtdcChangeAccountField.java │ │ │ ├── CThostFtdcCombActionField.java │ │ │ ├── CThostFtdcCombInstrumentGuardField.java │ │ │ ├── CThostFtdcCombinationLegField.java │ │ │ ├── CThostFtdcCommPhaseField.java │ │ │ ├── CThostFtdcCommRateModelField.java │ │ │ ├── CThostFtdcContractBankField.java │ │ │ ├── CThostFtdcCurrDRIdentityField.java │ │ │ ├── CThostFtdcCurrTransferIdentityField.java │ │ │ ├── CThostFtdcCurrentTimeField.java │ │ │ ├── CThostFtdcDRTransferField.java │ │ │ ├── CThostFtdcDepartmentUserField.java │ │ │ ├── CThostFtdcDepositResultInformField.java │ │ │ ├── CThostFtdcDepthMarketDataField.java │ │ │ ├── CThostFtdcDiscountField.java │ │ │ ├── CThostFtdcDisseminationField.java │ │ │ ├── CThostFtdcEWarrantOffsetField.java │ │ │ ├── CThostFtdcErrExecOrderActionField.java │ │ │ ├── CThostFtdcErrExecOrderField.java │ │ │ ├── CThostFtdcErrOrderActionField.java │ │ │ ├── CThostFtdcErrOrderField.java │ │ │ ├── CThostFtdcErrorConditionalOrderField.java │ │ │ ├── CThostFtdcExchangeBatchOrderActionField.java │ │ │ ├── CThostFtdcExchangeCombActionField.java │ │ │ ├── CThostFtdcExchangeExecOrderActionField.java │ │ │ ├── CThostFtdcExchangeExecOrderField.java │ │ │ ├── CThostFtdcExchangeField.java │ │ │ ├── CThostFtdcExchangeForQuoteField.java │ │ │ ├── CThostFtdcExchangeMarginRateAdjustField.java │ │ │ ├── CThostFtdcExchangeMarginRateField.java │ │ │ ├── CThostFtdcExchangeOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcExchangeOptionSelfCloseField.java │ │ │ ├── CThostFtdcExchangeOrderActionErrorField.java │ │ │ ├── CThostFtdcExchangeOrderActionField.java │ │ │ ├── CThostFtdcExchangeOrderField.java │ │ │ ├── CThostFtdcExchangeOrderInsertErrorField.java │ │ │ ├── CThostFtdcExchangeQuoteActionField.java │ │ │ ├── CThostFtdcExchangeQuoteField.java │ │ │ ├── CThostFtdcExchangeRateField.java │ │ │ ├── CThostFtdcExchangeSequenceField.java │ │ │ ├── CThostFtdcExchangeTradeField.java │ │ │ ├── CThostFtdcExecOrderActionField.java │ │ │ ├── CThostFtdcExecOrderField.java │ │ │ ├── CThostFtdcFensUserInfoField.java │ │ │ ├── CThostFtdcForQuoteField.java │ │ │ ├── CThostFtdcForQuoteParamField.java │ │ │ ├── CThostFtdcForQuoteRspField.java │ │ │ ├── CThostFtdcForceUserLogoutField.java │ │ │ ├── CThostFtdcFrontStatusField.java │ │ │ ├── CThostFtdcFutureLimitPosiParamField.java │ │ │ ├── CThostFtdcFutureSignIOField.java │ │ │ ├── CThostFtdcIPListField.java │ │ │ ├── CThostFtdcIndexPriceField.java │ │ │ ├── CThostFtdcInputBatchOrderActionField.java │ │ │ ├── CThostFtdcInputCombActionField.java │ │ │ ├── CThostFtdcInputExecOrderActionField.java │ │ │ ├── CThostFtdcInputExecOrderField.java │ │ │ ├── CThostFtdcInputForQuoteField.java │ │ │ ├── CThostFtdcInputOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcInputOptionSelfCloseField.java │ │ │ ├── CThostFtdcInputOrderActionField.java │ │ │ ├── CThostFtdcInputOrderField.java │ │ │ ├── CThostFtdcInputQuoteActionField.java │ │ │ ├── CThostFtdcInputQuoteField.java │ │ │ ├── CThostFtdcInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcInstrumentField.java │ │ │ ├── CThostFtdcInstrumentMarginRateAdjustField.java │ │ │ ├── CThostFtdcInstrumentMarginRateField.java │ │ │ ├── CThostFtdcInstrumentMarginRateULField.java │ │ │ ├── CThostFtdcInstrumentOrderCommRateField.java │ │ │ ├── CThostFtdcInstrumentStatusField.java │ │ │ ├── CThostFtdcInstrumentTradingRightField.java │ │ │ ├── CThostFtdcInvestUnitField.java │ │ │ ├── CThostFtdcInvestorAccountField.java │ │ │ ├── CThostFtdcInvestorField.java │ │ │ ├── CThostFtdcInvestorGroupField.java │ │ │ ├── CThostFtdcInvestorPositionCombineDetailField.java │ │ │ ├── CThostFtdcInvestorPositionDetailField.java │ │ │ ├── CThostFtdcInvestorPositionField.java │ │ │ ├── CThostFtdcInvestorProductGroupMarginField.java │ │ │ ├── CThostFtdcInvestorWithdrawAlgorithmField.java │ │ │ ├── CThostFtdcLinkManField.java │ │ │ ├── CThostFtdcLoadSettlementInfoField.java │ │ │ ├── CThostFtdcLoginForbiddenIPField.java │ │ │ ├── CThostFtdcLoginForbiddenUserField.java │ │ │ ├── CThostFtdcLoginInfoField.java │ │ │ ├── CThostFtdcLogoutAllField.java │ │ │ ├── CThostFtdcMDTraderOfferField.java │ │ │ ├── CThostFtdcMMInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcMMOptionInstrCommRateField.java │ │ │ ├── CThostFtdcManualSyncBrokerUserOTPField.java │ │ │ ├── CThostFtdcMarginModelField.java │ │ │ ├── CThostFtdcMarketDataAsk23Field.java │ │ │ ├── CThostFtdcMarketDataAsk45Field.java │ │ │ ├── CThostFtdcMarketDataAveragePriceField.java │ │ │ ├── CThostFtdcMarketDataBaseField.java │ │ │ ├── CThostFtdcMarketDataBestPriceField.java │ │ │ ├── CThostFtdcMarketDataBid23Field.java │ │ │ ├── CThostFtdcMarketDataBid45Field.java │ │ │ ├── CThostFtdcMarketDataExchangeField.java │ │ │ ├── CThostFtdcMarketDataField.java │ │ │ ├── CThostFtdcMarketDataLastMatchField.java │ │ │ ├── CThostFtdcMarketDataStaticField.java │ │ │ ├── CThostFtdcMarketDataUpdateTimeField.java │ │ │ ├── CThostFtdcMdApi.java │ │ │ ├── CThostFtdcMdSpi.java │ │ │ ├── CThostFtdcMulticastGroupInfoField.java │ │ │ ├── CThostFtdcMulticastInstrumentField.java │ │ │ ├── CThostFtdcNoticeField.java │ │ │ ├── CThostFtdcNotifyFutureSignInField.java │ │ │ ├── CThostFtdcNotifyFutureSignOutField.java │ │ │ ├── CThostFtdcNotifyQueryAccountField.java │ │ │ ├── CThostFtdcNotifySyncKeyField.java │ │ │ ├── CThostFtdcOpenAccountField.java │ │ │ ├── CThostFtdcOptionInstrCommRateField.java │ │ │ ├── CThostFtdcOptionInstrDeltaField.java │ │ │ ├── CThostFtdcOptionInstrMarginAdjustField.java │ │ │ ├── CThostFtdcOptionInstrMiniMarginField.java │ │ │ ├── CThostFtdcOptionInstrTradeCostField.java │ │ │ ├── CThostFtdcOptionInstrTradingRightField.java │ │ │ ├── CThostFtdcOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcOptionSelfCloseField.java │ │ │ ├── CThostFtdcOrderActionField.java │ │ │ ├── CThostFtdcOrderField.java │ │ │ ├── CThostFtdcParkedOrderActionField.java │ │ │ ├── CThostFtdcParkedOrderField.java │ │ │ ├── CThostFtdcPartBrokerField.java │ │ │ ├── CThostFtdcPositionProfitAlgorithmField.java │ │ │ ├── CThostFtdcProductExchRateField.java │ │ │ ├── CThostFtdcProductField.java │ │ │ ├── CThostFtdcProductGroupField.java │ │ │ ├── CThostFtdcQryAccountregisterField.java │ │ │ ├── CThostFtdcQryAuthForbiddenIPField.java │ │ │ ├── CThostFtdcQryBatchOrderActionField.java │ │ │ ├── CThostFtdcQryBrokerField.java │ │ │ ├── CThostFtdcQryBrokerTradingAlgosField.java │ │ │ ├── CThostFtdcQryBrokerTradingParamsField.java │ │ │ ├── CThostFtdcQryBrokerUserEventField.java │ │ │ ├── CThostFtdcQryBrokerUserField.java │ │ │ ├── CThostFtdcQryBrokerUserFunctionField.java │ │ │ ├── CThostFtdcQryBulletinField.java │ │ │ ├── CThostFtdcQryCFMMCBrokerKeyField.java │ │ │ ├── CThostFtdcQryCFMMCTradingAccountKeyField.java │ │ │ ├── CThostFtdcQryCombActionField.java │ │ │ ├── CThostFtdcQryCombInstrumentGuardField.java │ │ │ ├── CThostFtdcQryCombinationLegField.java │ │ │ ├── CThostFtdcQryCommRateModelField.java │ │ │ ├── CThostFtdcQryContractBankField.java │ │ │ ├── CThostFtdcQryCurrDRIdentityField.java │ │ │ ├── CThostFtdcQryDepthMarketDataField.java │ │ │ ├── CThostFtdcQryEWarrantOffsetField.java │ │ │ ├── CThostFtdcQryErrExecOrderActionField.java │ │ │ ├── CThostFtdcQryErrExecOrderField.java │ │ │ ├── CThostFtdcQryErrOrderActionField.java │ │ │ ├── CThostFtdcQryErrOrderField.java │ │ │ ├── CThostFtdcQryExchangeCombActionField.java │ │ │ ├── CThostFtdcQryExchangeExecOrderActionField.java │ │ │ ├── CThostFtdcQryExchangeExecOrderField.java │ │ │ ├── CThostFtdcQryExchangeField.java │ │ │ ├── CThostFtdcQryExchangeForQuoteField.java │ │ │ ├── CThostFtdcQryExchangeMarginRateAdjustField.java │ │ │ ├── CThostFtdcQryExchangeMarginRateField.java │ │ │ ├── CThostFtdcQryExchangeOrderActionField.java │ │ │ ├── CThostFtdcQryExchangeOrderField.java │ │ │ ├── CThostFtdcQryExchangeQuoteActionField.java │ │ │ ├── CThostFtdcQryExchangeQuoteField.java │ │ │ ├── CThostFtdcQryExchangeRateField.java │ │ │ ├── CThostFtdcQryExchangeSequenceField.java │ │ │ ├── CThostFtdcQryExecOrderActionField.java │ │ │ ├── CThostFtdcQryExecOrderField.java │ │ │ ├── CThostFtdcQryForQuoteField.java │ │ │ ├── CThostFtdcQryForQuoteParamField.java │ │ │ ├── CThostFtdcQryFrontStatusField.java │ │ │ ├── CThostFtdcQryHisOrderField.java │ │ │ ├── CThostFtdcQryIPListField.java │ │ │ ├── CThostFtdcQryInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcQryInstrumentField.java │ │ │ ├── CThostFtdcQryInstrumentMarginRateField.java │ │ │ ├── CThostFtdcQryInstrumentOrderCommRateField.java │ │ │ ├── CThostFtdcQryInstrumentStatusField.java │ │ │ ├── CThostFtdcQryInstrumentTradingRightField.java │ │ │ ├── CThostFtdcQryInvestUnitField.java │ │ │ ├── CThostFtdcQryInvestorField.java │ │ │ ├── CThostFtdcQryInvestorGroupField.java │ │ │ ├── CThostFtdcQryInvestorPositionCombineDetailField.java │ │ │ ├── CThostFtdcQryInvestorPositionDetailField.java │ │ │ ├── CThostFtdcQryInvestorPositionField.java │ │ │ ├── CThostFtdcQryInvestorProductGroupMarginField.java │ │ │ ├── CThostFtdcQryLinkManField.java │ │ │ ├── CThostFtdcQryLoginForbiddenIPField.java │ │ │ ├── CThostFtdcQryLoginForbiddenUserField.java │ │ │ ├── CThostFtdcQryMDTraderOfferField.java │ │ │ ├── CThostFtdcQryMMInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcQryMMOptionInstrCommRateField.java │ │ │ ├── CThostFtdcQryMarginModelField.java │ │ │ ├── CThostFtdcQryMulticastInstrumentField.java │ │ │ ├── CThostFtdcQryNoticeField.java │ │ │ ├── CThostFtdcQryOptionInstrCommRateField.java │ │ │ ├── CThostFtdcQryOptionInstrTradeCostField.java │ │ │ ├── CThostFtdcQryOptionInstrTradingRightField.java │ │ │ ├── CThostFtdcQryOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcQryOptionSelfCloseField.java │ │ │ ├── CThostFtdcQryOrderActionField.java │ │ │ ├── CThostFtdcQryOrderField.java │ │ │ ├── CThostFtdcQryParkedOrderActionField.java │ │ │ ├── CThostFtdcQryParkedOrderField.java │ │ │ ├── CThostFtdcQryPartBrokerField.java │ │ │ ├── CThostFtdcQryProductExchRateField.java │ │ │ ├── CThostFtdcQryProductField.java │ │ │ ├── CThostFtdcQryProductGroupField.java │ │ │ ├── CThostFtdcQryQuoteActionField.java │ │ │ ├── CThostFtdcQryQuoteField.java │ │ │ ├── CThostFtdcQrySecAgentACIDMapField.java │ │ │ ├── CThostFtdcQrySecAgentCheckModeField.java │ │ │ ├── CThostFtdcQrySecAgentTradeInfoField.java │ │ │ ├── CThostFtdcQrySettlementInfoConfirmField.java │ │ │ ├── CThostFtdcQrySettlementInfoField.java │ │ │ ├── CThostFtdcQryStrikeOffsetField.java │ │ │ ├── CThostFtdcQrySuperUserField.java │ │ │ ├── CThostFtdcQrySuperUserFunctionField.java │ │ │ ├── CThostFtdcQrySyncDelaySwapField.java │ │ │ ├── CThostFtdcQrySyncDepositField.java │ │ │ ├── CThostFtdcQrySyncFundMortgageField.java │ │ │ ├── CThostFtdcQrySyncStatusField.java │ │ │ ├── CThostFtdcQryTradeField.java │ │ │ ├── CThostFtdcQryTraderField.java │ │ │ ├── CThostFtdcQryTraderOfferField.java │ │ │ ├── CThostFtdcQryTradingAccountField.java │ │ │ ├── CThostFtdcQryTradingCodeField.java │ │ │ ├── CThostFtdcQryTradingNoticeField.java │ │ │ ├── CThostFtdcQryTransferBankField.java │ │ │ ├── CThostFtdcQryTransferSerialField.java │ │ │ ├── CThostFtdcQryUserRightsAssignField.java │ │ │ ├── CThostFtdcQryUserSessionField.java │ │ │ ├── CThostFtdcQueryBrokerDepositField.java │ │ │ ├── CThostFtdcQueryCFMMCTradingAccountTokenField.java │ │ │ ├── CThostFtdcQueryFreqField.java │ │ │ ├── CThostFtdcQueryMaxOrderVolumeField.java │ │ │ ├── CThostFtdcQueryMaxOrderVolumeWithPriceField.java │ │ │ ├── CThostFtdcQuoteActionField.java │ │ │ ├── CThostFtdcQuoteField.java │ │ │ ├── CThostFtdcRemoveParkedOrderActionField.java │ │ │ ├── CThostFtdcRemoveParkedOrderField.java │ │ │ ├── CThostFtdcReqApiHandshakeField.java │ │ │ ├── CThostFtdcReqAuthenticateField.java │ │ │ ├── CThostFtdcReqCancelAccountField.java │ │ │ ├── CThostFtdcReqChangeAccountField.java │ │ │ ├── CThostFtdcReqDayEndFileReadyField.java │ │ │ ├── CThostFtdcReqFutureSignOutField.java │ │ │ ├── CThostFtdcReqGenUserCaptchaField.java │ │ │ ├── CThostFtdcReqGenUserTextField.java │ │ │ ├── CThostFtdcReqOpenAccountField.java │ │ │ ├── CThostFtdcReqQueryAccountField.java │ │ │ ├── CThostFtdcReqQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcReqRepealField.java │ │ │ ├── CThostFtdcReqSyncKeyField.java │ │ │ ├── CThostFtdcReqTransferField.java │ │ │ ├── CThostFtdcReqUserAuthMethodField.java │ │ │ ├── CThostFtdcReqUserLoginField.java │ │ │ ├── CThostFtdcReqUserLoginWithCaptchaField.java │ │ │ ├── CThostFtdcReqUserLoginWithOTPField.java │ │ │ ├── CThostFtdcReqUserLoginWithTextField.java │ │ │ ├── CThostFtdcReqVerifyApiKeyField.java │ │ │ ├── CThostFtdcReserveOpenAccountConfirmField.java │ │ │ ├── CThostFtdcReserveOpenAccountField.java │ │ │ ├── CThostFtdcReturnResultField.java │ │ │ ├── CThostFtdcRspApiHandshakeField.java │ │ │ ├── CThostFtdcRspAuthenticateField.java │ │ │ ├── CThostFtdcRspFutureSignInField.java │ │ │ ├── CThostFtdcRspFutureSignOutField.java │ │ │ ├── CThostFtdcRspGenUserCaptchaField.java │ │ │ ├── CThostFtdcRspGenUserTextField.java │ │ │ ├── CThostFtdcRspInfoField.java │ │ │ ├── CThostFtdcRspQueryAccountField.java │ │ │ ├── CThostFtdcRspQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcRspRepealField.java │ │ │ ├── CThostFtdcRspSyncKeyField.java │ │ │ ├── CThostFtdcRspTransferField.java │ │ │ ├── CThostFtdcRspUserAuthMethodField.java │ │ │ ├── CThostFtdcRspUserLogin2Field.java │ │ │ ├── CThostFtdcRspUserLoginField.java │ │ │ ├── CThostFtdcSecAgentACIDMapField.java │ │ │ ├── CThostFtdcSecAgentCheckModeField.java │ │ │ ├── CThostFtdcSecAgentTradeInfoField.java │ │ │ ├── CThostFtdcSettlementInfoConfirmField.java │ │ │ ├── CThostFtdcSettlementInfoField.java │ │ │ ├── CThostFtdcSettlementRefField.java │ │ │ ├── CThostFtdcSpecificInstrumentField.java │ │ │ ├── CThostFtdcStrikeOffsetField.java │ │ │ ├── CThostFtdcSuperUserField.java │ │ │ ├── CThostFtdcSuperUserFunctionField.java │ │ │ ├── CThostFtdcSyncDelaySwapField.java │ │ │ ├── CThostFtdcSyncDelaySwapFrozenField.java │ │ │ ├── CThostFtdcSyncDepositField.java │ │ │ ├── CThostFtdcSyncFundMortgageField.java │ │ │ ├── CThostFtdcSyncStatusField.java │ │ │ ├── CThostFtdcSyncingInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcSyncingInstrumentMarginRateField.java │ │ │ ├── CThostFtdcSyncingInstrumentTradingRightField.java │ │ │ ├── CThostFtdcSyncingInvestorField.java │ │ │ ├── CThostFtdcSyncingInvestorGroupField.java │ │ │ ├── CThostFtdcSyncingInvestorPositionField.java │ │ │ ├── CThostFtdcSyncingTradingAccountField.java │ │ │ ├── CThostFtdcSyncingTradingCodeField.java │ │ │ ├── CThostFtdcTradeField.java │ │ │ ├── CThostFtdcTradeParamField.java │ │ │ ├── CThostFtdcTraderApi.java │ │ │ ├── CThostFtdcTraderField.java │ │ │ ├── CThostFtdcTraderOfferField.java │ │ │ ├── CThostFtdcTraderSpi.java │ │ │ ├── CThostFtdcTradingAccountField.java │ │ │ ├── CThostFtdcTradingAccountPasswordField.java │ │ │ ├── CThostFtdcTradingAccountPasswordUpdateField.java │ │ │ ├── CThostFtdcTradingAccountPasswordUpdateV1Field.java │ │ │ ├── CThostFtdcTradingAccountReserveField.java │ │ │ ├── CThostFtdcTradingCodeField.java │ │ │ ├── CThostFtdcTradingNoticeField.java │ │ │ ├── CThostFtdcTradingNoticeInfoField.java │ │ │ ├── CThostFtdcTransferBankField.java │ │ │ ├── CThostFtdcTransferBankToFutureReqField.java │ │ │ ├── CThostFtdcTransferBankToFutureRspField.java │ │ │ ├── CThostFtdcTransferFutureToBankReqField.java │ │ │ ├── CThostFtdcTransferFutureToBankRspField.java │ │ │ ├── CThostFtdcTransferHeaderField.java │ │ │ ├── CThostFtdcTransferQryBankReqField.java │ │ │ ├── CThostFtdcTransferQryBankRspField.java │ │ │ ├── CThostFtdcTransferQryDetailReqField.java │ │ │ ├── CThostFtdcTransferQryDetailRspField.java │ │ │ ├── CThostFtdcTransferSerialField.java │ │ │ ├── CThostFtdcUserIPField.java │ │ │ ├── CThostFtdcUserLogoutField.java │ │ │ ├── CThostFtdcUserPasswordUpdateField.java │ │ │ ├── CThostFtdcUserRightField.java │ │ │ ├── CThostFtdcUserRightsAssignField.java │ │ │ ├── CThostFtdcUserSessionField.java │ │ │ ├── CThostFtdcUserSystemInfoField.java │ │ │ ├── CThostFtdcVerifyCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordAndCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordField.java │ │ │ ├── CThostFtdcVerifyInvestorPasswordField.java │ │ │ ├── THOST_TE_RESUME_TYPE.java │ │ │ ├── jctpv6v3v19t1x64api.java │ │ │ ├── jctpv6v3v19t1x64apiConstants.java │ │ │ └── jctpv6v3v19t1x64apiJNI.java │ │ ├── x64v6v6v9cpv │ │ └── api │ │ │ ├── CThostFtdcAccountPropertyField.java │ │ │ ├── CThostFtdcAccountregisterField.java │ │ │ ├── CThostFtdcAppIDAuthAssignField.java │ │ │ ├── CThostFtdcAuthForbiddenIPField.java │ │ │ ├── CThostFtdcAuthIPField.java │ │ │ ├── CThostFtdcAuthUserIDField.java │ │ │ ├── CThostFtdcAuthenticationInfoField.java │ │ │ ├── CThostFtdcBatchOrderActionField.java │ │ │ ├── CThostFtdcBrokerDepositField.java │ │ │ ├── CThostFtdcBrokerField.java │ │ │ ├── CThostFtdcBrokerSyncField.java │ │ │ ├── CThostFtdcBrokerTradingAlgosField.java │ │ │ ├── CThostFtdcBrokerTradingParamsField.java │ │ │ ├── CThostFtdcBrokerUserEventField.java │ │ │ ├── CThostFtdcBrokerUserField.java │ │ │ ├── CThostFtdcBrokerUserFunctionField.java │ │ │ ├── CThostFtdcBrokerUserOTPParamField.java │ │ │ ├── CThostFtdcBrokerUserPasswordField.java │ │ │ ├── CThostFtdcBrokerUserRightAssignField.java │ │ │ ├── CThostFtdcBrokerWithdrawAlgorithmField.java │ │ │ ├── CThostFtdcBulletinField.java │ │ │ ├── CThostFtdcCFMMCBrokerKeyField.java │ │ │ ├── CThostFtdcCFMMCTradingAccountKeyField.java │ │ │ ├── CThostFtdcCFMMCTradingAccountTokenField.java │ │ │ ├── CThostFtdcCancelAccountField.java │ │ │ ├── CThostFtdcChangeAccountField.java │ │ │ ├── CThostFtdcCombActionField.java │ │ │ ├── CThostFtdcCombInstrumentGuardField.java │ │ │ ├── CThostFtdcCombPromotionParamField.java │ │ │ ├── CThostFtdcCombinationLegField.java │ │ │ ├── CThostFtdcCommPhaseField.java │ │ │ ├── CThostFtdcCommRateModelField.java │ │ │ ├── CThostFtdcContractBankField.java │ │ │ ├── CThostFtdcCurrDRIdentityField.java │ │ │ ├── CThostFtdcCurrTransferIdentityField.java │ │ │ ├── CThostFtdcCurrentTimeField.java │ │ │ ├── CThostFtdcDRTransferField.java │ │ │ ├── CThostFtdcDepartmentUserField.java │ │ │ ├── CThostFtdcDepositResultInformField.java │ │ │ ├── CThostFtdcDepthMarketDataField.java │ │ │ ├── CThostFtdcDiscountField.java │ │ │ ├── CThostFtdcDisseminationField.java │ │ │ ├── CThostFtdcEWarrantOffsetField.java │ │ │ ├── CThostFtdcErrExecOrderActionField.java │ │ │ ├── CThostFtdcErrExecOrderField.java │ │ │ ├── CThostFtdcErrOrderActionField.java │ │ │ ├── CThostFtdcErrOrderField.java │ │ │ ├── CThostFtdcErrorConditionalOrderField.java │ │ │ ├── CThostFtdcExchangeBatchOrderActionField.java │ │ │ ├── CThostFtdcExchangeCombActionField.java │ │ │ ├── CThostFtdcExchangeExecOrderActionField.java │ │ │ ├── CThostFtdcExchangeExecOrderField.java │ │ │ ├── CThostFtdcExchangeField.java │ │ │ ├── CThostFtdcExchangeForQuoteField.java │ │ │ ├── CThostFtdcExchangeMarginRateAdjustField.java │ │ │ ├── CThostFtdcExchangeMarginRateField.java │ │ │ ├── CThostFtdcExchangeOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcExchangeOptionSelfCloseField.java │ │ │ ├── CThostFtdcExchangeOrderActionErrorField.java │ │ │ ├── CThostFtdcExchangeOrderActionField.java │ │ │ ├── CThostFtdcExchangeOrderField.java │ │ │ ├── CThostFtdcExchangeOrderInsertErrorField.java │ │ │ ├── CThostFtdcExchangeQuoteActionField.java │ │ │ ├── CThostFtdcExchangeQuoteField.java │ │ │ ├── CThostFtdcExchangeRateField.java │ │ │ ├── CThostFtdcExchangeSequenceField.java │ │ │ ├── CThostFtdcExchangeTradeField.java │ │ │ ├── CThostFtdcExecOrderActionField.java │ │ │ ├── CThostFtdcExecOrderField.java │ │ │ ├── CThostFtdcFensUserInfoField.java │ │ │ ├── CThostFtdcForQuoteField.java │ │ │ ├── CThostFtdcForQuoteParamField.java │ │ │ ├── CThostFtdcForQuoteRspField.java │ │ │ ├── CThostFtdcForceUserLogoutField.java │ │ │ ├── CThostFtdcFrontStatusField.java │ │ │ ├── CThostFtdcFutureLimitPosiParamField.java │ │ │ ├── CThostFtdcFutureSignIOField.java │ │ │ ├── CThostFtdcIPListField.java │ │ │ ├── CThostFtdcIndexPriceField.java │ │ │ ├── CThostFtdcInputBatchOrderActionField.java │ │ │ ├── CThostFtdcInputCombActionField.java │ │ │ ├── CThostFtdcInputExecOrderActionField.java │ │ │ ├── CThostFtdcInputExecOrderField.java │ │ │ ├── CThostFtdcInputForQuoteField.java │ │ │ ├── CThostFtdcInputOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcInputOptionSelfCloseField.java │ │ │ ├── CThostFtdcInputOrderActionField.java │ │ │ ├── CThostFtdcInputOrderField.java │ │ │ ├── CThostFtdcInputQuoteActionField.java │ │ │ ├── CThostFtdcInputQuoteField.java │ │ │ ├── CThostFtdcInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcInstrumentField.java │ │ │ ├── CThostFtdcInstrumentMarginRateAdjustField.java │ │ │ ├── CThostFtdcInstrumentMarginRateField.java │ │ │ ├── CThostFtdcInstrumentMarginRateULField.java │ │ │ ├── CThostFtdcInstrumentOrderCommRateField.java │ │ │ ├── CThostFtdcInstrumentStatusField.java │ │ │ ├── CThostFtdcInstrumentTradingRightField.java │ │ │ ├── CThostFtdcInvestUnitField.java │ │ │ ├── CThostFtdcInvestorAccountField.java │ │ │ ├── CThostFtdcInvestorField.java │ │ │ ├── CThostFtdcInvestorGroupField.java │ │ │ ├── CThostFtdcInvestorPortfMarginRatioField.java │ │ │ ├── CThostFtdcInvestorPositionCombineDetailField.java │ │ │ ├── CThostFtdcInvestorPositionDetailField.java │ │ │ ├── CThostFtdcInvestorPositionField.java │ │ │ ├── CThostFtdcInvestorProdSPBMDetailField.java │ │ │ ├── CThostFtdcInvestorProductGroupMarginField.java │ │ │ ├── CThostFtdcInvestorWithdrawAlgorithmField.java │ │ │ ├── CThostFtdcLinkManField.java │ │ │ ├── CThostFtdcLoadSettlementInfoField.java │ │ │ ├── CThostFtdcLoginForbiddenIPField.java │ │ │ ├── CThostFtdcLoginForbiddenUserField.java │ │ │ ├── CThostFtdcLoginInfoField.java │ │ │ ├── CThostFtdcLogoutAllField.java │ │ │ ├── CThostFtdcMDTraderOfferField.java │ │ │ ├── CThostFtdcMMInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcMMOptionInstrCommRateField.java │ │ │ ├── CThostFtdcManualSyncBrokerUserOTPField.java │ │ │ ├── CThostFtdcMarginModelField.java │ │ │ ├── CThostFtdcMarketDataAsk23Field.java │ │ │ ├── CThostFtdcMarketDataAsk45Field.java │ │ │ ├── CThostFtdcMarketDataAveragePriceField.java │ │ │ ├── CThostFtdcMarketDataBandingPriceField.java │ │ │ ├── CThostFtdcMarketDataBaseField.java │ │ │ ├── CThostFtdcMarketDataBestPriceField.java │ │ │ ├── CThostFtdcMarketDataBid23Field.java │ │ │ ├── CThostFtdcMarketDataBid45Field.java │ │ │ ├── CThostFtdcMarketDataExchangeField.java │ │ │ ├── CThostFtdcMarketDataField.java │ │ │ ├── CThostFtdcMarketDataLastMatchField.java │ │ │ ├── CThostFtdcMarketDataStaticField.java │ │ │ ├── CThostFtdcMarketDataUpdateTimeField.java │ │ │ ├── CThostFtdcMdApi.java │ │ │ ├── CThostFtdcMdSpi.java │ │ │ ├── CThostFtdcMulticastInstrumentField.java │ │ │ ├── CThostFtdcNoticeField.java │ │ │ ├── CThostFtdcNotifyFutureSignInField.java │ │ │ ├── CThostFtdcNotifyFutureSignOutField.java │ │ │ ├── CThostFtdcNotifyQueryAccountField.java │ │ │ ├── CThostFtdcNotifySyncKeyField.java │ │ │ ├── CThostFtdcOpenAccountField.java │ │ │ ├── CThostFtdcOptionInstrCommRateField.java │ │ │ ├── CThostFtdcOptionInstrDeltaField.java │ │ │ ├── CThostFtdcOptionInstrMarginAdjustField.java │ │ │ ├── CThostFtdcOptionInstrMiniMarginField.java │ │ │ ├── CThostFtdcOptionInstrTradeCostField.java │ │ │ ├── CThostFtdcOptionInstrTradingRightField.java │ │ │ ├── CThostFtdcOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcOptionSelfCloseField.java │ │ │ ├── CThostFtdcOrderActionField.java │ │ │ ├── CThostFtdcOrderField.java │ │ │ ├── CThostFtdcParkedOrderActionField.java │ │ │ ├── CThostFtdcParkedOrderField.java │ │ │ ├── CThostFtdcPartBrokerField.java │ │ │ ├── CThostFtdcPortfTradeParamSettingField.java │ │ │ ├── CThostFtdcPositionProfitAlgorithmField.java │ │ │ ├── CThostFtdcProductExchRateField.java │ │ │ ├── CThostFtdcProductField.java │ │ │ ├── CThostFtdcProductGroupField.java │ │ │ ├── CThostFtdcQryAccountregisterField.java │ │ │ ├── CThostFtdcQryAuthForbiddenIPField.java │ │ │ ├── CThostFtdcQryBatchOrderActionField.java │ │ │ ├── CThostFtdcQryBrokerField.java │ │ │ ├── CThostFtdcQryBrokerTradingAlgosField.java │ │ │ ├── CThostFtdcQryBrokerTradingParamsField.java │ │ │ ├── CThostFtdcQryBrokerUserEventField.java │ │ │ ├── CThostFtdcQryBrokerUserField.java │ │ │ ├── CThostFtdcQryBrokerUserFunctionField.java │ │ │ ├── CThostFtdcQryBulletinField.java │ │ │ ├── CThostFtdcQryCFMMCBrokerKeyField.java │ │ │ ├── CThostFtdcQryCFMMCTradingAccountKeyField.java │ │ │ ├── CThostFtdcQryClassifiedInstrumentField.java │ │ │ ├── CThostFtdcQryCombActionField.java │ │ │ ├── CThostFtdcQryCombInstrumentGuardField.java │ │ │ ├── CThostFtdcQryCombPromotionParamField.java │ │ │ ├── CThostFtdcQryCombinationLegField.java │ │ │ ├── CThostFtdcQryCommRateModelField.java │ │ │ ├── CThostFtdcQryContractBankField.java │ │ │ ├── CThostFtdcQryCurrDRIdentityField.java │ │ │ ├── CThostFtdcQryDepthMarketDataField.java │ │ │ ├── CThostFtdcQryEWarrantOffsetField.java │ │ │ ├── CThostFtdcQryErrExecOrderActionField.java │ │ │ ├── CThostFtdcQryErrExecOrderField.java │ │ │ ├── CThostFtdcQryErrOrderActionField.java │ │ │ ├── CThostFtdcQryErrOrderField.java │ │ │ ├── CThostFtdcQryExchangeCombActionField.java │ │ │ ├── CThostFtdcQryExchangeExecOrderActionField.java │ │ │ ├── CThostFtdcQryExchangeExecOrderField.java │ │ │ ├── CThostFtdcQryExchangeField.java │ │ │ ├── CThostFtdcQryExchangeForQuoteField.java │ │ │ ├── CThostFtdcQryExchangeMarginRateAdjustField.java │ │ │ ├── CThostFtdcQryExchangeMarginRateField.java │ │ │ ├── CThostFtdcQryExchangeOrderActionField.java │ │ │ ├── CThostFtdcQryExchangeOrderField.java │ │ │ ├── CThostFtdcQryExchangeQuoteActionField.java │ │ │ ├── CThostFtdcQryExchangeQuoteField.java │ │ │ ├── CThostFtdcQryExchangeRateField.java │ │ │ ├── CThostFtdcQryExchangeSequenceField.java │ │ │ ├── CThostFtdcQryExecOrderActionField.java │ │ │ ├── CThostFtdcQryExecOrderField.java │ │ │ ├── CThostFtdcQryForQuoteField.java │ │ │ ├── CThostFtdcQryForQuoteParamField.java │ │ │ ├── CThostFtdcQryFrontStatusField.java │ │ │ ├── CThostFtdcQryHisOrderField.java │ │ │ ├── CThostFtdcQryIPListField.java │ │ │ ├── CThostFtdcQryInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcQryInstrumentField.java │ │ │ ├── CThostFtdcQryInstrumentMarginRateField.java │ │ │ ├── CThostFtdcQryInstrumentOrderCommRateField.java │ │ │ ├── CThostFtdcQryInstrumentStatusField.java │ │ │ ├── CThostFtdcQryInstrumentTradingRightField.java │ │ │ ├── CThostFtdcQryInvestUnitField.java │ │ │ ├── CThostFtdcQryInvestorField.java │ │ │ ├── CThostFtdcQryInvestorGroupField.java │ │ │ ├── CThostFtdcQryInvestorPortfMarginRatioField.java │ │ │ ├── CThostFtdcQryInvestorPositionCombineDetailField.java │ │ │ ├── CThostFtdcQryInvestorPositionDetailField.java │ │ │ ├── CThostFtdcQryInvestorPositionField.java │ │ │ ├── CThostFtdcQryInvestorProdSPBMDetailField.java │ │ │ ├── CThostFtdcQryInvestorProductGroupMarginField.java │ │ │ ├── CThostFtdcQryLinkManField.java │ │ │ ├── CThostFtdcQryLoginForbiddenIPField.java │ │ │ ├── CThostFtdcQryLoginForbiddenUserField.java │ │ │ ├── CThostFtdcQryMDTraderOfferField.java │ │ │ ├── CThostFtdcQryMMInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcQryMMOptionInstrCommRateField.java │ │ │ ├── CThostFtdcQryMarginModelField.java │ │ │ ├── CThostFtdcQryMaxOrderVolumeField.java │ │ │ ├── CThostFtdcQryMaxOrderVolumeWithPriceField.java │ │ │ ├── CThostFtdcQryMulticastInstrumentField.java │ │ │ ├── CThostFtdcQryNoticeField.java │ │ │ ├── CThostFtdcQryOptionInstrCommRateField.java │ │ │ ├── CThostFtdcQryOptionInstrTradeCostField.java │ │ │ ├── CThostFtdcQryOptionInstrTradingRightField.java │ │ │ ├── CThostFtdcQryOptionSelfCloseActionField.java │ │ │ ├── CThostFtdcQryOptionSelfCloseField.java │ │ │ ├── CThostFtdcQryOrderActionField.java │ │ │ ├── CThostFtdcQryOrderField.java │ │ │ ├── CThostFtdcQryParkedOrderActionField.java │ │ │ ├── CThostFtdcQryParkedOrderField.java │ │ │ ├── CThostFtdcQryPartBrokerField.java │ │ │ ├── CThostFtdcQryProductExchRateField.java │ │ │ ├── CThostFtdcQryProductField.java │ │ │ ├── CThostFtdcQryProductGroupField.java │ │ │ ├── CThostFtdcQryQuoteActionField.java │ │ │ ├── CThostFtdcQryQuoteField.java │ │ │ ├── CThostFtdcQryRiskSettleInvstPositionField.java │ │ │ ├── CThostFtdcQryRiskSettleProductStatusField.java │ │ │ ├── CThostFtdcQrySPBMFutureParameterField.java │ │ │ ├── CThostFtdcQrySPBMInterParameterField.java │ │ │ ├── CThostFtdcQrySPBMIntraParameterField.java │ │ │ ├── CThostFtdcQrySPBMInvestorPortfDefField.java │ │ │ ├── CThostFtdcQrySPBMOptionParameterField.java │ │ │ ├── CThostFtdcQrySPBMPortfDefinitionField.java │ │ │ ├── CThostFtdcQrySecAgentACIDMapField.java │ │ │ ├── CThostFtdcQrySecAgentCheckModeField.java │ │ │ ├── CThostFtdcQrySecAgentTradeInfoField.java │ │ │ ├── CThostFtdcQrySettlementInfoConfirmField.java │ │ │ ├── CThostFtdcQrySettlementInfoField.java │ │ │ ├── CThostFtdcQryStrikeOffsetField.java │ │ │ ├── CThostFtdcQrySuperUserField.java │ │ │ ├── CThostFtdcQrySuperUserFunctionField.java │ │ │ ├── CThostFtdcQrySyncDelaySwapField.java │ │ │ ├── CThostFtdcQrySyncDepositField.java │ │ │ ├── CThostFtdcQrySyncFundMortgageField.java │ │ │ ├── CThostFtdcQrySyncStatusField.java │ │ │ ├── CThostFtdcQryTradeField.java │ │ │ ├── CThostFtdcQryTraderField.java │ │ │ ├── CThostFtdcQryTraderOfferField.java │ │ │ ├── CThostFtdcQryTradingAccountField.java │ │ │ ├── CThostFtdcQryTradingCodeField.java │ │ │ ├── CThostFtdcQryTradingNoticeField.java │ │ │ ├── CThostFtdcQryTransferBankField.java │ │ │ ├── CThostFtdcQryTransferSerialField.java │ │ │ ├── CThostFtdcQryUserRightsAssignField.java │ │ │ ├── CThostFtdcQryUserSessionField.java │ │ │ ├── CThostFtdcQueryBrokerDepositField.java │ │ │ ├── CThostFtdcQueryCFMMCTradingAccountTokenField.java │ │ │ ├── CThostFtdcQueryFreqField.java │ │ │ ├── CThostFtdcQuoteActionField.java │ │ │ ├── CThostFtdcQuoteField.java │ │ │ ├── CThostFtdcRemoveParkedOrderActionField.java │ │ │ ├── CThostFtdcRemoveParkedOrderField.java │ │ │ ├── CThostFtdcReqApiHandshakeField.java │ │ │ ├── CThostFtdcReqAuthenticateField.java │ │ │ ├── CThostFtdcReqCancelAccountField.java │ │ │ ├── CThostFtdcReqChangeAccountField.java │ │ │ ├── CThostFtdcReqDayEndFileReadyField.java │ │ │ ├── CThostFtdcReqFutureSignOutField.java │ │ │ ├── CThostFtdcReqGenUserCaptchaField.java │ │ │ ├── CThostFtdcReqGenUserTextField.java │ │ │ ├── CThostFtdcReqOpenAccountField.java │ │ │ ├── CThostFtdcReqQueryAccountField.java │ │ │ ├── CThostFtdcReqQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcReqRepealField.java │ │ │ ├── CThostFtdcReqSyncKeyField.java │ │ │ ├── CThostFtdcReqTransferField.java │ │ │ ├── CThostFtdcReqUserAuthMethodField.java │ │ │ ├── CThostFtdcReqUserLoginField.java │ │ │ ├── CThostFtdcReqUserLoginSCField.java │ │ │ ├── CThostFtdcReqUserLoginWithCaptchaField.java │ │ │ ├── CThostFtdcReqUserLoginWithOTPField.java │ │ │ ├── CThostFtdcReqUserLoginWithTextField.java │ │ │ ├── CThostFtdcReqVerifyApiKeyField.java │ │ │ ├── CThostFtdcReserveOpenAccountConfirmField.java │ │ │ ├── CThostFtdcReserveOpenAccountField.java │ │ │ ├── CThostFtdcReturnResultField.java │ │ │ ├── CThostFtdcRiskSettleInvstPositionField.java │ │ │ ├── CThostFtdcRiskSettleProductStatusField.java │ │ │ ├── CThostFtdcRspApiHandshakeField.java │ │ │ ├── CThostFtdcRspAuthenticateField.java │ │ │ ├── CThostFtdcRspFutureSignInField.java │ │ │ ├── CThostFtdcRspFutureSignOutField.java │ │ │ ├── CThostFtdcRspGenUserCaptchaField.java │ │ │ ├── CThostFtdcRspGenUserTextField.java │ │ │ ├── CThostFtdcRspInfoField.java │ │ │ ├── CThostFtdcRspQueryAccountField.java │ │ │ ├── CThostFtdcRspQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcRspRepealField.java │ │ │ ├── CThostFtdcRspSyncKeyField.java │ │ │ ├── CThostFtdcRspTransferField.java │ │ │ ├── CThostFtdcRspUserAuthMethodField.java │ │ │ ├── CThostFtdcRspUserLogin2Field.java │ │ │ ├── CThostFtdcRspUserLoginField.java │ │ │ ├── CThostFtdcSPBMFutureParameterField.java │ │ │ ├── CThostFtdcSPBMInterParameterField.java │ │ │ ├── CThostFtdcSPBMIntraParameterField.java │ │ │ ├── CThostFtdcSPBMInvestorPortfDefField.java │ │ │ ├── CThostFtdcSPBMOptionParameterField.java │ │ │ ├── CThostFtdcSPBMPortfDefinitionField.java │ │ │ ├── CThostFtdcSecAgentACIDMapField.java │ │ │ ├── CThostFtdcSecAgentCheckModeField.java │ │ │ ├── CThostFtdcSecAgentTradeInfoField.java │ │ │ ├── CThostFtdcSettlementInfoConfirmField.java │ │ │ ├── CThostFtdcSettlementInfoField.java │ │ │ ├── CThostFtdcSettlementRefField.java │ │ │ ├── CThostFtdcSpecificInstrumentField.java │ │ │ ├── CThostFtdcStrikeOffsetField.java │ │ │ ├── CThostFtdcSuperUserField.java │ │ │ ├── CThostFtdcSuperUserFunctionField.java │ │ │ ├── CThostFtdcSyncDelaySwapField.java │ │ │ ├── CThostFtdcSyncDelaySwapFrozenField.java │ │ │ ├── CThostFtdcSyncDeltaDceCombInstrumentField.java │ │ │ ├── CThostFtdcSyncDeltaDepthMarketDataField.java │ │ │ ├── CThostFtdcSyncDeltaEWarrantOffsetField.java │ │ │ ├── CThostFtdcSyncDeltaExchMarginRateField.java │ │ │ ├── CThostFtdcSyncDeltaIndexPriceField.java │ │ │ ├── CThostFtdcSyncDeltaInfoField.java │ │ │ ├── CThostFtdcSyncDeltaInitInvstMarginField.java │ │ │ ├── CThostFtdcSyncDeltaInvstCommRateField.java │ │ │ ├── CThostFtdcSyncDeltaInvstMarginRateField.java │ │ │ ├── CThostFtdcSyncDeltaInvstMarginRateULField.java │ │ │ ├── CThostFtdcSyncDeltaInvstPosCombDtlField.java │ │ │ ├── CThostFtdcSyncDeltaInvstPosDtlField.java │ │ │ ├── CThostFtdcSyncDeltaOptExchMarginField.java │ │ │ ├── CThostFtdcSyncDeltaOptInvstCommRateField.java │ │ │ ├── CThostFtdcSyncDeltaOptInvstMarginField.java │ │ │ ├── CThostFtdcSyncDeltaProductExchRateField.java │ │ │ ├── CThostFtdcSyncDeltaProductStatusField.java │ │ │ ├── CThostFtdcSyncDeltaTradingAccountField.java │ │ │ ├── CThostFtdcSyncDepositField.java │ │ │ ├── CThostFtdcSyncFundMortgageField.java │ │ │ ├── CThostFtdcSyncSPBMParameterEndField.java │ │ │ ├── CThostFtdcSyncStatusField.java │ │ │ ├── CThostFtdcSyncingInstrumentCommissionRateField.java │ │ │ ├── CThostFtdcSyncingInstrumentMarginRateField.java │ │ │ ├── CThostFtdcSyncingInstrumentTradingRightField.java │ │ │ ├── CThostFtdcSyncingInvestorField.java │ │ │ ├── CThostFtdcSyncingInvestorGroupField.java │ │ │ ├── CThostFtdcSyncingInvestorPositionField.java │ │ │ ├── CThostFtdcSyncingTradingAccountField.java │ │ │ ├── CThostFtdcSyncingTradingCodeField.java │ │ │ ├── CThostFtdcTradeField.java │ │ │ ├── CThostFtdcTradeParamField.java │ │ │ ├── CThostFtdcTraderApi.java │ │ │ ├── CThostFtdcTraderField.java │ │ │ ├── CThostFtdcTraderOfferField.java │ │ │ ├── CThostFtdcTraderSpi.java │ │ │ ├── CThostFtdcTradingAccountField.java │ │ │ ├── CThostFtdcTradingAccountPasswordField.java │ │ │ ├── CThostFtdcTradingAccountPasswordUpdateField.java │ │ │ ├── CThostFtdcTradingAccountPasswordUpdateV1Field.java │ │ │ ├── CThostFtdcTradingAccountReserveField.java │ │ │ ├── CThostFtdcTradingCodeField.java │ │ │ ├── CThostFtdcTradingNoticeField.java │ │ │ ├── CThostFtdcTradingNoticeInfoField.java │ │ │ ├── CThostFtdcTransferBankField.java │ │ │ ├── CThostFtdcTransferBankToFutureReqField.java │ │ │ ├── CThostFtdcTransferBankToFutureRspField.java │ │ │ ├── CThostFtdcTransferFutureToBankReqField.java │ │ │ ├── CThostFtdcTransferFutureToBankRspField.java │ │ │ ├── CThostFtdcTransferHeaderField.java │ │ │ ├── CThostFtdcTransferQryBankReqField.java │ │ │ ├── CThostFtdcTransferQryBankRspField.java │ │ │ ├── CThostFtdcTransferQryDetailReqField.java │ │ │ ├── CThostFtdcTransferQryDetailRspField.java │ │ │ ├── CThostFtdcTransferSerialField.java │ │ │ ├── CThostFtdcUserIPField.java │ │ │ ├── CThostFtdcUserLogoutField.java │ │ │ ├── CThostFtdcUserPasswordUpdateField.java │ │ │ ├── CThostFtdcUserRightField.java │ │ │ ├── CThostFtdcUserRightsAssignField.java │ │ │ ├── CThostFtdcUserSessionField.java │ │ │ ├── CThostFtdcUserSystemInfoField.java │ │ │ ├── CThostFtdcVerifyCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordAndCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordField.java │ │ │ ├── CThostFtdcVerifyInvestorPasswordField.java │ │ │ ├── THOST_TE_RESUME_TYPE.java │ │ │ ├── jctpv6v6v9cpx64api.java │ │ │ ├── jctpv6v6v9cpx64apiConstants.java │ │ │ └── jctpv6v6v9cpx64apiJNI.java │ │ └── x64v6v6v9v │ │ └── api │ │ ├── CThostFtdcAccountPropertyField.java │ │ ├── CThostFtdcAccountregisterField.java │ │ ├── CThostFtdcAppIDAuthAssignField.java │ │ ├── CThostFtdcAuthForbiddenIPField.java │ │ ├── CThostFtdcAuthIPField.java │ │ ├── CThostFtdcAuthUserIDField.java │ │ ├── CThostFtdcAuthenticationInfoField.java │ │ ├── CThostFtdcBatchOrderActionField.java │ │ ├── CThostFtdcBrokerDepositField.java │ │ ├── CThostFtdcBrokerField.java │ │ ├── CThostFtdcBrokerSyncField.java │ │ ├── CThostFtdcBrokerTradingAlgosField.java │ │ ├── CThostFtdcBrokerTradingParamsField.java │ │ ├── CThostFtdcBrokerUserEventField.java │ │ ├── CThostFtdcBrokerUserField.java │ │ ├── CThostFtdcBrokerUserFunctionField.java │ │ ├── CThostFtdcBrokerUserOTPParamField.java │ │ ├── CThostFtdcBrokerUserPasswordField.java │ │ ├── CThostFtdcBrokerUserRightAssignField.java │ │ ├── CThostFtdcBrokerWithdrawAlgorithmField.java │ │ ├── CThostFtdcBulletinField.java │ │ ├── CThostFtdcCFMMCBrokerKeyField.java │ │ ├── CThostFtdcCFMMCTradingAccountKeyField.java │ │ ├── CThostFtdcCFMMCTradingAccountTokenField.java │ │ ├── CThostFtdcCancelAccountField.java │ │ ├── CThostFtdcChangeAccountField.java │ │ ├── CThostFtdcCombActionField.java │ │ ├── CThostFtdcCombInstrumentGuardField.java │ │ ├── CThostFtdcCombPromotionParamField.java │ │ ├── CThostFtdcCombinationLegField.java │ │ ├── CThostFtdcCommPhaseField.java │ │ ├── CThostFtdcCommRateModelField.java │ │ ├── CThostFtdcContractBankField.java │ │ ├── CThostFtdcCurrDRIdentityField.java │ │ ├── CThostFtdcCurrTransferIdentityField.java │ │ ├── CThostFtdcCurrentTimeField.java │ │ ├── CThostFtdcDRTransferField.java │ │ ├── CThostFtdcDepartmentUserField.java │ │ ├── CThostFtdcDepositResultInformField.java │ │ ├── CThostFtdcDepthMarketDataField.java │ │ ├── CThostFtdcDiscountField.java │ │ ├── CThostFtdcDisseminationField.java │ │ ├── CThostFtdcEWarrantOffsetField.java │ │ ├── CThostFtdcErrExecOrderActionField.java │ │ ├── CThostFtdcErrExecOrderField.java │ │ ├── CThostFtdcErrOrderActionField.java │ │ ├── CThostFtdcErrOrderField.java │ │ ├── CThostFtdcErrorConditionalOrderField.java │ │ ├── CThostFtdcExchangeBatchOrderActionField.java │ │ ├── CThostFtdcExchangeCombActionField.java │ │ ├── CThostFtdcExchangeExecOrderActionField.java │ │ ├── CThostFtdcExchangeExecOrderField.java │ │ ├── CThostFtdcExchangeField.java │ │ ├── CThostFtdcExchangeForQuoteField.java │ │ ├── CThostFtdcExchangeMarginRateAdjustField.java │ │ ├── CThostFtdcExchangeMarginRateField.java │ │ ├── CThostFtdcExchangeOptionSelfCloseActionField.java │ │ ├── CThostFtdcExchangeOptionSelfCloseField.java │ │ ├── CThostFtdcExchangeOrderActionErrorField.java │ │ ├── CThostFtdcExchangeOrderActionField.java │ │ ├── CThostFtdcExchangeOrderField.java │ │ ├── CThostFtdcExchangeOrderInsertErrorField.java │ │ ├── CThostFtdcExchangeQuoteActionField.java │ │ ├── CThostFtdcExchangeQuoteField.java │ │ ├── CThostFtdcExchangeRateField.java │ │ ├── CThostFtdcExchangeSequenceField.java │ │ ├── CThostFtdcExchangeTradeField.java │ │ ├── CThostFtdcExecOrderActionField.java │ │ ├── CThostFtdcExecOrderField.java │ │ ├── CThostFtdcFensUserInfoField.java │ │ ├── CThostFtdcForQuoteField.java │ │ ├── CThostFtdcForQuoteParamField.java │ │ ├── CThostFtdcForQuoteRspField.java │ │ ├── CThostFtdcForceUserLogoutField.java │ │ ├── CThostFtdcFrontStatusField.java │ │ ├── CThostFtdcFutureLimitPosiParamField.java │ │ ├── CThostFtdcFutureSignIOField.java │ │ ├── CThostFtdcIPListField.java │ │ ├── CThostFtdcIndexPriceField.java │ │ ├── CThostFtdcInputBatchOrderActionField.java │ │ ├── CThostFtdcInputCombActionField.java │ │ ├── CThostFtdcInputExecOrderActionField.java │ │ ├── CThostFtdcInputExecOrderField.java │ │ ├── CThostFtdcInputForQuoteField.java │ │ ├── CThostFtdcInputOptionSelfCloseActionField.java │ │ ├── CThostFtdcInputOptionSelfCloseField.java │ │ ├── CThostFtdcInputOrderActionField.java │ │ ├── CThostFtdcInputOrderField.java │ │ ├── CThostFtdcInputQuoteActionField.java │ │ ├── CThostFtdcInputQuoteField.java │ │ ├── CThostFtdcInstrumentCommissionRateField.java │ │ ├── CThostFtdcInstrumentField.java │ │ ├── CThostFtdcInstrumentMarginRateAdjustField.java │ │ ├── CThostFtdcInstrumentMarginRateField.java │ │ ├── CThostFtdcInstrumentMarginRateULField.java │ │ ├── CThostFtdcInstrumentOrderCommRateField.java │ │ ├── CThostFtdcInstrumentStatusField.java │ │ ├── CThostFtdcInstrumentTradingRightField.java │ │ ├── CThostFtdcInvestUnitField.java │ │ ├── CThostFtdcInvestorAccountField.java │ │ ├── CThostFtdcInvestorField.java │ │ ├── CThostFtdcInvestorGroupField.java │ │ ├── CThostFtdcInvestorPortfMarginRatioField.java │ │ ├── CThostFtdcInvestorPositionCombineDetailField.java │ │ ├── CThostFtdcInvestorPositionDetailField.java │ │ ├── CThostFtdcInvestorPositionField.java │ │ ├── CThostFtdcInvestorProdSPBMDetailField.java │ │ ├── CThostFtdcInvestorProductGroupMarginField.java │ │ ├── CThostFtdcInvestorWithdrawAlgorithmField.java │ │ ├── CThostFtdcLinkManField.java │ │ ├── CThostFtdcLoadSettlementInfoField.java │ │ ├── CThostFtdcLoginForbiddenIPField.java │ │ ├── CThostFtdcLoginForbiddenUserField.java │ │ ├── CThostFtdcLoginInfoField.java │ │ ├── CThostFtdcLogoutAllField.java │ │ ├── CThostFtdcMDTraderOfferField.java │ │ ├── CThostFtdcMMInstrumentCommissionRateField.java │ │ ├── CThostFtdcMMOptionInstrCommRateField.java │ │ ├── CThostFtdcManualSyncBrokerUserOTPField.java │ │ ├── CThostFtdcMarginModelField.java │ │ ├── CThostFtdcMarketDataAsk23Field.java │ │ ├── CThostFtdcMarketDataAsk45Field.java │ │ ├── CThostFtdcMarketDataAveragePriceField.java │ │ ├── CThostFtdcMarketDataBandingPriceField.java │ │ ├── CThostFtdcMarketDataBaseField.java │ │ ├── CThostFtdcMarketDataBestPriceField.java │ │ ├── CThostFtdcMarketDataBid23Field.java │ │ ├── CThostFtdcMarketDataBid45Field.java │ │ ├── CThostFtdcMarketDataExchangeField.java │ │ ├── CThostFtdcMarketDataField.java │ │ ├── CThostFtdcMarketDataLastMatchField.java │ │ ├── CThostFtdcMarketDataStaticField.java │ │ ├── CThostFtdcMarketDataUpdateTimeField.java │ │ ├── CThostFtdcMdApi.java │ │ ├── CThostFtdcMdSpi.java │ │ ├── CThostFtdcMulticastInstrumentField.java │ │ ├── CThostFtdcNoticeField.java │ │ ├── CThostFtdcNotifyFutureSignInField.java │ │ ├── CThostFtdcNotifyFutureSignOutField.java │ │ ├── CThostFtdcNotifyQueryAccountField.java │ │ ├── CThostFtdcNotifySyncKeyField.java │ │ ├── CThostFtdcOpenAccountField.java │ │ ├── CThostFtdcOptionInstrCommRateField.java │ │ ├── CThostFtdcOptionInstrDeltaField.java │ │ ├── CThostFtdcOptionInstrMarginAdjustField.java │ │ ├── CThostFtdcOptionInstrMiniMarginField.java │ │ ├── CThostFtdcOptionInstrTradeCostField.java │ │ ├── CThostFtdcOptionInstrTradingRightField.java │ │ ├── CThostFtdcOptionSelfCloseActionField.java │ │ ├── CThostFtdcOptionSelfCloseField.java │ │ ├── CThostFtdcOrderActionField.java │ │ ├── CThostFtdcOrderField.java │ │ ├── CThostFtdcParkedOrderActionField.java │ │ ├── CThostFtdcParkedOrderField.java │ │ ├── CThostFtdcPartBrokerField.java │ │ ├── CThostFtdcPortfTradeParamSettingField.java │ │ ├── CThostFtdcPositionProfitAlgorithmField.java │ │ ├── CThostFtdcProductExchRateField.java │ │ ├── CThostFtdcProductField.java │ │ ├── CThostFtdcProductGroupField.java │ │ ├── CThostFtdcQryAccountregisterField.java │ │ ├── CThostFtdcQryAuthForbiddenIPField.java │ │ ├── CThostFtdcQryBatchOrderActionField.java │ │ ├── CThostFtdcQryBrokerField.java │ │ ├── CThostFtdcQryBrokerTradingAlgosField.java │ │ ├── CThostFtdcQryBrokerTradingParamsField.java │ │ ├── CThostFtdcQryBrokerUserEventField.java │ │ ├── CThostFtdcQryBrokerUserField.java │ │ ├── CThostFtdcQryBrokerUserFunctionField.java │ │ ├── CThostFtdcQryBulletinField.java │ │ ├── CThostFtdcQryCFMMCBrokerKeyField.java │ │ ├── CThostFtdcQryCFMMCTradingAccountKeyField.java │ │ ├── CThostFtdcQryClassifiedInstrumentField.java │ │ ├── CThostFtdcQryCombActionField.java │ │ ├── CThostFtdcQryCombInstrumentGuardField.java │ │ ├── CThostFtdcQryCombPromotionParamField.java │ │ ├── CThostFtdcQryCombinationLegField.java │ │ ├── CThostFtdcQryCommRateModelField.java │ │ ├── CThostFtdcQryContractBankField.java │ │ ├── CThostFtdcQryCurrDRIdentityField.java │ │ ├── CThostFtdcQryDepthMarketDataField.java │ │ ├── CThostFtdcQryEWarrantOffsetField.java │ │ ├── CThostFtdcQryErrExecOrderActionField.java │ │ ├── CThostFtdcQryErrExecOrderField.java │ │ ├── CThostFtdcQryErrOrderActionField.java │ │ ├── CThostFtdcQryErrOrderField.java │ │ ├── CThostFtdcQryExchangeCombActionField.java │ │ ├── CThostFtdcQryExchangeExecOrderActionField.java │ │ ├── CThostFtdcQryExchangeExecOrderField.java │ │ ├── CThostFtdcQryExchangeField.java │ │ ├── CThostFtdcQryExchangeForQuoteField.java │ │ ├── CThostFtdcQryExchangeMarginRateAdjustField.java │ │ ├── CThostFtdcQryExchangeMarginRateField.java │ │ ├── CThostFtdcQryExchangeOrderActionField.java │ │ ├── CThostFtdcQryExchangeOrderField.java │ │ ├── CThostFtdcQryExchangeQuoteActionField.java │ │ ├── CThostFtdcQryExchangeQuoteField.java │ │ ├── CThostFtdcQryExchangeRateField.java │ │ ├── CThostFtdcQryExchangeSequenceField.java │ │ ├── CThostFtdcQryExecOrderActionField.java │ │ ├── CThostFtdcQryExecOrderField.java │ │ ├── CThostFtdcQryForQuoteField.java │ │ ├── CThostFtdcQryForQuoteParamField.java │ │ ├── CThostFtdcQryFrontStatusField.java │ │ ├── CThostFtdcQryHisOrderField.java │ │ ├── CThostFtdcQryIPListField.java │ │ ├── CThostFtdcQryInstrumentCommissionRateField.java │ │ ├── CThostFtdcQryInstrumentField.java │ │ ├── CThostFtdcQryInstrumentMarginRateField.java │ │ ├── CThostFtdcQryInstrumentOrderCommRateField.java │ │ ├── CThostFtdcQryInstrumentStatusField.java │ │ ├── CThostFtdcQryInstrumentTradingRightField.java │ │ ├── CThostFtdcQryInvestUnitField.java │ │ ├── CThostFtdcQryInvestorField.java │ │ ├── CThostFtdcQryInvestorGroupField.java │ │ ├── CThostFtdcQryInvestorPortfMarginRatioField.java │ │ ├── CThostFtdcQryInvestorPositionCombineDetailField.java │ │ ├── CThostFtdcQryInvestorPositionDetailField.java │ │ ├── CThostFtdcQryInvestorPositionField.java │ │ ├── CThostFtdcQryInvestorProdSPBMDetailField.java │ │ ├── CThostFtdcQryInvestorProductGroupMarginField.java │ │ ├── CThostFtdcQryLinkManField.java │ │ ├── CThostFtdcQryLoginForbiddenIPField.java │ │ ├── CThostFtdcQryLoginForbiddenUserField.java │ │ ├── CThostFtdcQryMDTraderOfferField.java │ │ ├── CThostFtdcQryMMInstrumentCommissionRateField.java │ │ ├── CThostFtdcQryMMOptionInstrCommRateField.java │ │ ├── CThostFtdcQryMarginModelField.java │ │ ├── CThostFtdcQryMaxOrderVolumeField.java │ │ ├── CThostFtdcQryMaxOrderVolumeWithPriceField.java │ │ ├── CThostFtdcQryMulticastInstrumentField.java │ │ ├── CThostFtdcQryNoticeField.java │ │ ├── CThostFtdcQryOptionInstrCommRateField.java │ │ ├── CThostFtdcQryOptionInstrTradeCostField.java │ │ ├── CThostFtdcQryOptionInstrTradingRightField.java │ │ ├── CThostFtdcQryOptionSelfCloseActionField.java │ │ ├── CThostFtdcQryOptionSelfCloseField.java │ │ ├── CThostFtdcQryOrderActionField.java │ │ ├── CThostFtdcQryOrderField.java │ │ ├── CThostFtdcQryParkedOrderActionField.java │ │ ├── CThostFtdcQryParkedOrderField.java │ │ ├── CThostFtdcQryPartBrokerField.java │ │ ├── CThostFtdcQryProductExchRateField.java │ │ ├── CThostFtdcQryProductField.java │ │ ├── CThostFtdcQryProductGroupField.java │ │ ├── CThostFtdcQryQuoteActionField.java │ │ ├── CThostFtdcQryQuoteField.java │ │ ├── CThostFtdcQryRiskSettleInvstPositionField.java │ │ ├── CThostFtdcQryRiskSettleProductStatusField.java │ │ ├── CThostFtdcQrySPBMFutureParameterField.java │ │ ├── CThostFtdcQrySPBMInterParameterField.java │ │ ├── CThostFtdcQrySPBMIntraParameterField.java │ │ ├── CThostFtdcQrySPBMInvestorPortfDefField.java │ │ ├── CThostFtdcQrySPBMOptionParameterField.java │ │ ├── CThostFtdcQrySPBMPortfDefinitionField.java │ │ ├── CThostFtdcQrySecAgentACIDMapField.java │ │ ├── CThostFtdcQrySecAgentCheckModeField.java │ │ ├── CThostFtdcQrySecAgentTradeInfoField.java │ │ ├── CThostFtdcQrySettlementInfoConfirmField.java │ │ ├── CThostFtdcQrySettlementInfoField.java │ │ ├── CThostFtdcQryStrikeOffsetField.java │ │ ├── CThostFtdcQrySuperUserField.java │ │ ├── CThostFtdcQrySuperUserFunctionField.java │ │ ├── CThostFtdcQrySyncDelaySwapField.java │ │ ├── CThostFtdcQrySyncDepositField.java │ │ ├── CThostFtdcQrySyncFundMortgageField.java │ │ ├── CThostFtdcQrySyncStatusField.java │ │ ├── CThostFtdcQryTradeField.java │ │ ├── CThostFtdcQryTraderField.java │ │ ├── CThostFtdcQryTraderOfferField.java │ │ ├── CThostFtdcQryTradingAccountField.java │ │ ├── CThostFtdcQryTradingCodeField.java │ │ ├── CThostFtdcQryTradingNoticeField.java │ │ ├── CThostFtdcQryTransferBankField.java │ │ ├── CThostFtdcQryTransferSerialField.java │ │ ├── CThostFtdcQryUserRightsAssignField.java │ │ ├── CThostFtdcQryUserSessionField.java │ │ ├── CThostFtdcQueryBrokerDepositField.java │ │ ├── CThostFtdcQueryCFMMCTradingAccountTokenField.java │ │ ├── CThostFtdcQueryFreqField.java │ │ ├── CThostFtdcQuoteActionField.java │ │ ├── CThostFtdcQuoteField.java │ │ ├── CThostFtdcRemoveParkedOrderActionField.java │ │ ├── CThostFtdcRemoveParkedOrderField.java │ │ ├── CThostFtdcReqApiHandshakeField.java │ │ ├── CThostFtdcReqAuthenticateField.java │ │ ├── CThostFtdcReqCancelAccountField.java │ │ ├── CThostFtdcReqChangeAccountField.java │ │ ├── CThostFtdcReqDayEndFileReadyField.java │ │ ├── CThostFtdcReqFutureSignOutField.java │ │ ├── CThostFtdcReqGenUserCaptchaField.java │ │ ├── CThostFtdcReqGenUserTextField.java │ │ ├── CThostFtdcReqOpenAccountField.java │ │ ├── CThostFtdcReqQueryAccountField.java │ │ ├── CThostFtdcReqQueryTradeResultBySerialField.java │ │ ├── CThostFtdcReqRepealField.java │ │ ├── CThostFtdcReqSyncKeyField.java │ │ ├── CThostFtdcReqTransferField.java │ │ ├── CThostFtdcReqUserAuthMethodField.java │ │ ├── CThostFtdcReqUserLoginField.java │ │ ├── CThostFtdcReqUserLoginSCField.java │ │ ├── CThostFtdcReqUserLoginWithCaptchaField.java │ │ ├── CThostFtdcReqUserLoginWithOTPField.java │ │ ├── CThostFtdcReqUserLoginWithTextField.java │ │ ├── CThostFtdcReqVerifyApiKeyField.java │ │ ├── CThostFtdcReserveOpenAccountConfirmField.java │ │ ├── CThostFtdcReserveOpenAccountField.java │ │ ├── CThostFtdcReturnResultField.java │ │ ├── CThostFtdcRiskSettleInvstPositionField.java │ │ ├── CThostFtdcRiskSettleProductStatusField.java │ │ ├── CThostFtdcRspApiHandshakeField.java │ │ ├── CThostFtdcRspAuthenticateField.java │ │ ├── CThostFtdcRspFutureSignInField.java │ │ ├── CThostFtdcRspFutureSignOutField.java │ │ ├── CThostFtdcRspGenUserCaptchaField.java │ │ ├── CThostFtdcRspGenUserTextField.java │ │ ├── CThostFtdcRspInfoField.java │ │ ├── CThostFtdcRspQueryAccountField.java │ │ ├── CThostFtdcRspQueryTradeResultBySerialField.java │ │ ├── CThostFtdcRspRepealField.java │ │ ├── CThostFtdcRspSyncKeyField.java │ │ ├── CThostFtdcRspTransferField.java │ │ ├── CThostFtdcRspUserAuthMethodField.java │ │ ├── CThostFtdcRspUserLogin2Field.java │ │ ├── CThostFtdcRspUserLoginField.java │ │ ├── CThostFtdcSPBMFutureParameterField.java │ │ ├── CThostFtdcSPBMInterParameterField.java │ │ ├── CThostFtdcSPBMIntraParameterField.java │ │ ├── CThostFtdcSPBMInvestorPortfDefField.java │ │ ├── CThostFtdcSPBMOptionParameterField.java │ │ ├── CThostFtdcSPBMPortfDefinitionField.java │ │ ├── CThostFtdcSecAgentACIDMapField.java │ │ ├── CThostFtdcSecAgentCheckModeField.java │ │ ├── CThostFtdcSecAgentTradeInfoField.java │ │ ├── CThostFtdcSettlementInfoConfirmField.java │ │ ├── CThostFtdcSettlementInfoField.java │ │ ├── CThostFtdcSettlementRefField.java │ │ ├── CThostFtdcSpecificInstrumentField.java │ │ ├── CThostFtdcStrikeOffsetField.java │ │ ├── CThostFtdcSuperUserField.java │ │ ├── CThostFtdcSuperUserFunctionField.java │ │ ├── CThostFtdcSyncDelaySwapField.java │ │ ├── CThostFtdcSyncDelaySwapFrozenField.java │ │ ├── CThostFtdcSyncDeltaDceCombInstrumentField.java │ │ ├── CThostFtdcSyncDeltaDepthMarketDataField.java │ │ ├── CThostFtdcSyncDeltaEWarrantOffsetField.java │ │ ├── CThostFtdcSyncDeltaExchMarginRateField.java │ │ ├── CThostFtdcSyncDeltaIndexPriceField.java │ │ ├── CThostFtdcSyncDeltaInfoField.java │ │ ├── CThostFtdcSyncDeltaInitInvstMarginField.java │ │ ├── CThostFtdcSyncDeltaInvstCommRateField.java │ │ ├── CThostFtdcSyncDeltaInvstMarginRateField.java │ │ ├── CThostFtdcSyncDeltaInvstMarginRateULField.java │ │ ├── CThostFtdcSyncDeltaInvstPosCombDtlField.java │ │ ├── CThostFtdcSyncDeltaInvstPosDtlField.java │ │ ├── CThostFtdcSyncDeltaOptExchMarginField.java │ │ ├── CThostFtdcSyncDeltaOptInvstCommRateField.java │ │ ├── CThostFtdcSyncDeltaOptInvstMarginField.java │ │ ├── CThostFtdcSyncDeltaProductExchRateField.java │ │ ├── CThostFtdcSyncDeltaProductStatusField.java │ │ ├── CThostFtdcSyncDeltaTradingAccountField.java │ │ ├── CThostFtdcSyncDepositField.java │ │ ├── CThostFtdcSyncFundMortgageField.java │ │ ├── CThostFtdcSyncSPBMParameterEndField.java │ │ ├── CThostFtdcSyncStatusField.java │ │ ├── CThostFtdcSyncingInstrumentCommissionRateField.java │ │ ├── CThostFtdcSyncingInstrumentMarginRateField.java │ │ ├── CThostFtdcSyncingInstrumentTradingRightField.java │ │ ├── CThostFtdcSyncingInvestorField.java │ │ ├── CThostFtdcSyncingInvestorGroupField.java │ │ ├── CThostFtdcSyncingInvestorPositionField.java │ │ ├── CThostFtdcSyncingTradingAccountField.java │ │ ├── CThostFtdcSyncingTradingCodeField.java │ │ ├── CThostFtdcTradeField.java │ │ ├── CThostFtdcTradeParamField.java │ │ ├── CThostFtdcTraderApi.java │ │ ├── CThostFtdcTraderField.java │ │ ├── CThostFtdcTraderOfferField.java │ │ ├── CThostFtdcTraderSpi.java │ │ ├── CThostFtdcTradingAccountField.java │ │ ├── CThostFtdcTradingAccountPasswordField.java │ │ ├── CThostFtdcTradingAccountPasswordUpdateField.java │ │ ├── CThostFtdcTradingAccountPasswordUpdateV1Field.java │ │ ├── CThostFtdcTradingAccountReserveField.java │ │ ├── CThostFtdcTradingCodeField.java │ │ ├── CThostFtdcTradingNoticeField.java │ │ ├── CThostFtdcTradingNoticeInfoField.java │ │ ├── CThostFtdcTransferBankField.java │ │ ├── CThostFtdcTransferBankToFutureReqField.java │ │ ├── CThostFtdcTransferBankToFutureRspField.java │ │ ├── CThostFtdcTransferFutureToBankReqField.java │ │ ├── CThostFtdcTransferFutureToBankRspField.java │ │ ├── CThostFtdcTransferHeaderField.java │ │ ├── CThostFtdcTransferQryBankReqField.java │ │ ├── CThostFtdcTransferQryBankRspField.java │ │ ├── CThostFtdcTransferQryDetailReqField.java │ │ ├── CThostFtdcTransferQryDetailRspField.java │ │ ├── CThostFtdcTransferSerialField.java │ │ ├── CThostFtdcUserIPField.java │ │ ├── CThostFtdcUserLogoutField.java │ │ ├── CThostFtdcUserPasswordUpdateField.java │ │ ├── CThostFtdcUserRightField.java │ │ ├── CThostFtdcUserRightsAssignField.java │ │ ├── CThostFtdcUserSessionField.java │ │ ├── CThostFtdcUserSystemInfoField.java │ │ ├── CThostFtdcVerifyCustInfoField.java │ │ ├── CThostFtdcVerifyFuturePasswordAndCustInfoField.java │ │ ├── CThostFtdcVerifyFuturePasswordField.java │ │ ├── CThostFtdcVerifyInvestorPasswordField.java │ │ ├── THOST_TE_RESUME_TYPE.java │ │ ├── jctpv6v6v9x64api.java │ │ ├── jctpv6v6v9x64apiConstants.java │ │ └── jctpv6v6v9x64apiJNI.java │ ├── kotlin │ └── xyz │ │ └── redtorch │ │ └── gateway │ │ └── ctp │ │ ├── x64v6v3v19p1v │ │ ├── CtpConstant.kt │ │ ├── CtpGatewayImpl.kt │ │ ├── MdSpi.kt │ │ └── TdSpi.kt │ │ ├── x64v6v3v19t1v │ │ ├── CtpConstant.kt │ │ ├── CtpGatewayImpl.kt │ │ ├── MdSpi.kt │ │ └── TdSpi.kt │ │ ├── x64v6v6v9cpv │ │ ├── CtpConstant.kt │ │ ├── CtpGatewayImpl.kt │ │ ├── MdSpi.kt │ │ └── TdSpi.kt │ │ └── x64v6v6v9v │ │ ├── CtpConstant.kt │ │ ├── CtpGatewayImpl.kt │ │ ├── MdSpi.kt │ │ └── TdSpi.kt │ └── resources │ ├── Linux README.txt │ └── assembly │ ├── jctpv6v3v19p1x64api │ ├── jctpv6v3v19p1x64api.dll │ ├── libjctpv6v3v19p1x64api.so │ ├── libthostmduserapi_se.so │ ├── libthosttraderapi_se.so │ ├── thostmduserapi_se.dll │ └── thosttraderapi_se.dll │ ├── jctpv6v3v19t1x64api │ ├── jctpv6v3v19t1x64api.dll │ ├── libjctpv6v3v19t1x64api.so │ ├── libthostmduserapi_se.so │ ├── libthosttraderapi_se.so │ ├── thostmduserapi_se.dll │ └── thosttraderapi_se.dll │ ├── jctpv6v6v9cpx64api │ ├── jctpv6v6v9cpx64api.dll │ ├── thostmduserapi_se.dll │ ├── thostmduserapi_se.so │ ├── thosttraderapi_se.dll │ └── thosttraderapi_se.so │ ├── jctpv6v6v9x64api │ ├── jctpv6v6v9x64api.dll │ ├── thostmduserapi_se.dll │ ├── thostmduserapi_se.so │ ├── thosttraderapi_se.dll │ └── thosttraderapi_se.so │ └── libiconv.dll ├── rt-master ├── build.gradle.kts └── src │ └── main │ ├── kotlin │ └── xyz │ │ └── redtorch │ │ └── master │ │ ├── RedTorchMasterApplication.kt │ │ ├── dao │ │ ├── BaseDao.kt │ │ ├── GatewaySettingDao.kt │ │ ├── SlaveNodeDao.kt │ │ ├── UserDao.kt │ │ └── impl │ │ │ ├── BaseDaoImpl.kt │ │ │ ├── GatewaySettingDaoImpl.kt │ │ │ ├── SlaveNodeDaoImpl.kt │ │ │ └── UserDaoImpl.kt │ │ ├── db │ │ ├── ZookeeperService.kt │ │ └── impl │ │ │ └── ZookeeperServiceImpl.kt │ │ ├── gui │ │ ├── bean │ │ │ ├── GatewaySettingFXBean.kt │ │ │ ├── SlaveNodeFXBean.kt │ │ │ ├── UserFXBean.kt │ │ │ └── UserSessionFXBean.kt │ │ ├── state │ │ │ └── ViewState.kt │ │ ├── utils │ │ │ └── FXUtils.kt │ │ └── view │ │ │ ├── GatewaySettingView.kt │ │ │ ├── LoginView.kt │ │ │ ├── ManagementView.kt │ │ │ ├── SlaveNodeView.kt │ │ │ ├── UserSessionView.kt │ │ │ ├── UserView.kt │ │ │ └── ZookeeperView.kt │ │ ├── po │ │ └── BackupPo.kt │ │ ├── service │ │ ├── GatewaySettingService.kt │ │ ├── SlaveNodeService.kt │ │ ├── SystemService.kt │ │ ├── UserService.kt │ │ └── impl │ │ │ ├── GatewaySettingServiceImpl.kt │ │ │ ├── SlaveNodeServiceImpl.kt │ │ │ ├── SystemServiceImpl.kt │ │ │ └── UserServiceImpl.kt │ │ ├── sync │ │ ├── SlaveNodeTransceiver.kt │ │ └── TradeClientTransceiver.kt │ │ └── web │ │ └── socket │ │ ├── SlaveNodeWebSocketHandler.kt │ │ ├── TradeClientWebSocketHandler.kt │ │ ├── WebSocketServerConfig.kt │ │ └── WebSocketServerHandshakeInterceptor.kt │ └── resources │ ├── application.properties │ ├── fx │ └── style │ │ └── main.css │ └── logback-spring.xml ├── rt-slave ├── build.gradle.kts └── src │ └── main │ ├── kotlin │ └── xyz │ │ └── redtorch │ │ └── slave │ │ ├── RedTorchSlaveApplication.kt │ │ └── service │ │ ├── GatewayMonitorService.kt │ │ ├── SlaveCacheService.kt │ │ ├── SlaveSyncService.kt │ │ └── impl │ │ ├── GatewayMonitorServiceImpl.kt │ │ ├── SlaveCacheServiceImpl.kt │ │ └── SlaveSyncServiceImpl.kt │ └── resources │ ├── application.properties │ └── logback-spring.xml └── settings.gradle.kts /.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | .gradle 3 | /build/ 4 | /data/ 5 | !gradle/wrapper/gradle-wrapper.jar 6 | !**/src/main/**/build/ 7 | !**/src/test/**/build/ 8 | 9 | ### STS ### 10 | .apt_generated 11 | .classpath 12 | .factorypath 13 | .project 14 | .settings 15 | .springBeans 16 | .sts4-cache 17 | bin/ 18 | !**/src/main/**/bin/ 19 | !**/src/test/**/bin/ 20 | 21 | ### IntelliJ IDEA ### 22 | .idea 23 | *.iws 24 | *.iml 25 | *.ipr 26 | out/ 27 | !**/src/main/**/out/ 28 | !**/src/test/**/out/ 29 | 30 | ### NetBeans ### 31 | /nbproject/private/ 32 | /nbbuild/ 33 | /dist/ 34 | /nbdist/ 35 | /.nb-gradle/ 36 | 37 | ### VS Code ### 38 | .vscode/ 39 | 40 | 41 | build/ 42 | 43 | *.log 44 | *.pid 45 | *.lock 46 | *.pwd -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx5120m -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 2 | org.gradle.parallel=true 3 | org.gradle.caching=true 4 | org.gradle.unsafe.configuration-cache=true 5 | kotlin.incremental.useClasspathSnapshot=true -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /log/seize.txt: -------------------------------------------------------------------------------- 1 | GIT -------------------------------------------------------------------------------- /rt-common/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("org.springframework.boot") 3 | id("io.spring.dependency-management") 4 | } 5 | 6 | dependencies { 7 | implementation("com.fasterxml.jackson.core:jackson-databind:${rootProject.extra.get("jacksonVersion")}") 8 | implementation("com.fasterxml.jackson.core:jackson-core:${rootProject.extra.get("jacksonVersion")}") 9 | implementation("com.fasterxml.jackson.core:jackson-annotations:${rootProject.extra.get("jacksonVersion")}") 10 | implementation("com.fasterxml.jackson.module:jackson-module-kotlin:${rootProject.extra.get("jacksonVersion")}") 11 | implementation("org.apache.zookeeper:zookeeper:${rootProject.extra.get("zookeeperVersion")}") 12 | implementation("commons-io:commons-io:${rootProject.extra.get("commonsIOVersion")}") 13 | implementation("org.lz4:lz4-java:${rootProject.extra.get("lz4JavaVersion")}") 14 | // implementation("com.github.java-json-tools:json-patch:1.13") 15 | implementation("com.flipkart.zjsonpatch:zjsonpatch:${rootProject.extra.get("zjsonpatchVersion")}") 16 | compileOnly("org.springframework.boot:spring-boot-starter-undertow") 17 | compileOnly("org.springframework.boot:spring-boot-starter-websocket") { 18 | exclude("org.springframework.boot","spring-boot-starter-tomcat") 19 | } 20 | 21 | testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0") 22 | testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine") 23 | 24 | } 25 | -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/cache/CacheService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.cache 2 | 3 | import xyz.redtorch.common.trade.dto.* 4 | 5 | interface CacheService { 6 | fun getTickList(): List 7 | fun getPositionList(): List 8 | fun getAccountList(): List 9 | fun getOrderList(): List 10 | fun getTradeList(): List 11 | fun getContractList(): List 12 | fun updateAccountMap(accountMap: Map) 13 | fun updatePositionMap(positionMap: Map) 14 | fun updateContractMap(contractMap: Map) 15 | fun updateTickMap(tickMap: Map) 16 | fun updateOrderMap(orderMap: Map) 17 | fun updateTradeMap(tradeMap: Map) 18 | fun updateTick(tick: Tick) 19 | fun updateTrade(trade: Trade) 20 | fun updateOrder(order: Order) 21 | fun queryAccountByAccountId(accountId: String): Account? 22 | fun queryPositionByPositionId(positionId: String): Position? 23 | fun queryTickByUniformSymbol(uniformSymbol: String): Tick? 24 | fun queryContractByUniformSymbol(uniformSymbol: String): Contract? 25 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/enumeration/ConnectionStatusEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.enumeration 2 | 3 | enum class ConnectionStatusEnum(val value: Int) { 4 | Unknown(0), 5 | Connecting(1), 6 | Connected(2), 7 | Disconnecting(3), 8 | Disconnected(4) 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/event/Event.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.event 2 | 3 | import xyz.redtorch.common.sync.dto.Notice 4 | import xyz.redtorch.common.trade.dto.* 5 | 6 | class Event { 7 | var eventType = EventTypeEnum.Unknown 8 | var tick: Tick? = null 9 | var trade: Trade? = null 10 | var order: Order? = null 11 | var position: Position? = null 12 | var account: Account? = null 13 | var contract: Contract? = null 14 | var notice: Notice? = null 15 | var tradeList: List? = null 16 | var orderList: List? = null 17 | var contractList: List? = null 18 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/event/EventObserver.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.event 2 | 3 | interface EventObserver { 4 | fun handleTransactionEvent(event: Event) 5 | fun handleQuoteEvent(event: Event) 6 | fun handleCommonEvent(event: Event) 7 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/event/EventTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.event 2 | 3 | enum class EventTypeEnum(val value: Int) { 4 | Unknown(1), 5 | Tick(2), 6 | Trade(3), 7 | Order(4), 8 | Position(5), 9 | Account(6), 10 | Contract(7), 11 | TradeList(8), 12 | OrderList(9), 13 | ContractList(10), 14 | Notice(11) 15 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/event/service/EventService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.event.service 2 | 3 | import xyz.redtorch.common.event.EventObserver 4 | import xyz.redtorch.common.sync.dto.Notice 5 | import xyz.redtorch.common.trade.dto.* 6 | 7 | interface EventService { 8 | fun emit(account: Account) 9 | fun emit(position: Position) 10 | fun emit(order: Order) 11 | fun emit(trade: Trade) 12 | fun emit(tick: Tick) 13 | fun emit(contract: Contract) 14 | fun emit(notice: Notice) 15 | fun emitContractList(contractList: List) 16 | fun emitTradeList(tradeList: List) 17 | fun emitOrderList(orderList: List) 18 | fun register(eventObserver: EventObserver) 19 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/storage/enumeration/GatewayTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.storage.enumeration 2 | 3 | enum class GatewayTypeEnum(val value: Int) { 4 | TradeAndQuote(0), 5 | Trade(1), 6 | Quote(2) 7 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/storage/po/BasePo.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.storage.po 2 | 3 | abstract class BasePo { 4 | var id: String? = null 5 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/storage/po/GatewayAdapterCtpSetting.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.storage.po 2 | 3 | class GatewayAdapterCtpSetting { 4 | var userId: String? = null 5 | var password: String? = null 6 | var brokerId: String? = null 7 | var tdHost: String? = null 8 | var tdPort: String? = null 9 | var mdHost: String? = null 10 | var mdPort: String? = null 11 | var authCode: String? = null 12 | var userProductInfo: String? = null 13 | var appId: String? = null 14 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/storage/po/GatewayAdapterIbSetting.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.storage.po 2 | 3 | class GatewayAdapterIbSetting { 4 | // 连接地址 5 | var host: String? = null 6 | 7 | // 连接端口 8 | var port = 0 9 | 10 | // 客户端ID 11 | var clientId = 0 12 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/storage/po/GatewaySetting.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.storage.po 2 | 3 | import xyz.redtorch.common.enumeration.ConnectionStatusEnum 4 | import xyz.redtorch.common.storage.enumeration.GatewayTypeEnum 5 | 6 | class GatewaySetting : BasePo() { 7 | 8 | // 网关名称 9 | var name: String? = null 10 | 11 | // 网关描述 12 | var description: String? = null 13 | 14 | // 实现类 15 | var implementClassName: String? = null 16 | 17 | // 网关类型 18 | var gatewayType: GatewayTypeEnum = GatewayTypeEnum.TradeAndQuote 19 | 20 | // 目标节点 21 | var targetSlaveNodeId: String = "0" 22 | 23 | // 855-1555#2033-2359#0-300 24 | var autoConnectTimeRanges: String? = null 25 | 26 | // 状态 27 | var connectionStatus: ConnectionStatusEnum = ConnectionStatusEnum.Unknown 28 | 29 | // 适配器配置JSON字符串 30 | var adapterSettingJsonString: String? = null 31 | 32 | // 版本 33 | var version: Long = 0 34 | 35 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/storage/po/SlaveNode.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.storage.po 2 | 3 | import xyz.redtorch.common.enumeration.ConnectionStatusEnum 4 | 5 | class SlaveNode : BasePo() { 6 | var token: String? = null 7 | var connectionStatus: ConnectionStatusEnum? = ConnectionStatusEnum.Unknown 8 | var description: String? = null 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/storage/po/User.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.storage.po 2 | 3 | class User : BasePo() { 4 | var token: String? = null 5 | var description: String? = null 6 | var banned: Boolean = false 7 | 8 | var permitReadAllAccounts = true 9 | var acceptReadAccountIdSet: Set = HashSet() 10 | var denyReadAccountIdSet: Set = HashSet() 11 | 12 | var permitTradeAllAccounts = false 13 | var acceptTradeAccountIdSet: Set = HashSet() 14 | var denyTradeAccountIdSet: Set = HashSet() 15 | 16 | var permitTradeAllContracts = false 17 | var acceptTradeUniformSymbolSet: Set = HashSet() 18 | var denyTradeUniformSymbolSet: Set = HashSet() 19 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/Action.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.sync.enumeration.ActionEnum 4 | 5 | class Action { 6 | var actionEnum = ActionEnum.Unknown 7 | var data: String? = null 8 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/Auth.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | class Auth { 4 | var id: String? = null 5 | var token: String? = null 6 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/BaseMirror.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.trade.dto.Contract 4 | 5 | class BaseMirror { 6 | var contractMap = HashMap() 7 | 8 | fun clone(): BaseMirror { 9 | val baseMirror = BaseMirror() 10 | baseMirror.contractMap.putAll(contractMap) 11 | return baseMirror 12 | } 13 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/CancelOrder.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | class CancelOrder { 4 | var gatewayId: String = "" 5 | var originOrderId: String = "" // 原始定单ID 6 | var orderId: String = "" // 定单ID 7 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/GatewayStatus.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.enumeration.ConnectionStatusEnum 4 | 5 | class GatewayStatus { 6 | var gatewayId = "" 7 | var connectionStatus = ConnectionStatusEnum.Unknown 8 | var isAuthError = false 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/InsertOrder.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.trade.dto.Contract 4 | import xyz.redtorch.common.trade.enumeration.* 5 | 6 | 7 | class InsertOrder { 8 | var originOrderId: String = "" // 原始定单ID 9 | var accountCode: String = "" // 账户代码 10 | var currency: CurrencyEnum = CurrencyEnum.Unknown // 币种 11 | var contract: Contract? = null // 合约 12 | var gatewayId: String = "" // 网关ID 13 | var volume: Int = 0 // 数量 14 | var price = 0.0 // 价格 15 | var orderPriceType: OrderPriceTypeEnum = OrderPriceTypeEnum.Unknown // 价格类型 16 | var direction: DirectionEnum = DirectionEnum.Unknown // 方向 17 | var offsetFlag: OffsetFlagEnum = OffsetFlagEnum.Unknown // 组合开平标志 18 | var hedgeFlag: HedgeFlagEnum = HedgeFlagEnum.Unknown // 组合投机套保标志 19 | var timeCondition: TimeConditionEnum = TimeConditionEnum.Unknown // 时效 20 | var gtdDate: String = "" // GTD日期 21 | var volumeCondition: VolumeConditionEnum = VolumeConditionEnum.Unknown // 成交量类型 22 | var minVolume: Int = 0 // 最小成交量 23 | var contingentCondition: ContingentConditionEnum = ContingentConditionEnum.Unknown // 触发条件 24 | var stopPrice = 0.0 // 止损价 25 | var forceCloseReason: ForceCloseReasonEnum = ForceCloseReasonEnum.Unknown // 强平原因 26 | var autoSuspend: Int = 0 // 自动挂起标志 27 | var userForceClose: Int = 0 // 用户强评标志 28 | var swapOrder: Int = 0 // 互换单标志 29 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/Notice.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.sync.enumeration.InfoLevelEnum 4 | 5 | class Notice { 6 | var timestamp = System.currentTimeMillis() 7 | var infoLevel = InfoLevelEnum.INFO 8 | var info = "" 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/OrderRtnPatch.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import com.fasterxml.jackson.databind.JsonNode 4 | import xyz.redtorch.common.trade.dto.Order 5 | 6 | class OrderRtnPatch { 7 | var orderId: String? = null 8 | var jsonPath: JsonNode? = null 9 | var order: Order? = null 10 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/PortfolioMirror.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.trade.dto.Account 4 | import xyz.redtorch.common.trade.dto.Position 5 | 6 | class PortfolioMirror { 7 | var accountMap = HashMap() 8 | var positionMap = HashMap() 9 | 10 | fun clone(): PortfolioMirror { 11 | val portfolioMirror = PortfolioMirror() 12 | portfolioMirror.accountMap.putAll(accountMap) 13 | portfolioMirror.positionMap.putAll(positionMap) 14 | return portfolioMirror 15 | } 16 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/QuoteMirror.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.trade.dto.Contract 4 | import xyz.redtorch.common.trade.dto.Tick 5 | 6 | class QuoteMirror { 7 | var subscribedMap = HashMap() 8 | var tickMap = HashMap() 9 | 10 | fun clone(): QuoteMirror { 11 | val quoteMirror = QuoteMirror() 12 | quoteMirror.subscribedMap.putAll(subscribedMap) 13 | quoteMirror.tickMap.putAll(tickMap) 14 | return quoteMirror 15 | } 16 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/SlaveNodeReportMirror.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | class SlaveNodeReportMirror { 4 | val gatewayStatusMap = HashMap() 5 | 6 | fun clone(): SlaveNodeReportMirror { 7 | val slaveNodeReportMirror = SlaveNodeReportMirror() 8 | slaveNodeReportMirror.gatewayStatusMap.putAll(gatewayStatusMap) 9 | return slaveNodeReportMirror 10 | } 11 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/SlaveNodeSettingMirror.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.storage.po.GatewaySetting 4 | import xyz.redtorch.common.trade.dto.Contract 5 | 6 | class SlaveNodeSettingMirror { 7 | var subscribedMap = HashMap() 8 | var gatewaySettingMap = HashMap() 9 | 10 | fun clone(): SlaveNodeSettingMirror { 11 | val slaveNodeSettingMirrorCopy = SlaveNodeSettingMirror() 12 | slaveNodeSettingMirrorCopy.subscribedMap.putAll(subscribedMap) 13 | slaveNodeSettingMirrorCopy.gatewaySettingMap.putAll(gatewaySettingMap) 14 | return slaveNodeSettingMirrorCopy 15 | } 16 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/TickRtnPatch.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import com.fasterxml.jackson.databind.JsonNode 4 | import xyz.redtorch.common.trade.dto.Tick 5 | 6 | class TickRtnPatch { 7 | var uniformSymbol: String? = null 8 | var jsonPath: JsonNode? = null 9 | var tick: Tick? = null 10 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/TradeRtnPatch.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import com.fasterxml.jackson.databind.JsonNode 4 | import xyz.redtorch.common.trade.dto.Trade 5 | 6 | class TradeRtnPatch { 7 | var uniformSymbol: String? = null 8 | var jsonPath: JsonNode? = null 9 | var trade: Trade? = null 10 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/dto/TransactionMirror.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.dto 2 | 3 | import xyz.redtorch.common.trade.dto.Order 4 | import xyz.redtorch.common.trade.dto.Trade 5 | 6 | class TransactionMirror { 7 | var orderMap = HashMap() 8 | var tradeMap = HashMap() 9 | 10 | fun clone(): TransactionMirror { 11 | val transactionMirror = TransactionMirror() 12 | transactionMirror.tradeMap.putAll(tradeMap) 13 | transactionMirror.orderMap.putAll(orderMap) 14 | return transactionMirror 15 | } 16 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/enumeration/ActionEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.enumeration 2 | 3 | enum class ActionEnum(val value: Int) { 4 | Unknown(0), 5 | Auth(1), 6 | AuthResult(2), 7 | TransactionMirrorPatch(3), 8 | QuoteMirrorPatch(4), 9 | NoticeRtn(5), 10 | TradeRtnPatch(6), 11 | OrderRtnPatch(7), 12 | TickRtnPatch(8), 13 | BaseMirrorPatch(9), 14 | PortfolioMirrorPatch(10), 15 | SlaveNodeStatusMirrorPatch(11), 16 | SlaveNodeSettingMirrorPatch(12), 17 | InsertOrder(13), 18 | CancelOrder(14), 19 | Subscribe(15), 20 | Unsubscribe(16) 21 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/sync/enumeration/InfoLevelEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.sync.enumeration 2 | 3 | enum class InfoLevelEnum(var value: Int) { 4 | INFO(0), 5 | WARN(1), 6 | ERROR(2), 7 | CRITICAL(3) 8 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/client/service/TradeClientSyncService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.client.service 2 | 3 | import xyz.redtorch.common.sync.dto.CancelOrder 4 | import xyz.redtorch.common.sync.dto.InsertOrder 5 | import xyz.redtorch.common.trade.dto.Contract 6 | 7 | interface TradeClientSyncService { 8 | fun setCallBack(callBack: TradeClientSyncServiceCallBack) 9 | 10 | fun auth(userId: String, authToken: String): Boolean 11 | 12 | fun subscribeContract(contract: Contract) 13 | fun unsubscribeContract(contract: Contract) 14 | 15 | fun subscribeContractList(contractList: List) 16 | fun unsubscribeContractList(contractList: List) 17 | 18 | fun cancelOrder(cancelOrder: CancelOrder) 19 | fun submitOrder(insertOrder: InsertOrder) 20 | 21 | fun getDelay(): Long 22 | 23 | fun isConnected(): Boolean 24 | fun isAutoReconnect(): Boolean 25 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/client/service/TradeClientSyncServiceCallBack.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.client.service 2 | 3 | import xyz.redtorch.common.sync.dto.Notice 4 | import xyz.redtorch.common.trade.dto.Order 5 | import xyz.redtorch.common.trade.dto.Tick 6 | import xyz.redtorch.common.trade.dto.Trade 7 | 8 | interface TradeClientSyncServiceCallBack { 9 | fun handleTradeRtn(trade: Trade) 10 | fun handleOrderRtn(order: Order) 11 | fun handleTickRtn(tick: Tick) 12 | fun handleNoticeRtn(notice: Notice) 13 | fun handleAuthFailed() 14 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/dto/Account.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.dto 2 | 3 | import xyz.redtorch.common.trade.enumeration.CurrencyEnum 4 | 5 | class Account { 6 | var accountId: String = ""// ID,通常是 <账户代码@币种@网关> 7 | var code: String = ""// 代码 8 | var name: String = ""// 名称 9 | var currency: CurrencyEnum = CurrencyEnum.Unknown // 币种 10 | var preBalance: Double = 0.0// 昨日权益 11 | var balance: Double = 0.0 // 权益 12 | var available: Double = 0.0 // 可用资金 13 | var commission: Double = 0.0 // 手续费 14 | var margin: Double = 0.0// 保证金占用 15 | var closeProfit: Double = 0.0// 平仓盈亏 16 | var positionProfit: Double = 0.0 // 持仓盈亏 17 | var deposit: Double = 0.0// 入金 18 | var withdraw: Double = 0.0// 出金 19 | var gatewayId: String = "" // 网关ID 20 | var localCreatedTimestamp: Long = 0 // 本地创建时间 21 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/dto/Contract.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.dto 2 | 3 | import xyz.redtorch.common.trade.enumeration.* 4 | 5 | class Contract { 6 | var uniformSymbol = "" // 统一ID,通常是 <合约代码@交易所代码> 7 | var symbol = "" // 代码 8 | var exchange = ExchangeEnum.Unknown // 交易所 9 | var productClass = ProductClassEnum.Unknown // 产品类型 10 | var name = "" // 简称 11 | var fullName = "" // 全称 12 | var thirdPartyId = "" // 第三方ID 13 | var currency = CurrencyEnum.Unknown // 币种 14 | var multiplier = 0.0 // 合约乘数 15 | var priceTick = 0.0 // 最小变动价位 16 | var longMarginRatio = 0.0 // 多头保证金率 17 | var shortMarginRatio = 0.0 // 空头保证金率 18 | var maxMarginSideAlgorithm = false // 最大单边保证金算法 19 | var underlyingSymbol = "" // 基础商品代码 20 | var strikePrice = 0.0 // 执行价 21 | var optionsType = OptionsTypeEnum.Unknown // 期权类型 22 | var underlyingMultiplier = 0.0 // 合约基础商品乘数 23 | var lastTradeDateOrContractMonth = "" // 最后交易日或合约月 24 | var maxMarketOrderVolume = 0 // 市价单最大下单量 25 | var minMarketOrderVolume = 0 // 市价单最小下单量 26 | var maxLimitOrderVolume = 0 // 限价单最大下单量 27 | var minLimitOrderVolume = 0 // 限价单最小下单量 28 | var combinationType = CombinationTypeEnum.Unknown // 组合类型 29 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/dto/Position.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.dto 2 | 3 | import xyz.redtorch.common.trade.enumeration.HedgeFlagEnum 4 | import xyz.redtorch.common.trade.enumeration.PositionDirectionEnum 5 | 6 | class Position { 7 | var contract = Contract() // 合约 8 | var positionId = "" // 持仓在系统中的唯一代码,通常是<合约代码@交易所代码@方向@投机套保标志@账户@币种@网关> 9 | var accountId = "" // 账户ID 10 | var positionDirection = PositionDirectionEnum.Unknown // 持仓方向 11 | var position = 0 // 持仓量 12 | var frozen = 0 // 冻结数量 13 | var ydPosition = 0 // 昨持仓 14 | var ydFrozen = 0 // 冻结数量 15 | var tdPosition = 0 // 今持仓 16 | var tdFrozen = 0 // 冻结数量 17 | var lastPrice = 0.0 // 计算盈亏使用的行情最后价格 18 | var price = 0.0 // 持仓均价 19 | var priceDiff = 0.0 // 持仓价格差 20 | var openPrice = 0.0 // 开仓均价 21 | var openPriceDiff = 0.0 // 开仓价格差 22 | var positionProfit = 0.0 // 持仓盈亏 23 | var positionProfitRatio = 0.0 // 持仓盈亏率 24 | var openPositionProfit = 0.0 // 开仓盈亏 25 | var openPositionProfitRatio = 0.0 // 开仓盈亏率 26 | var useMargin = 0.0 // 占用的保证金 27 | var exchangeMargin = 0.0 // 交易所的保证金 28 | var contractValue = 0.0 // 最新合约价值 29 | var hedgeFlag = HedgeFlagEnum.Unknown // 投机套保标识 30 | var gatewayId = "" // 网关ID 31 | var localCreatedTimestamp: Long = 0 // 本地创建时间 32 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/dto/Tick.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.dto 2 | 3 | class Tick { 4 | var contract = Contract() // 合约 5 | var gatewayId = "" // 网关ID 6 | var tradingDay = 0 // 交易日 7 | var actionDay = 0 // 业务发生日 8 | var actionTime = 0 // 时间(HHmmssSSS) 9 | var actionTimestamp = 0L // 时间戳 10 | var lastPrice = 0.0 // 最新成交价 11 | var avgPrice = 0.0 // 均价 12 | var volumeDelta = 0L // 成交量变化 13 | var volume = 0L // 总成交量 14 | var turnover = 0.0 // 成交总额 15 | var turnoverDelta = 0.0 // 成交总额变化 16 | var openInterest = 0.0 // 持仓量 17 | var openInterestDelta = 0.0 // 持仓量变化 18 | var preOpenInterest = 0.0 // 昨持仓 19 | var preClosePrice = 0.0 // 前收盘价 20 | var settlePrice = 0.0 // 结算价 21 | var preSettlePrice = 0.0 // 昨结算价 22 | var openPrice = 0.0 // 开盘价 23 | var highPrice = 0.0 // 最高价 24 | var lowPrice = 0.0 // 最低价 25 | var upperLimit = 0.0 // 涨停价 26 | var lowerLimit = 0.0 // 跌停价 27 | 28 | var bidPriceMap = HashMap() // 买价 29 | var askPriceMap = HashMap() // 卖价 30 | var bidVolumeMap = HashMap() // 买量 31 | var askVolumeMap = HashMap() // 卖量 32 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/dto/Trade.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.dto 2 | 3 | import xyz.redtorch.common.trade.enumeration.* 4 | 5 | class Trade { 6 | var tradeId = "" // 成交ID,通常是<网关ID@定单编号@方向@成交编号>,加入方向是因为部分交易所发生违规自成交后,成交ID相同 7 | var contract = Contract() // 合约 8 | var adapterTradeId = "" // 适配器层成交ID 9 | var originOrderId = "" // 原始定单ID 10 | var orderId = "" // 定单ID,通常是<网关ID@定单ID> 11 | var adapterOrderId = "" // 适配器层定单ID 12 | var orderLocalId = "" // 本地报单编号 13 | var brokerOrderSeq = "" //经纪公司报单编号 14 | var orderSysId = "" // 报单编号 15 | var settlementId = "" // 结算编号 16 | var sequenceNo = "" // 序列号 17 | var accountId = "" // 账户ID 18 | var direction = DirectionEnum.Unknown // 方向 19 | var offsetFlag = OffsetFlagEnum.Unknown // 开平 20 | var hedgeFlag = HedgeFlagEnum.Unknown // 投机套保标识 21 | var price = 0.0 // 价格 22 | var volume = 0 // 数量 23 | var tradeType = TradeTypeEnum.Unknown // 成交类型 24 | var priceSource = PriceSourceEnum.Unknown // 成交价来源 25 | var tradingDay = "" // 交易日 26 | var tradeDate = "" // 成交日期 27 | var tradeTime = "" // 成交时间(HHmmssSSS) 28 | var tradeTimestamp = 0L // 成交时间戳 29 | var gatewayId = "" // 网关ID 30 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/ActionFlagEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // ActionFlagEnum是一个操作标志类型 4 | enum class ActionFlagEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Delete(1), // 删除 7 | Modify(2) // 修改 8 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/CombinationTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // CombinationTypeEnum是一个组合类型类型 4 | enum class CombinationTypeEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Future(1), // 期货组合 7 | BUL(2), // 垂直价差BUL 8 | BER(3), // 垂直价差BER 9 | STD(4), // 跨式组合 10 | STG(5), // 宽跨式组合 11 | PRT(6), // 备兑组合 12 | CLD(7) // 时间价差组合 13 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/ContingentConditionEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // ContingentConditionEnum是一个触发条件类型 4 | enum class ContingentConditionEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Immediately(1), // 立即 7 | Touch(2), // 止损 8 | TouchProfit(3), // 止赢 9 | ParkedOrder(4), // 预埋单 10 | LastPriceGreaterThanStopPrice(5), // 最新价大于条件价 11 | LastPriceGreaterEqualStopPrice(6), // 最新价大于等于条件价 12 | LastPriceLesserThanStopPrice(7), // 最新价小于条件价 13 | LastPriceLesserEqualStopPrice(8), // 最新价小于等于条件价 14 | AskPriceGreaterThanStopPrice(9), // 卖一价大于条件价 15 | AskPriceGreaterEqualStopPrice(10), // 卖一价大于等于条件价 16 | AskPriceLesserThanStopPrice(11), // 卖一价小于条件价 17 | AskPriceLesserEqualStopPrice(12), // 卖一价小于等于条件价 18 | BidPriceGreaterThanStopPrice(13), // 买一价大于条件价 19 | BidPriceGreaterEqualStopPrice(14), // 买一价大于等于条件价 20 | BidPriceLesserThanStopPrice(15), // 买一价小于条件价 21 | BidPriceLesserEqualStopPrice(16), // 买一价小于等于条件价 22 | LocalLastPriceLesserEqualStopPrice(17), // (本地)最新价小于等于条件价 23 | LocalLastPriceGreaterEqualStopPrice(18) // (本地)最新价大于等于条件价 24 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/CurrencyEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // CurrencyEnum是一个货币类型 4 | enum class CurrencyEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | USD(1), // 美元 7 | CNY(2), // 人民币 8 | CNH(3), // 离岸人民币 9 | HKD(4), // 港币 10 | JPY(5), // 日元 11 | EUR(6), // 欧元 12 | GBP(7), // 英镑 13 | DEM(8), // 德国马克 14 | CHF(9), // 瑞士法郎 15 | FRF(10), // 法国法郎 16 | CAD(11), // 加拿大元 17 | AUD(12), // 澳大利亚元 18 | ATS(13), // 奥地利先令 19 | FIM(14), // 芬兰马克 20 | BEF(15), // 比利时法郎 21 | THB(16), // 泰铢 22 | IEP(17), // 爱尔兰镑 23 | ITL(18), // 意大利里拉 24 | LUF(19), // 卢森堡法郎 25 | NLG(20), // 荷兰盾 26 | PTE(21), // 葡萄牙埃斯库多 27 | ESP(22), // 西班牙比塞塔 28 | IDR(23), // 印尼盾 29 | MYR(24), // 马来西亚林吉特 30 | NZD(25), // 新西兰元 31 | PHP(26), // 菲律宾比索 32 | SUR(27), // 俄罗斯卢布 33 | SGD(28), // 新加坡元 34 | KRW(29) // 韩国元 35 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/DirectionEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | enum class DirectionEnum(val value: Int) { 4 | Unknown(0), // 未知 5 | Buy(1),// 买 6 | Sell(2) // 卖 7 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/ForceCloseReasonEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // ForceCloseReasonEnum是一个强平原因类型 4 | enum class ForceCloseReasonEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | NotForceClose(1), // 非强平 7 | LackDeposit(2), // 资金不足 8 | ClientOverPositionLimit(3), // 客户超仓 9 | MemberOverPositionLimit(4), // 会员超仓 10 | NotMultiple(5), // 持仓非整数倍 11 | Violation(6), // 违规 12 | Other(7), // 其它 13 | PersonDeliver(8) // 自然人临近交割 14 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/HedgeFlagEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // HedgeFlagEnum是一个投机套保标志类型 4 | enum class HedgeFlagEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Speculation(1), // 投机 7 | Arbitrage(2), // 套利 8 | Hedge(3), // 套保 9 | MarketMaker(4), // 做市商 10 | SpecHedge(5), // 第一腿投机第二腿套保 大商所专用 11 | HedgeSpec(6) // 第一腿套保第二腿投机 大商所专用 12 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OffsetFlagEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OffsetFlagEnum是一个开平标志类型 4 | enum class OffsetFlagEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Open(1), // 开仓 7 | Close(2), // 平仓 8 | ForceClose(3), // 强平 9 | CloseToday(4), // 平今 10 | CloseYesterday(5), // 平昨 11 | ForceOff(6), // 强减 12 | LocalForceClose(7) // 本地强平 13 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OptionsTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OptionsTypeEnum是一个期权类型类型 4 | enum class OptionsTypeEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | CallOptions(1), // 看涨 7 | PutOptions(2) // 看跌 8 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OrderActionStatusEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OrderActionStatusEnum是一个报单操作状态类型 4 | enum class OrderActionStatusEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Submitted(1), // 已经提交 7 | Accepted(2), // 已经接受 8 | Rejected(3) // 已经被拒绝 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OrderPriceTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OrderPriceTypeEnum是一个报单价格条件类型 4 | enum class OrderPriceTypeEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | AnyPrice(1), // 任意价 7 | LimitPrice(2), // 限价 8 | BestPrice(3), // 最优价 9 | LastPrice(4), // 最新价 10 | LastPricePlusOneTicks(5), // 最新价浮动上浮1个ticks 11 | LastPricePlusTwoTicks(6), // 最新价浮动上浮2个ticks 12 | LastPricePlusThreeTicks(7), // 最新价浮动上浮3个ticks 13 | AskPrice1(8), // 卖一价 14 | AskPrice1PlusOneTicks(9), // 卖一价浮动上浮1个ticks 15 | AskPrice1PlusTwoTicks(10), // 卖一价浮动上浮2个ticks 16 | AskPrice1PlusThreeTicks(11), // 卖一价浮动上浮3个ticks 17 | BidPrice1(12), // 买一价 18 | BidPrice1PlusOneTicks(13), // 买一价浮动上浮1个ticks 19 | BidPrice1PlusTwoTicks(14), // 买一价浮动上浮2个ticks 20 | BidPrice1PlusThreeTicks(15), // 买一价浮动上浮3个ticks 21 | FiveLevelPrice(16) // 五档价 22 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OrderSourceEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OrderSourceEnum是一个报单来源类型 4 | enum class OrderSourceEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Participant(1), // 来自参与者 7 | Administrator(2) // 来自管理员 8 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OrderStatusEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OrderStatusEnum是一个报单状态类型 4 | enum class OrderStatusEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | AllTraded(1), // 全部成交 7 | PartTradedQueueing(2), // 部分成交还在队列中 8 | PartTradedNotQueueing(3), // 部分成交不在队列中 9 | NoTradeQueueing(4), // 未成交还在队列中 10 | NoTradeNotQueueing(5), // 未成交不在队列中 11 | Canceled(6), // 撤单 12 | NotTouched(7), // 尚未触发 13 | Touched(8), // 已触发 14 | Rejected(9) // 已拒绝 15 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OrderSubmitStatusEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OrderSubmitStatusEnum是一个报单提交状态类型 4 | enum class OrderSubmitStatusEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | InsertSubmitted(1), // 已经提交 7 | CancelSubmitted(2), // 撤单已经提交 8 | ModifySubmitted(3), // 修改已经提交 9 | Accepted(4), // 已经接受 10 | InsertRejected(5), // 报单已经被拒绝 11 | CancelRejected(6), // 撤单已经被拒绝 12 | ModifyRejected(7) // 改单已经被拒绝 13 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/OrderTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // OrderTypeEnum是一个报单类型类型 4 | enum class OrderTypeEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Normal(1), // 正常 7 | DeriveFromQuote(2), // 报价衍生 8 | DeriveFromCombination(3), // 组合衍生 9 | Combination(4), // 组合报单 10 | ConditionalOrder(5), // 条件单 11 | Swap(6) // 互换单 12 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/PositionDirectionEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // PositionDirectionEnum是一个持仓多空方向类型 4 | enum class PositionDirectionEnum(val value: Int) { 5 | Unknown(0), 6 | Net(1), 7 | Long(2), 8 | Short(3) 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/PositionTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // PositionTypeEnum是一个持仓类型类型 4 | enum class PositionTypeEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Net(1),// 净持仓 7 | Gross(2) // 综合持仓 8 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/PriceSourceEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // PriceSourceEnum是一个成交价来源类型 4 | enum class PriceSourceEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | LastPrice(1), // 前成交价 7 | Buy(2), // 买委托价 8 | Sell(3), // 卖委托价 9 | OTC(4) // 场外成交价 10 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/ProductClassEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // ProductClassEnum是一个产品类型类型 4 | enum class ProductClassEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Equity(1), // 股票 7 | Futures(2), // 期货 8 | Options(3), // 期权 9 | Index(4), // 指数 10 | Combination(5), // 组合 11 | Bond(6), // 债券 12 | FOREX(7), // 外汇 13 | Spot(8), // 即期 14 | Defer(9), // 展期 15 | ETF(10), // ETF 16 | Warrants(11), // 权证 17 | Spread(12), // 价差 18 | Fund(13), // 基金 19 | EFP(14), // 期转现 20 | SpotOption(15), // 现货期权 21 | TAS(16), // TAS 22 | MI(17), // 金属指数 23 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/StrikeModeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // StrikeModeEnum是一个执行方式类型 4 | enum class StrikeModeEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Continental(1), // 欧式 7 | American(2), // 美式 8 | Bermuda(3) // 百慕大 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/TimeConditionEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // TimeConditionEnum是一个有效期类型类型 4 | enum class TimeConditionEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | IOC(1), // 立即完成,否则撤销 7 | GFS(2), // 本节有效 8 | GFD(3), // 当日有效 9 | GTD(4), // 指定日期前有效 10 | GTC(5), // 撤销前有效 11 | GFA(6) // 集合竞价有效 12 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/TradeTypeEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // TradeTypeEnum是一个成交类型类型 4 | enum class TradeTypeEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | SplitCombination(1), // 组合持仓拆分为单一持仓,初始化不应包含该类型的持仓 7 | Common(2), // 普通成交 8 | OptionsExecution(3), // 期权执行 9 | OTC(4), // OTC成交 10 | EFPDerived(5), // 期转现衍生成交 11 | CombinationDerived(6), // 组合衍生成交 12 | BlockTrade(7) // 大宗交易成交 13 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/TradingRightEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // TradingRightEnum是一个交易权限类型 4 | enum class TradingRightEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | Allow(1), // 可以交易 7 | CloseOnly(2), // 只能平仓 8 | Forbidden(3) // 不能交易 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/trade/enumeration/VolumeConditionEnum.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.trade.enumeration 2 | 3 | // VolumeConditionEnum是一个成交量类型类型 4 | enum class VolumeConditionEnum(val value: Int) { 5 | Unknown(0), // 未知 6 | AV(1), // 任何数量 7 | MV(2), // 最小数量 8 | CV(3) // 全部数量 9 | } -------------------------------------------------------------------------------- /rt-common/src/main/kotlin/xyz/redtorch/common/web/socket/WebSocketClientCallBack.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.common.web.socket 2 | 3 | import org.springframework.web.socket.CloseStatus 4 | import java.nio.ByteBuffer 5 | 6 | interface WebSocketClientCallBack { 7 | @Throws(java.lang.Exception::class) 8 | fun afterConnectionEstablished() 9 | 10 | @Throws(Exception::class) 11 | fun handleTextMessage(message: String) 12 | 13 | 14 | @Throws(Exception::class) 15 | fun handleBinaryMessage(message: ByteBuffer) 16 | 17 | 18 | @Throws(Exception::class) 19 | fun handlePongMessage(delay: Long) 20 | 21 | 22 | @Throws(Exception::class) 23 | fun handleTransportError(exception: Throwable) 24 | 25 | 26 | @Throws(Exception::class) 27 | fun afterConnectionClosed(status: CloseStatus) 28 | 29 | fun handleAuthFailed() 30 | 31 | fun handleAuthSucceeded() 32 | } -------------------------------------------------------------------------------- /rt-desktop/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("application") 3 | id("org.openjfx.javafxplugin") version "0.0.13" 4 | id("org.springframework.boot") 5 | id("io.spring.dependency-management") 6 | } 7 | 8 | javafx { 9 | version = "16" 10 | modules = listOf("javafx.controls", "javafx.fxml") 11 | } 12 | 13 | application { 14 | mainClass.set("xyz.redtorch.desktop.RedTorchDesktopApplicationKt") 15 | } 16 | 17 | dependencies { 18 | implementation(project(":rt-common")) 19 | 20 | implementation("org.springframework.boot:spring-boot-starter-undertow") 21 | implementation("org.springframework.boot:spring-boot-starter-websocket") { 22 | exclude("org.springframework.boot","spring-boot-starter-tomcat") 23 | } 24 | implementation("org.apache.zookeeper:zookeeper:${rootProject.extra.get("zookeeperVersion")}") 25 | testImplementation("org.springframework.boot:spring-boot-starter-test") 26 | } -------------------------------------------------------------------------------- /rt-desktop/src/main/kotlin/xyz/redtorch/desktop/gui/utils/FXUtils.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.desktop.gui.utils 2 | 3 | import javafx.scene.Node 4 | import javafx.scene.control.Alert 5 | import javafx.scene.control.ButtonType 6 | import javafx.scene.control.Dialog 7 | import javafx.stage.Window 8 | import java.util.* 9 | 10 | object FXUtils { 11 | fun showConfirmAlert(titleStr: String, contentStr: String, ownerWindow: Window?,alertType: Alert.AlertType = Alert.AlertType.WARNING): Boolean { 12 | val res = Alert(alertType).apply { 13 | title = titleStr 14 | contentText = contentStr 15 | buttonTypes.remove(ButtonType.OK) 16 | buttonTypes.add(ButtonType.CANCEL) 17 | buttonTypes.add(ButtonType.YES) 18 | initOwner(ownerWindow) 19 | }.showAndWait() 20 | return res.isPresent && res.get() == ButtonType.YES 21 | } 22 | 23 | fun showInputDialog(titleStr: String, contentNode: Node): Optional { 24 | return Dialog().apply { 25 | isResizable = true 26 | title = titleStr 27 | // Set the button types. 28 | dialogPane.buttonTypes.addAll(ButtonType.OK, ButtonType.CANCEL) 29 | dialogPane.content = contentNode 30 | // 此处可选择替换返回类型 31 | setResultConverter { dialogButton -> dialogButton } 32 | }.showAndWait() 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /rt-desktop/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.main.web-application-type=none 2 | logging.config=classpath:logback-spring.xml 3 | 4 | rt.node-id=1001 5 | rt.auth-token=b1d5712a-57ca-405a-9bff-f20000f7262a 6 | rt.web-socket-url=ws://127.0.0.1:9099/ws/trade -------------------------------------------------------------------------------- /rt-desktop/src/main/resources/fx/style/main.css: -------------------------------------------------------------------------------- 1 | 2 | .table-row-cell:selected { -fx-background-color: #BBBBBB; } 3 | 4 | 5 | 6 | .trade-label{ 7 | -fx-light-text-color: rgb(220, 220, 220); 8 | -fx-mid-text-color: rgb(100, 100, 100); 9 | -fx-dark-text-color: rgb(20, 20, 20); 10 | } 11 | 12 | 13 | .trade-long-color { 14 | -fx-light-text-color: rgb(255, 90, 90); 15 | -fx-mid-text-color: rgb(217, 70, 00); 16 | -fx-dark-text-color: rgb(217, 70, 00); 17 | -fx-fill: rgb(217, 70, 00); 18 | } 19 | 20 | .trade-short-color { 21 | -fx-light-text-color: rgb(0, 220, 0); 22 | -fx-mid-text-color: rgb(0, 96, 0); 23 | -fx-dark-text-color: rgb(0, 96, 0); 24 | -fx-fill: rgb(0, 96, 0); 25 | } 26 | 27 | .trade-info-color { 28 | -fx-light-text-color: rgb(80, 255, 255); 29 | -fx-mid-text-color: rgb(0, 153, 204); 30 | -fx-dark-text-color: rgb(0, 153, 204); 31 | -fx-fill:rgb(0, 153, 204); 32 | } 33 | 34 | .trade-remind-color { 35 | -fx-light-text-color: rgb(220, 220, 10); 36 | -fx-mid-text-color: rgb(255, 153, 0); 37 | -fx-dark-text-color: rgb(255, 153, 0); 38 | -fx-fill:rgb(255, 153, 0); 39 | } 40 | 41 | .trade-long-color-background { 42 | -fx-background-color: rgb(217, 70, 00); 43 | } 44 | 45 | .trade-short-color-background { 46 | -fx-background-color: rgb(0, 96, 0); 47 | } -------------------------------------------------------------------------------- /rt-gateway-api/build.gradle.kts: -------------------------------------------------------------------------------- 1 | dependencies { 2 | implementation(project(":rt-common")) 3 | } -------------------------------------------------------------------------------- /rt-gateway-api/src/main/kotlin/xyz/redtorch/gateway/Gateway.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.gateway 2 | 3 | import xyz.redtorch.common.event.service.EventService 4 | import xyz.redtorch.common.storage.po.GatewaySetting 5 | import xyz.redtorch.common.sync.dto.CancelOrder 6 | import xyz.redtorch.common.sync.dto.GatewayStatus 7 | import xyz.redtorch.common.sync.dto.InsertOrder 8 | import xyz.redtorch.common.trade.dto.Contract 9 | 10 | interface Gateway { 11 | /** 12 | * 获取配置 13 | */ 14 | fun getGatewaySetting(): GatewaySetting 15 | 16 | /** 17 | * 获取网关状态 18 | */ 19 | fun getGatewayStatus(): GatewayStatus 20 | 21 | /** 22 | * 获取事件服务 23 | */ 24 | fun getEventService(): EventService 25 | 26 | /** 27 | * 订阅 28 | */ 29 | fun subscribe(contract: Contract): Boolean 30 | 31 | /** 32 | * 退订 33 | */ 34 | fun unsubscribe(contract: Contract): Boolean 35 | 36 | /** 37 | * 提交定单 38 | */ 39 | fun submitOrder(insertOrder: InsertOrder): String? 40 | 41 | /** 42 | * 撤销定单 43 | */ 44 | fun cancelOrder(cancelOrder: CancelOrder): Boolean 45 | 46 | /** 47 | * 连接 48 | */ 49 | fun connect() 50 | 51 | /** 52 | * 断开 53 | */ 54 | fun disconnect() 55 | 56 | /** 57 | * 网关连接状态 58 | */ 59 | fun isConnected(): Boolean 60 | 61 | /** 62 | * 获取登录错误标记 63 | */ 64 | fun isAuthError(): Boolean 65 | 66 | /** 67 | * 获取最后一次开始登陆的时间戳 68 | */ 69 | fun getLastConnectInitiateTimestamp(): Long 70 | 71 | } -------------------------------------------------------------------------------- /rt-gateway-api/src/main/kotlin/xyz/redtorch/gateway/GatewayAbstract.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.gateway 2 | 3 | import org.slf4j.LoggerFactory 4 | import xyz.redtorch.common.event.service.EventService 5 | import xyz.redtorch.common.storage.po.GatewaySetting 6 | 7 | abstract class GatewayAbstract(private val eventService: EventService, private val gatewaySetting: GatewaySetting) : Gateway { 8 | companion object { 9 | private val logger = LoggerFactory.getLogger(GatewayAbstract::class.java) 10 | } 11 | 12 | var gatewayId: String = gatewaySetting.id!! 13 | var gatewayName: String = gatewaySetting.name!! 14 | var logInfo: String = "网关ID-[$gatewayId] 名称-[$gatewayName] [→] " 15 | var connectInitiateTimestamp: Long = 0 16 | var authErrorFlag = false 17 | 18 | init { 19 | logger.info(logInfo + "开始初始化") 20 | } 21 | 22 | override fun getEventService(): EventService { 23 | return eventService 24 | } 25 | 26 | override fun isAuthError(): Boolean { 27 | return authErrorFlag 28 | } 29 | 30 | override fun getLastConnectInitiateTimestamp(): Long { 31 | return connectInitiateTimestamp 32 | } 33 | 34 | override fun getGatewaySetting(): GatewaySetting { 35 | return gatewaySetting 36 | } 37 | 38 | } -------------------------------------------------------------------------------- /rt-gateway-ctp/build.gradle.kts: -------------------------------------------------------------------------------- 1 | dependencies { 2 | implementation(project(":rt-common")) 3 | implementation(project(":rt-gateway-api")) 4 | } -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcAuthForbiddenIPField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcBrokerSyncField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcBrokerSyncField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcBrokerSyncField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcBrokerSyncField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcBrokerSyncField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcBrokerSyncField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcBrokerSyncField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcBrokerSyncField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcBrokerSyncField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcCurrDRIdentityField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcLoadSettlementInfoField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcLoadSettlementInfoField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcLoadSettlementInfoField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcLoadSettlementInfoField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcLoadSettlementInfoField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcLoadSettlementInfoField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcLoadSettlementInfoField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcLoginForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcLoginForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcLoginForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcLoginForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcLoginForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcLoginForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcLoginForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcLoginForbiddenIPField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcLoginForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryAuthForbiddenIPField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryBrokerField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryBrokerField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryBrokerField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryBrokerField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryBrokerField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryBrokerField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryBrokerField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryBrokerField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryBrokerField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryCFMMCBrokerKeyField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryCFMMCBrokerKeyField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCFMMCBrokerKeyField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCFMMCBrokerKeyField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryCFMMCBrokerKeyField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCFMMCBrokerKeyField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryCFMMCBrokerKeyField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCurrDRIdentityField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryExchangeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryExchangeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryExchangeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryExchangeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setExchangeID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryExchangeField_ExchangeID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getExchangeID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryExchangeField_ExchangeID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryExchangeField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryExchangeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryFrontStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryFrontStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryFrontStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryFrontStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryFrontStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setFrontID(int value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryFrontStatusField_FrontID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getFrontID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryFrontStatusField_FrontID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryFrontStatusField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryFrontStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryIPListField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryIPListField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryIPListField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryIPListField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryIPListField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryIPListField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryIPListField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryIPListField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryIPListField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryInvestorGroupField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryInvestorGroupField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryInvestorGroupField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryInvestorGroupField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryInvestorGroupField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryInvestorGroupField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryInvestorGroupField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQryNoticeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQryNoticeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryNoticeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryNoticeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQryNoticeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQryNoticeField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQryNoticeField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryNoticeField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQryNoticeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQrySuperUserField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQrySuperUserField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySuperUserField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySuperUserField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQrySuperUserField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserID(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQrySuperUserField_UserID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getUserID() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQrySuperUserField_UserID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySuperUserField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQrySuperUserField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQrySyncStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQrySyncStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySyncStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySyncStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQrySyncStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setTradingDay(String value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getTradingDay() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySyncStatusField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQrySyncStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcQueryFreqField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcQueryFreqField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQueryFreqField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQueryFreqField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcQueryFreqField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setQueryFreq(int value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcQueryFreqField_QueryFreq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getQueryFreq() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcQueryFreqField_QueryFreq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQueryFreqField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcQueryFreqField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/CThostFtdcRspGenUserTextField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class CThostFtdcRspGenUserTextField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcRspGenUserTextField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcRspGenUserTextField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19p1x64apiJNI.delete_CThostFtdcRspGenUserTextField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserTextSeq(int value) { 40 | jctpv6v3v19p1x64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getUserTextSeq() { 44 | return jctpv6v3v19p1x64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcRspGenUserTextField() { 48 | this(jctpv6v3v19p1x64apiJNI.new_CThostFtdcRspGenUserTextField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19p1v/api/jctpv6v3v19p1x64api.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19p1v.api; 10 | 11 | public class jctpv6v3v19p1x64api implements jctpv6v3v19p1x64apiConstants { 12 | } 13 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcAuthForbiddenIPField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcBrokerSyncField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcBrokerSyncField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcBrokerSyncField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcBrokerSyncField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcBrokerSyncField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcBrokerSyncField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcBrokerSyncField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcBrokerSyncField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcBrokerSyncField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcCurrDRIdentityField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcLoadSettlementInfoField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcLoadSettlementInfoField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcLoadSettlementInfoField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcLoadSettlementInfoField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcLoadSettlementInfoField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcLoadSettlementInfoField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcLoadSettlementInfoField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcLoginForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcLoginForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcLoginForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcLoginForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcLoginForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcLoginForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcLoginForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcLoginForbiddenIPField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcLoginForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryAuthForbiddenIPField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryBrokerField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryBrokerField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryBrokerField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryBrokerField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryBrokerField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryBrokerField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryBrokerField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryBrokerField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryBrokerField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryCFMMCBrokerKeyField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryCFMMCBrokerKeyField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCFMMCBrokerKeyField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCFMMCBrokerKeyField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryCFMMCBrokerKeyField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCFMMCBrokerKeyField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryCFMMCBrokerKeyField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCurrDRIdentityField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryExchangeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryExchangeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryExchangeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryExchangeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setExchangeID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryExchangeField_ExchangeID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getExchangeID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryExchangeField_ExchangeID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryExchangeField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryExchangeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryFrontStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryFrontStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryFrontStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryFrontStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryFrontStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setFrontID(int value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryFrontStatusField_FrontID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getFrontID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryFrontStatusField_FrontID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryFrontStatusField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryFrontStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryIPListField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryIPListField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryIPListField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryIPListField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryIPListField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryIPListField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryIPListField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryIPListField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryIPListField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryInvestorGroupField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryInvestorGroupField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryInvestorGroupField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryInvestorGroupField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryInvestorGroupField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryInvestorGroupField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryInvestorGroupField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQryNoticeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQryNoticeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryNoticeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryNoticeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQryNoticeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQryNoticeField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQryNoticeField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryNoticeField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQryNoticeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQrySuperUserField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQrySuperUserField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySuperUserField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySuperUserField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQrySuperUserField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserID(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQrySuperUserField_UserID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getUserID() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQrySuperUserField_UserID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySuperUserField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQrySuperUserField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQrySyncStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQrySyncStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySyncStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySyncStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQrySyncStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setTradingDay(String value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getTradingDay() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySyncStatusField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQrySyncStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcQueryFreqField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcQueryFreqField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQueryFreqField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQueryFreqField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcQueryFreqField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setQueryFreq(int value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcQueryFreqField_QueryFreq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getQueryFreq() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcQueryFreqField_QueryFreq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQueryFreqField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcQueryFreqField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/CThostFtdcRspGenUserTextField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class CThostFtdcRspGenUserTextField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcRspGenUserTextField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcRspGenUserTextField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v3v19t1x64apiJNI.delete_CThostFtdcRspGenUserTextField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserTextSeq(int value) { 40 | jctpv6v3v19t1x64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getUserTextSeq() { 44 | return jctpv6v3v19t1x64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcRspGenUserTextField() { 48 | this(jctpv6v3v19t1x64apiJNI.new_CThostFtdcRspGenUserTextField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v3v19t1v/api/jctpv6v3v19t1x64api.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.0 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v3v19t1v.api; 10 | 11 | public class jctpv6v3v19t1x64api implements jctpv6v3v19t1x64apiConstants { 12 | } 13 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcAuthForbiddenIPField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcBrokerSyncField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcBrokerSyncField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcBrokerSyncField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcBrokerSyncField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcBrokerSyncField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcBrokerSyncField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcBrokerSyncField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcBrokerSyncField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcBrokerSyncField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcCurrDRIdentityField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcLoadSettlementInfoField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcLoadSettlementInfoField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcLoadSettlementInfoField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcLoadSettlementInfoField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcLoadSettlementInfoField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcLoadSettlementInfoField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcLoadSettlementInfoField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcMarketDataExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcMarketDataExchangeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcMarketDataExchangeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcMarketDataExchangeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcMarketDataExchangeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setExchangeID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcMarketDataExchangeField_ExchangeID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getExchangeID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcMarketDataExchangeField_ExchangeID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcMarketDataExchangeField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcMarketDataExchangeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryAuthForbiddenIPField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryBrokerField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryBrokerField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryBrokerField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryBrokerField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryBrokerField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryBrokerField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryBrokerField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryBrokerField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryBrokerField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryCFMMCBrokerKeyField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryCFMMCBrokerKeyField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCFMMCBrokerKeyField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCFMMCBrokerKeyField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryCFMMCBrokerKeyField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCFMMCBrokerKeyField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryCFMMCBrokerKeyField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCurrDRIdentityField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryExchangeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryExchangeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryExchangeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryExchangeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setExchangeID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryExchangeField_ExchangeID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getExchangeID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryExchangeField_ExchangeID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryExchangeField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryExchangeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryFrontStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryFrontStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryFrontStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryFrontStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryFrontStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setFrontID(int value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryFrontStatusField_FrontID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getFrontID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryFrontStatusField_FrontID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryFrontStatusField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryFrontStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryInvestorGroupField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryInvestorGroupField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryInvestorGroupField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryInvestorGroupField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryInvestorGroupField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryInvestorGroupField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryInvestorGroupField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQryNoticeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQryNoticeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryNoticeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryNoticeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQryNoticeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQryNoticeField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQryNoticeField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryNoticeField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQryNoticeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQrySuperUserField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQrySuperUserField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySuperUserField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySuperUserField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQrySuperUserField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserID(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQrySuperUserField_UserID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getUserID() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQrySuperUserField_UserID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySuperUserField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQrySuperUserField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQrySyncStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQrySyncStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySyncStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySyncStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQrySyncStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setTradingDay(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getTradingDay() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySyncStatusField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQrySyncStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcQueryFreqField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcQueryFreqField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQueryFreqField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQueryFreqField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcQueryFreqField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setQueryFreq(int value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcQueryFreqField_QueryFreq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getQueryFreq() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcQueryFreqField_QueryFreq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQueryFreqField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcQueryFreqField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcReqApiHandshakeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcReqApiHandshakeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcReqApiHandshakeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcReqApiHandshakeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcReqApiHandshakeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setCryptoKeyVersion(String value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcReqApiHandshakeField_CryptoKeyVersion_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getCryptoKeyVersion() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcReqApiHandshakeField_CryptoKeyVersion_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcReqApiHandshakeField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcReqApiHandshakeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/CThostFtdcRspGenUserTextField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class CThostFtdcRspGenUserTextField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcRspGenUserTextField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcRspGenUserTextField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9cpx64apiJNI.delete_CThostFtdcRspGenUserTextField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserTextSeq(int value) { 40 | jctpv6v6v9cpx64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getUserTextSeq() { 44 | return jctpv6v6v9cpx64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcRspGenUserTextField() { 48 | this(jctpv6v6v9cpx64apiJNI.new_CThostFtdcRspGenUserTextField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9cpv/api/jctpv6v6v9cpx64api.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9cpv.api; 10 | 11 | public class jctpv6v6v9cpx64api implements jctpv6v6v9cpx64apiConstants { 12 | } 13 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcAuthForbiddenIPField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcBrokerSyncField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcBrokerSyncField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcBrokerSyncField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcBrokerSyncField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcBrokerSyncField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcBrokerSyncField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcBrokerSyncField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcBrokerSyncField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcBrokerSyncField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcCurrDRIdentityField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcLoadSettlementInfoField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcLoadSettlementInfoField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcLoadSettlementInfoField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcLoadSettlementInfoField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcLoadSettlementInfoField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcLoadSettlementInfoField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcLoadSettlementInfoField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcLoadSettlementInfoField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcMarketDataExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcMarketDataExchangeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcMarketDataExchangeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcMarketDataExchangeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcMarketDataExchangeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setExchangeID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcMarketDataExchangeField_ExchangeID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getExchangeID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcMarketDataExchangeField_ExchangeID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcMarketDataExchangeField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcMarketDataExchangeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryAuthForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryAuthForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryAuthForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryAuthForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryAuthForbiddenIPField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setIPAddress(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getIPAddress() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryAuthForbiddenIPField_IPAddress_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryAuthForbiddenIPField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryAuthForbiddenIPField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryBrokerField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryBrokerField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryBrokerField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryBrokerField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryBrokerField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryBrokerField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryBrokerField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryBrokerField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryBrokerField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryCFMMCBrokerKeyField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryCFMMCBrokerKeyField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCFMMCBrokerKeyField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCFMMCBrokerKeyField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryCFMMCBrokerKeyField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCFMMCBrokerKeyField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryCFMMCBrokerKeyField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryCurrDRIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCurrDRIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCurrDRIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryCurrDRIdentityField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setDRIdentityID(int value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getDRIdentityID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryCurrDRIdentityField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryCurrDRIdentityField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryExchangeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryExchangeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryExchangeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryExchangeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setExchangeID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryExchangeField_ExchangeID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getExchangeID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryExchangeField_ExchangeID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryExchangeField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryExchangeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryExchangeSequenceField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryExchangeSequenceField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryExchangeSequenceField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryExchangeSequenceField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryExchangeSequenceField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setExchangeID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryExchangeSequenceField_ExchangeID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getExchangeID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryExchangeSequenceField_ExchangeID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryExchangeSequenceField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryExchangeSequenceField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryFrontStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryFrontStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryFrontStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryFrontStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryFrontStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setFrontID(int value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryFrontStatusField_FrontID_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getFrontID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryFrontStatusField_FrontID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryFrontStatusField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryFrontStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryInvestorGroupField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryInvestorGroupField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryInvestorGroupField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryInvestorGroupField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryInvestorGroupField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryInvestorGroupField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryInvestorGroupField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryInvestorGroupField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQryNoticeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQryNoticeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryNoticeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryNoticeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQryNoticeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setBrokerID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQryNoticeField_BrokerID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getBrokerID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQryNoticeField_BrokerID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQryNoticeField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQryNoticeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQrySuperUserField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQrySuperUserField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySuperUserField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySuperUserField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQrySuperUserField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQrySuperUserField_UserID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getUserID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQrySuperUserField_UserID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySuperUserField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQrySuperUserField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQrySuperUserFunctionField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQrySuperUserFunctionField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySuperUserFunctionField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySuperUserFunctionField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQrySuperUserFunctionField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserID(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQrySuperUserFunctionField_UserID_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getUserID() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQrySuperUserFunctionField_UserID_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySuperUserFunctionField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQrySuperUserFunctionField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQrySyncStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQrySyncStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySyncStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySyncStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQrySyncStatusField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setTradingDay(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getTradingDay() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQrySyncStatusField_TradingDay_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQrySyncStatusField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQrySyncStatusField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcQueryFreqField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcQueryFreqField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQueryFreqField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQueryFreqField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcQueryFreqField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setQueryFreq(int value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcQueryFreqField_QueryFreq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getQueryFreq() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcQueryFreqField_QueryFreq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcQueryFreqField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcQueryFreqField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcReqApiHandshakeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcReqApiHandshakeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcReqApiHandshakeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcReqApiHandshakeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcReqApiHandshakeField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setCryptoKeyVersion(String value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcReqApiHandshakeField_CryptoKeyVersion_set(swigCPtr, this, value); 41 | } 42 | 43 | public String getCryptoKeyVersion() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcReqApiHandshakeField_CryptoKeyVersion_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcReqApiHandshakeField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcReqApiHandshakeField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcRspGenUserTextField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcRspGenUserTextField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcRspGenUserTextField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcRspGenUserTextField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcRspGenUserTextField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUserTextSeq(int value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getUserTextSeq() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcRspGenUserTextField_UserTextSeq_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcRspGenUserTextField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcRspGenUserTextField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/CThostFtdcRspUserAuthMethodField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class CThostFtdcRspUserAuthMethodField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcRspUserAuthMethodField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcRspUserAuthMethodField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | @SuppressWarnings("deprecation") 25 | protected void finalize() { 26 | delete(); 27 | } 28 | 29 | public synchronized void delete() { 30 | if (swigCPtr != 0) { 31 | if (swigCMemOwn) { 32 | swigCMemOwn = false; 33 | jctpv6v6v9x64apiJNI.delete_CThostFtdcRspUserAuthMethodField(swigCPtr); 34 | } 35 | swigCPtr = 0; 36 | } 37 | } 38 | 39 | public void setUsableAuthMethod(int value) { 40 | jctpv6v6v9x64apiJNI.CThostFtdcRspUserAuthMethodField_UsableAuthMethod_set(swigCPtr, this, value); 41 | } 42 | 43 | public int getUsableAuthMethod() { 44 | return jctpv6v6v9x64apiJNI.CThostFtdcRspUserAuthMethodField_UsableAuthMethod_get(swigCPtr, this); 45 | } 46 | 47 | public CThostFtdcRspUserAuthMethodField() { 48 | this(jctpv6v6v9x64apiJNI.new_CThostFtdcRspUserAuthMethodField(), true); 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/java/xyz/redtorch/gateway/ctp/x64v6v6v9v/api/jctpv6v6v9x64api.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 4.0.2 4 | * 5 | * Do not make changes to this file unless you know what you are doing--modify 6 | * the SWIG interface file instead. 7 | * ----------------------------------------------------------------------------- */ 8 | 9 | package xyz.redtorch.gateway.ctp.x64v6v6v9v.api; 10 | 11 | public class jctpv6v6v9x64api implements jctpv6v6v9x64apiConstants { 12 | } 13 | -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/Linux README.txt: -------------------------------------------------------------------------------- 1 | 非root用户运行可能有帮助的命令 2 | sudo chmod a+s /usr/sbin/dmidecode 3 | 4 | 当前提供的动态链接库所使用的编译环境 5 | gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) 6 | 7 | 如果需要在其它Linux发行版中使用,请访问 8 | https://github.com/sun0x00/jctpapi-linux 9 | 了解更多编译细节 -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/jctpv6v3v19p1x64api.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/jctpv6v3v19p1x64api.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/libjctpv6v3v19p1x64api.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/libjctpv6v3v19p1x64api.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/libthostmduserapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/libthostmduserapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/libthosttraderapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/libthosttraderapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/thostmduserapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/thostmduserapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/thosttraderapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19p1x64api/thosttraderapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/jctpv6v3v19t1x64api.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/jctpv6v3v19t1x64api.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/libjctpv6v3v19t1x64api.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/libjctpv6v3v19t1x64api.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/libthostmduserapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/libthostmduserapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/libthosttraderapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/libthosttraderapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/thostmduserapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/thostmduserapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/thosttraderapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v3v19t1x64api/thosttraderapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/jctpv6v6v9cpx64api.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/jctpv6v6v9cpx64api.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thostmduserapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thostmduserapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thostmduserapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thostmduserapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thosttraderapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thosttraderapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thosttraderapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9cpx64api/thosttraderapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/jctpv6v6v9x64api.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/jctpv6v6v9x64api.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thostmduserapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thostmduserapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thostmduserapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thostmduserapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thosttraderapi_se.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thosttraderapi_se.dll -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thosttraderapi_se.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/jctpv6v6v9x64api/thosttraderapi_se.so -------------------------------------------------------------------------------- /rt-gateway-ctp/src/main/resources/assembly/libiconv.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sun0x00/redtorch/c6a036adc262829e28d8e6cd2ea4bc3b7089b863/rt-gateway-ctp/src/main/resources/assembly/libiconv.dll -------------------------------------------------------------------------------- /rt-master/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("application") 3 | id("org.openjfx.javafxplugin") version "0.0.13" 4 | id("org.springframework.boot") 5 | id("io.spring.dependency-management") 6 | } 7 | 8 | javafx { 9 | version = "16" 10 | modules = listOf("javafx.controls", "javafx.fxml") 11 | } 12 | 13 | application { 14 | mainClass.set("xyz.redtorch.master.RedTorchMasterApplicationKt") 15 | } 16 | 17 | dependencies { 18 | implementation(project(":rt-common")) 19 | 20 | implementation("org.springframework.boot:spring-boot-starter-undertow") 21 | implementation("org.springframework.boot:spring-boot-starter-websocket") { 22 | exclude("org.springframework.boot","spring-boot-starter-tomcat") 23 | } 24 | implementation("org.apache.zookeeper:zookeeper:${rootProject.extra.get("zookeeperVersion")}") 25 | testImplementation("org.springframework.boot:spring-boot-starter-test") 26 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/BaseDao.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao 2 | 3 | import xyz.redtorch.common.storage.po.BasePo 4 | 5 | interface BaseDao { 6 | fun queryList(): List 7 | 8 | fun queryById(id: String): T? 9 | 10 | fun deleteById(id: String) 11 | 12 | fun upsert(obj: T) 13 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/GatewaySettingDao.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao 2 | 3 | import xyz.redtorch.common.storage.po.GatewaySetting 4 | 5 | interface GatewaySettingDao : BaseDao -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/SlaveNodeDao.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao 2 | 3 | import xyz.redtorch.common.storage.po.SlaveNode 4 | 5 | interface SlaveNodeDao : BaseDao -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/UserDao.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao 2 | 3 | import xyz.redtorch.common.storage.po.User 4 | 5 | interface UserDao : BaseDao -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/impl/BaseDaoImpl.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao.impl 2 | 3 | import org.springframework.beans.factory.annotation.Autowired 4 | import xyz.redtorch.common.storage.po.BasePo 5 | import xyz.redtorch.common.utils.JsonUtils 6 | import xyz.redtorch.master.dao.BaseDao 7 | import xyz.redtorch.master.db.ZookeeperService 8 | import java.lang.reflect.ParameterizedType 9 | 10 | abstract class BaseDaoImpl(private val collection: String) : BaseDao { 11 | private val entityClass: Class = (javaClass.genericSuperclass as ParameterizedType).actualTypeArguments[0] as Class 12 | 13 | @Autowired 14 | lateinit var zookeeperService: ZookeeperService 15 | 16 | override fun queryList(): List { 17 | val dataList = ArrayList() 18 | val jsonNodeList = zookeeperService.find(collection) 19 | if (jsonNodeList != null) { 20 | for (jsonNode in jsonNodeList) { 21 | val data = JsonUtils.convertToObject(jsonNode, entityClass) 22 | dataList.add(data) 23 | } 24 | } 25 | return dataList 26 | 27 | } 28 | 29 | override fun queryById(id: String): T? { 30 | val jsonNode = zookeeperService.findById(collection, id) 31 | if (jsonNode != null) { 32 | return JsonUtils.convertToObject(jsonNode, entityClass) 33 | } 34 | return null 35 | } 36 | 37 | override fun deleteById(id: String) { 38 | zookeeperService.deleteById(collection, id) 39 | } 40 | 41 | override fun upsert(obj: T) { 42 | obj.id?.let { zookeeperService.upsert(collection, it, JsonUtils.writeToJsonString(obj)) } 43 | } 44 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/impl/GatewaySettingDaoImpl.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao.impl 2 | 3 | import org.springframework.stereotype.Service 4 | import xyz.redtorch.common.storage.po.GatewaySetting 5 | import xyz.redtorch.master.dao.GatewaySettingDao 6 | 7 | @Service 8 | class GatewaySettingDaoImpl : BaseDaoImpl("gateway"), GatewaySettingDao -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/impl/SlaveNodeDaoImpl.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao.impl 2 | 3 | import org.springframework.stereotype.Service 4 | import xyz.redtorch.common.storage.po.SlaveNode 5 | import xyz.redtorch.master.dao.SlaveNodeDao 6 | 7 | @Service 8 | class SlaveNodeDaoImpl : BaseDaoImpl("node"), SlaveNodeDao -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/dao/impl/UserDaoImpl.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.dao.impl 2 | 3 | import org.springframework.stereotype.Service 4 | import xyz.redtorch.common.storage.po.User 5 | import xyz.redtorch.master.dao.UserDao 6 | 7 | @Service 8 | class UserDaoImpl : BaseDaoImpl("user"), UserDao -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/db/ZookeeperService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.db 2 | 3 | import com.fasterxml.jackson.databind.JsonNode 4 | import xyz.redtorch.common.utils.ZookeeperUtils 5 | 6 | interface ZookeeperService { 7 | fun getZkUtils(): ZookeeperUtils 8 | 9 | fun get3DesKey(): String 10 | 11 | fun find(collection: String, enableEncryption: Boolean = true): List? 12 | 13 | fun findById(collection: String, id: String, enableEncryption: Boolean = true): JsonNode? 14 | 15 | fun update(collection: String, id: String, data: String, enableEncryption: Boolean = true): Boolean 16 | 17 | fun insert(collection: String, id: String, data: String, enableEncryption: Boolean = true): Boolean 18 | 19 | fun upsert(collection: String, id: String, data: String, enableEncryption: Boolean = true): Boolean 20 | 21 | fun deleteById(collection: String, id: String): Boolean 22 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/gui/utils/FXUtils.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.gui.utils 2 | 3 | import javafx.scene.Node 4 | import javafx.scene.control.Alert 5 | import javafx.scene.control.ButtonType 6 | import javafx.scene.control.Dialog 7 | import javafx.stage.Window 8 | import java.util.* 9 | 10 | object FXUtils { 11 | fun showConfirmAlert(titleStr: String, contentStr: String, ownerWindow: Window?,alertType: Alert.AlertType = Alert.AlertType.WARNING): Boolean { 12 | val res = Alert(alertType).apply { 13 | title = titleStr 14 | contentText = contentStr 15 | buttonTypes.remove(ButtonType.OK) 16 | buttonTypes.add(ButtonType.CANCEL) 17 | buttonTypes.add(ButtonType.YES) 18 | initOwner(ownerWindow) 19 | }.showAndWait() 20 | return res.isPresent && res.get() == ButtonType.YES 21 | } 22 | 23 | fun showInputDialog(titleStr: String, contentNode: Node): Optional { 24 | return Dialog().apply { 25 | isResizable = true 26 | title = titleStr 27 | // Set the button types. 28 | dialogPane.buttonTypes.addAll(ButtonType.OK, ButtonType.CANCEL) 29 | dialogPane.content = contentNode 30 | // 此处可选择替换返回类型 31 | setResultConverter { dialogButton -> dialogButton } 32 | }.showAndWait() 33 | } 34 | 35 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/po/BackupPo.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.po 2 | 3 | import xyz.redtorch.common.storage.po.GatewaySetting 4 | import xyz.redtorch.common.storage.po.SlaveNode 5 | import xyz.redtorch.common.storage.po.User 6 | 7 | class BackupPo { 8 | var gatewaySettingMap = HashMap() 9 | var userMap = HashMap() 10 | var slaveNodeMap = HashMap() 11 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/service/GatewaySettingService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.service 2 | 3 | import xyz.redtorch.common.storage.po.GatewaySetting 4 | 5 | interface GatewaySettingService { 6 | fun getGatewaySettingById(gatewayId: String): GatewaySetting? 7 | 8 | fun upsertGatewaySettingById(gatewaySetting: GatewaySetting) 9 | 10 | fun getGatewaySettingList(): List 11 | 12 | fun deleteGatewayById(gatewayId: String) 13 | 14 | fun connectGatewayById(gatewayId: String) 15 | 16 | fun disconnectGatewayById(gatewayId: String) 17 | 18 | fun disconnectAllGateways() 19 | 20 | fun connectAllGateways() 21 | 22 | fun updateGatewaySettingDescriptionById(gatewayId: String, description: String) 23 | 24 | fun deleteGatewaySettingById(gatewayId: String) 25 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/service/SlaveNodeService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.service 2 | 3 | import xyz.redtorch.common.storage.po.SlaveNode 4 | 5 | interface SlaveNodeService { 6 | fun getSlaveNodeList(): List 7 | 8 | fun deleteSlaveNodeById(slaveNodeId: String) 9 | 10 | fun resetSlaveNodeTokenById(slaveNodeId: String): SlaveNode? 11 | 12 | fun createSlaveNode(): SlaveNode 13 | 14 | fun slaveNodeAuth(slaveNodeId: String, token: String): SlaveNode? 15 | 16 | fun updateSlaveNodeDescriptionById(slaveNodeId: String, description: String) 17 | 18 | fun upsertSlaveNodeById(slaveNode: SlaveNode) 19 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/service/SystemService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.service 2 | 3 | import xyz.redtorch.common.sync.dto.CancelOrder 4 | import xyz.redtorch.common.sync.dto.InsertOrder 5 | 6 | interface SystemService { 7 | fun syncSlaveNodeSettingMirror() 8 | fun cancelOrder(cancelOrder: CancelOrder) 9 | fun submitOrder(insertOrder: InsertOrder) 10 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/service/UserService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.service 2 | 3 | import xyz.redtorch.common.storage.po.User 4 | 5 | interface UserService { 6 | fun getUserList(): List 7 | 8 | fun deleteUserById(userId: String) 9 | 10 | fun resetUserTokenById(userId: String): User? 11 | 12 | fun addUser(userId: String, description: String): User? 13 | 14 | fun userAuth(userId: String, token: String): User? 15 | 16 | fun updateUserDescriptionById(userId: String, description: String) 17 | 18 | fun upsertUserById(user: User) 19 | 20 | fun enableUserById(userId: String) 21 | 22 | fun banUserById(userId: String) 23 | 24 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/web/socket/WebSocketServerConfig.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.web.socket 2 | 3 | import org.springframework.beans.factory.annotation.Autowired 4 | import org.springframework.context.annotation.Configuration 5 | import org.springframework.web.socket.config.annotation.EnableWebSocket 6 | import org.springframework.web.socket.config.annotation.WebSocketConfigurer 7 | import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry 8 | 9 | @Configuration 10 | @EnableWebSocket 11 | open class WebSocketServerConfig : WebSocketConfigurer { 12 | 13 | @Autowired 14 | lateinit var webSocketServerHandshakeInterceptor: WebSocketServerHandshakeInterceptor 15 | 16 | @Autowired 17 | lateinit var tradeClientWebSocketHandler: TradeClientWebSocketHandler 18 | 19 | @Autowired 20 | lateinit var slaveNodeWebSocketHandler: SlaveNodeWebSocketHandler 21 | 22 | override fun registerWebSocketHandlers(registry: WebSocketHandlerRegistry) { 23 | registry.addHandler(tradeClientWebSocketHandler, "/ws/trade")// 24 | .addHandler(slaveNodeWebSocketHandler, "/ws/slave")// 25 | .setAllowedOrigins("*")// 26 | .addInterceptors(webSocketServerHandshakeInterceptor)// 27 | } 28 | } -------------------------------------------------------------------------------- /rt-master/src/main/kotlin/xyz/redtorch/master/web/socket/WebSocketServerHandshakeInterceptor.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.master.web.socket 2 | 3 | import org.springframework.http.server.ServerHttpRequest 4 | import org.springframework.http.server.ServerHttpResponse 5 | import org.springframework.stereotype.Component 6 | import org.springframework.web.socket.WebSocketHandler 7 | import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor 8 | 9 | @Component 10 | class WebSocketServerHandshakeInterceptor : HttpSessionHandshakeInterceptor() { 11 | 12 | @Throws(Exception::class) 13 | override fun beforeHandshake( 14 | request: ServerHttpRequest, 15 | response: ServerHttpResponse, 16 | wsHandler: WebSocketHandler, 17 | attributes: Map 18 | ): Boolean { 19 | return super.beforeHandshake(request, response, wsHandler, attributes) 20 | } 21 | 22 | override fun afterHandshake( 23 | request: ServerHttpRequest, 24 | response: ServerHttpResponse, 25 | wsHandler: WebSocketHandler, 26 | ex: Exception? 27 | ) { 28 | super.afterHandshake(request, response, wsHandler, ex) 29 | } 30 | } -------------------------------------------------------------------------------- /rt-master/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=9099 2 | logging.config=classpath:logback-spring.xml 3 | spring.main.allow-circular-references=true 4 | 5 | # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 6 | # 不要设置过大,如果过大,启动项目会报错:打开文件数过多 7 | server.undertow.threads.io=16 8 | 9 | # 阻塞任务线程池, 当执行类似servlet请求阻塞IO操作, undertow会从这个线程池中取得线程 10 | # 它的值设置取决于系统线程执行任务的阻塞系数,默认值是IO线程数*8 11 | server.undertow.threads.worker=256 12 | 13 | # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 14 | # 每块buffer的空间大小,越小的空间被利用越充分,不要设置太大,以免影响其他应用,合适即可 15 | server.undertow.buffer-size=10240 16 | 17 | # 是否分配的直接内存(NIO直接分配的堆外内存) 18 | server.undertow.direct-buffers=true 19 | 20 | # Zookeeper配置 21 | rt.zookeeper-connect-str=zk201:12181,zk105:12181,zk305:12181 22 | rt.zookeeper-username=user 23 | rt.zookeeper-password=123456 24 | rt.zookeeper-root-path=/rt-dev-ea 25 | # 用于加密存储于Zookeeper中的数据,防止Zookeeper被攻破导致机密数据泄露 26 | rt.zookeeper-3des-key=ABCDEFABCDEFABCDEFABCDEF 27 | 28 | # 明文密码,仅用于锁定GUI,防止误操作 29 | rt.gui-password=1 -------------------------------------------------------------------------------- /rt-master/src/main/resources/fx/style/main.css: -------------------------------------------------------------------------------- 1 | .table-row-cell:selected { -fx-background-color: #BBBBBB; } 2 | 3 | -------------------------------------------------------------------------------- /rt-slave/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("org.springframework.boot") 3 | id("io.spring.dependency-management") 4 | } 5 | 6 | springBoot { 7 | mainClass.set("xyz.redtorch.slave.RedTorchSlaveApplicationKt") 8 | } 9 | 10 | dependencies { 11 | implementation(project(":rt-common")) 12 | implementation(project(":rt-gateway-api")) 13 | implementation(project(":rt-gateway-ctp")) 14 | 15 | implementation("org.springframework.boot:spring-boot-starter-undertow") 16 | implementation("org.springframework.boot:spring-boot-starter-websocket") { 17 | exclude("org.springframework.boot","spring-boot-starter-tomcat") 18 | } 19 | testImplementation("org.springframework.boot:spring-boot-starter-test") 20 | } -------------------------------------------------------------------------------- /rt-slave/src/main/kotlin/xyz/redtorch/slave/service/GatewayMonitorService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.slave.service 2 | 3 | import xyz.redtorch.common.storage.po.GatewaySetting 4 | import xyz.redtorch.common.trade.dto.Contract 5 | import xyz.redtorch.gateway.Gateway 6 | 7 | interface GatewayMonitorService { 8 | fun disconnectGateway(gatewayId: String) 9 | 10 | fun connectGateway(gatewaySetting: GatewaySetting) 11 | 12 | fun getGatewayList(): List 13 | 14 | fun getGateway(gatewayId: String): Gateway? 15 | 16 | fun getConnectedGatewayIdList(): List 17 | 18 | fun updateGatewaySetting(gatewaySettingMap: Map) 19 | 20 | fun updateSubscribedContract(subscribedContractMap: Map) 21 | } -------------------------------------------------------------------------------- /rt-slave/src/main/kotlin/xyz/redtorch/slave/service/SlaveCacheService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.slave.service 2 | 3 | import xyz.redtorch.common.trade.dto.Order 4 | 5 | interface SlaveCacheService { 6 | fun filterTickMapByUniformSymbolSet(uniformSymbolSet: Set) 7 | fun clearAllCachesByGatewayId(gatewayId: String) 8 | fun clearContractCaches() 9 | fun getOrderByOrderId(orderId: String): Order? 10 | fun syncQuoteMirror() 11 | fun syncTransactionMirror() 12 | fun syncPortfolioMirror() 13 | fun syncBaseMirror() 14 | } -------------------------------------------------------------------------------- /rt-slave/src/main/kotlin/xyz/redtorch/slave/service/SlaveSyncService.kt: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.slave.service 2 | 3 | import xyz.redtorch.common.sync.dto.GatewayStatus 4 | import xyz.redtorch.common.sync.dto.Notice 5 | import xyz.redtorch.common.trade.dto.* 6 | 7 | interface SlaveSyncService { 8 | fun updateTransactionMirror(orderMap: MutableMap, tradeMap: MutableMap) 9 | fun updateQuoteMirror(tickMap: MutableMap) 10 | fun updateBaseMirror(contractMap: MutableMap) 11 | fun updatePortfolioMirror(accountMap: MutableMap, positionMap: MutableMap) 12 | fun updateSlaveNodeReportMirror(gatewayStatusList: ArrayList) 13 | fun sendNotice(notice: Notice) 14 | fun sendTick(tick: Tick) 15 | fun sendTrade(trade: Trade) 16 | fun sendOrder(order: Order) 17 | } -------------------------------------------------------------------------------- /rt-slave/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.main.web-application-type=none 2 | logging.config=classpath:logback-spring.xml 3 | spring.main.allow-circular-references=true 4 | 5 | rt.node-id=1001 6 | rt.auth-token=b1d5712a-57ca-405a-9bff-f20000f7262a 7 | rt.web-socket-url=ws://127.0.0.1:9099/ws/slave -------------------------------------------------------------------------------- /settings.gradle.kts: -------------------------------------------------------------------------------- 1 | rootProject.name = "redtorch" 2 | include("rt-master") 3 | include("rt-common") 4 | include("rt-gateway-api") 5 | include("rt-gateway-ctp") 6 | include("rt-slave") 7 | include("rt-desktop") 8 | --------------------------------------------------------------------------------