├── .gitignore ├── LICENSE ├── README.rst ├── build.gradle └── src ├── main ├── java │ └── xyz │ │ └── redtorch │ │ ├── ZeusApplication.java │ │ ├── api │ │ └── jctp │ │ │ ├── CThostFtdcAccountPropertyField.java │ │ │ ├── CThostFtdcAccountregisterField.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 │ │ │ ├── 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 │ │ │ ├── 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 │ │ │ ├── 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 │ │ │ ├── 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 │ │ │ ├── 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 │ │ │ ├── CThostFtdcQueryMaxOrderVolumeField.java │ │ │ ├── CThostFtdcQueryMaxOrderVolumeWithPriceField.java │ │ │ ├── CThostFtdcQuoteActionField.java │ │ │ ├── CThostFtdcQuoteField.java │ │ │ ├── CThostFtdcRemoveParkedOrderActionField.java │ │ │ ├── CThostFtdcRemoveParkedOrderField.java │ │ │ ├── CThostFtdcReqAuthenticateField.java │ │ │ ├── CThostFtdcReqCancelAccountField.java │ │ │ ├── CThostFtdcReqChangeAccountField.java │ │ │ ├── CThostFtdcReqDayEndFileReadyField.java │ │ │ ├── CThostFtdcReqFutureSignOutField.java │ │ │ ├── CThostFtdcReqOpenAccountField.java │ │ │ ├── CThostFtdcReqQueryAccountField.java │ │ │ ├── CThostFtdcReqQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcReqRepealField.java │ │ │ ├── CThostFtdcReqSyncKeyField.java │ │ │ ├── CThostFtdcReqTransferField.java │ │ │ ├── CThostFtdcReqUserLoginField.java │ │ │ ├── CThostFtdcReserveOpenAccountConfirmField.java │ │ │ ├── CThostFtdcReserveOpenAccountField.java │ │ │ ├── CThostFtdcReturnResultField.java │ │ │ ├── CThostFtdcRspAuthenticateField.java │ │ │ ├── CThostFtdcRspFutureSignInField.java │ │ │ ├── CThostFtdcRspFutureSignOutField.java │ │ │ ├── CThostFtdcRspInfoField.java │ │ │ ├── CThostFtdcRspQueryAccountField.java │ │ │ ├── CThostFtdcRspQueryTradeResultBySerialField.java │ │ │ ├── CThostFtdcRspRepealField.java │ │ │ ├── CThostFtdcRspSyncKeyField.java │ │ │ ├── CThostFtdcRspTransferField.java │ │ │ ├── CThostFtdcRspUserLogin2Field.java │ │ │ ├── CThostFtdcRspUserLoginField.java │ │ │ ├── CThostFtdcSecAgentACIDMapField.java │ │ │ ├── CThostFtdcSecAgentCheckModeField.java │ │ │ ├── CThostFtdcSettlementInfoConfirmField.java │ │ │ ├── CThostFtdcSettlementInfoField.java │ │ │ ├── CThostFtdcSettlementRefField.java │ │ │ ├── CThostFtdcSpecificInstrumentField.java │ │ │ ├── CThostFtdcStrikeOffsetField.java │ │ │ ├── CThostFtdcSuperUserField.java │ │ │ ├── CThostFtdcSuperUserFunctionField.java │ │ │ ├── CThostFtdcSyncDelaySwapField.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 │ │ │ ├── CThostFtdcVerifyCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordAndCustInfoField.java │ │ │ ├── CThostFtdcVerifyFuturePasswordField.java │ │ │ ├── CThostFtdcVerifyInvestorPasswordField.java │ │ │ ├── THOST_TE_RESUME_TYPE.java │ │ │ ├── jctpmdapiv6v3v11x64.java │ │ │ ├── jctpmdapiv6v3v11x64Constants.java │ │ │ ├── jctpmdapiv6v3v11x64JNI.java │ │ │ ├── jctptraderapiv6v3v11x64.java │ │ │ ├── jctptraderapiv6v3v11x64Constants.java │ │ │ └── jctptraderapiv6v3v11x64JNI.java │ │ ├── trader │ │ ├── base │ │ │ ├── BaseConfig.java │ │ │ └── RtConstant.java │ │ ├── engine │ │ │ ├── data │ │ │ │ ├── DataEngine.java │ │ │ │ └── impl │ │ │ │ │ └── DataEngineImpl.java │ │ │ ├── event │ │ │ │ ├── EventConstant.java │ │ │ │ ├── FastEvent.java │ │ │ │ ├── FastEventDynamicHandler.java │ │ │ │ ├── FastEventDynamicHandlerAbstract.java │ │ │ │ ├── FastEventEngine.java │ │ │ │ ├── FastEventFactory.java │ │ │ │ └── FastEventProducerAbstract.java │ │ │ └── main │ │ │ │ ├── MainDataUtil.java │ │ │ │ ├── MainEngine.java │ │ │ │ └── impl │ │ │ │ ├── MainDataUtilImpl.java │ │ │ │ └── MainEngineImpl.java │ │ ├── entity │ │ │ ├── Account.java │ │ │ ├── Bar.java │ │ │ ├── CancelOrderReq.java │ │ │ ├── Contract.java │ │ │ ├── LocalPositionDetail.java │ │ │ ├── LogData.java │ │ │ ├── Order.java │ │ │ ├── OrderReq.java │ │ │ ├── Position.java │ │ │ ├── SubscribeReq.java │ │ │ ├── Tick.java │ │ │ └── Trade.java │ │ ├── gateway │ │ │ ├── Gateway.java │ │ │ ├── GatewayAbstract.java │ │ │ ├── GatewaySetting.java │ │ │ └── ctp │ │ │ │ ├── CtpConstant.java │ │ │ │ ├── CtpGateway.java │ │ │ │ ├── MdSpi.java │ │ │ │ └── TdSpi.java │ │ ├── module │ │ │ └── zeus │ │ │ │ ├── BacktestingEngine.java │ │ │ │ ├── ZeusConstant.java │ │ │ │ ├── ZeusDataUtil.java │ │ │ │ ├── ZeusEngine.java │ │ │ │ ├── entity │ │ │ │ ├── ContractPositionDetail.java │ │ │ │ ├── PositionDetail.java │ │ │ │ └── StopOrder.java │ │ │ │ ├── impl │ │ │ │ ├── BacktestingEngineImpl.java │ │ │ │ ├── TradingEngineImpl.java │ │ │ │ └── ZeusDataUtilImpl.java │ │ │ │ └── strategy │ │ │ │ ├── Strategy.java │ │ │ │ ├── StrategyAbstract.java │ │ │ │ ├── StrategySetting.java │ │ │ │ ├── backtesting │ │ │ │ └── RunBacktestingForStrategyBK.java │ │ │ │ └── routine │ │ │ │ └── pub │ │ │ │ └── impl │ │ │ │ ├── StrategyBK.java │ │ │ │ └── StrategyT2T.java │ │ └── rm │ │ │ └── RiskManagement.java │ │ ├── utils │ │ ├── CommonUtil.java │ │ ├── FastEventLogAppender.java │ │ ├── MongoDBClient.java │ │ ├── MongoDBClientSingleton.java │ │ └── MongoDBUtil.java │ │ └── web │ │ ├── adaptor │ │ └── WebConfigAdaptor.java │ │ ├── annotation │ │ └── Authorization.java │ │ ├── filter │ │ └── StreamFilter.java │ │ ├── interceptor │ │ └── AuthInterceptor.java │ │ ├── service │ │ ├── TokenService.java │ │ ├── TradingService.java │ │ └── impl │ │ │ ├── TokenServiceImpl.java │ │ │ └── TradingServiceImpl.java │ │ ├── servlet │ │ └── http │ │ │ └── BodyReaderHttpServletRequestWrapper.java │ │ ├── socketio │ │ ├── SocketIOCommandLineRunner.java │ │ └── SocketIOMessageEventHandler.java │ │ └── vo │ │ └── ResultVO.java ├── resources │ ├── RtConfig.properties │ ├── application.properties │ ├── assembly │ │ ├── jctpmdapiv6v3v11x64.dll │ │ ├── jctptraderapiv6v3v11x64.dll │ │ ├── libiconv.dll │ │ ├── libjctpmdapiv6v3v11x64.so │ │ ├── libjctptraderapiv6v3v11x64.so │ │ ├── libthostmduserapi.so │ │ ├── libthosttraderapi.so │ │ ├── thostmduserapi.dll │ │ └── thosttraderapi.dll │ └── logback.xml └── webapp │ ├── WEB-INF │ └── web.xml │ └── static │ ├── css │ └── style.css │ ├── element-2.3.4.zip │ ├── element-dist │ ├── element-ui@2.3.4-theme-chalk.css │ ├── element-ui@2.3.4.js │ └── fonts │ │ ├── element-icons.ttf │ │ └── element-icons.woff │ ├── html │ └── index.html │ ├── js │ ├── axios.min-0.18.0.js │ ├── socket.io.slim-2.0.4.js │ └── vue.min-2.5.16.js │ ├── vue-observe-visibility-master-0b71163.zip │ ├── vue-observe-visibility-master-0b71163 │ ├── .babelrc │ ├── .editorconfig │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── README.md │ ├── build │ │ ├── rollup.config.base.js │ │ ├── rollup.config.browser.js │ │ ├── rollup.config.es.js │ │ └── rollup.config.umd.js │ ├── dist │ │ ├── vue-observe-visibility.esm.js │ │ ├── vue-observe-visibility.min.js │ │ └── vue-observe-visibility.umd.js │ ├── package.json │ ├── src │ │ ├── directives │ │ │ └── observe-visibility.js │ │ └── index.js │ ├── test.html │ └── yarn.lock │ ├── vue-virtual-scroller-master-536cb52.zip │ └── vue-virtual-scroller-master-536cb52 │ ├── .babelrc │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── .npmignore │ ├── README.md │ ├── build │ ├── rollup.config.base.js │ ├── rollup.config.browser.js │ ├── rollup.config.es.js │ └── rollup.config.umd.js │ ├── dist │ ├── vue-virtual-scroller.css │ ├── vue-virtual-scroller.esm.js │ ├── vue-virtual-scroller.min.js │ └── vue-virtual-scroller.umd.js │ ├── docs-src │ ├── .babelrc │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── src │ │ ├── App.vue │ │ ├── Item.vue │ │ ├── Letter.vue │ │ ├── data.js │ │ └── main.js │ ├── webpack.config.js │ └── yarn.lock │ ├── docs │ ├── .nojekyll │ ├── build.js │ ├── build.js.map │ └── index.html │ ├── package.json │ ├── src │ ├── components │ │ ├── RecycleList.vue │ │ └── VirtualScroller.vue │ ├── index.js │ ├── mixins │ │ └── scroller.js │ └── utils.js │ └── yarn.lock ├── site └── ZeusConfigDoc │ └── ExampleSetting.json └── test └── java └── xyz └── redtorch └── trader └── engine └── event ├── FastEventDynamicHandlerTest.java ├── FastEventMainTest.java ├── FastEventProducerTest.java ├── FastEventProducerWithTranslator.java └── dynamic ├── case1 ├── Holder.java ├── MyDisruptor.java └── TestCase.java └── case2 ├── DynamiclyAddHandler.java └── StubEvent.java /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled class file 2 | *.class 3 | 4 | # Log file 5 | *.log 6 | 7 | # BlueJ files 8 | *.ctxt 9 | 10 | # Mobile Tools for Java (J2ME) 11 | .mtj.tmp/ 12 | 13 | # Package Files # 14 | *.jar 15 | *.war 16 | *.ear 17 | *.tar.gz 18 | *.rar 19 | *.con 20 | .classpath 21 | .project 22 | 23 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 24 | hs_err_pid* 25 | /target/ 26 | 27 | #idea local config 28 | /.idea/ 29 | 30 | /bin/ 31 | 32 | 33 | /.settings/ 34 | 35 | # private 36 | /src/main/java/xyz/redtorch/trader/module/zeus/strategy/routine/pvt/impl/* 37 | /src/main/java/xyz/redtorch/trader/module/zeus/strategy/hft/* 38 | 39 | /src/main/java/xyz/redtorch/trader/rm/impl/* 40 | 41 | /src/test/java/xyz/redtorch/trader/common/* 42 | 43 | /src/main/java/xyz/redtorch/trader/gateway/pctp/* 44 | /src/main/java/xyz/redtorch/api/pctp/* 45 | /src/test/java/xyz/redtorch/api/pctp/* 46 | /src/test/resources/ctp/* 47 | 48 | /.gradle 49 | /build 50 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 sun0x00@gmail.com 4 | 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id 'war' 3 | id 'java' 4 | id 'eclipse' 5 | id 'idea' 6 | id 'org.springframework.boot' version '2.0.3.RELEASE' 7 | id 'com.github.ben-manes.versions' version '0.20.0' 8 | } 9 | 10 | group = 'xyz.redtorch' 11 | version = '0.1' 12 | description = """Java开源量化交易开发框架 http://redtorch.io/""" 13 | 14 | sourceCompatibility = 1.8 15 | targetCompatibility = 1.8 16 | 17 | tasks.withType(JavaCompile) { 18 | sourceCompatibility = 1.8 19 | targetCompatibility = 1.8 20 | options.encoding = "UTF-8" 21 | } 22 | 23 | repositories { 24 | mavenLocal() 25 | maven { 26 | url "http://maven.aliyun.com/nexus/content/groups/public/" 27 | } 28 | jcenter() 29 | //mavenCentral() 30 | } 31 | 32 | dependencies { 33 | compile(group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'2.0.3.RELEASE') { 34 | exclude(module: 'spring-boot-starter-tomcat') 35 | } 36 | compile group: 'org.springframework.boot', name: 'spring-boot-starter-undertow', version:'2.0.3.RELEASE' 37 | compile group: 'com.alibaba', name: 'fastjson', version:'1.2.47' 38 | compile group: 'com.google.guava', name: 'guava', version:'25.1-jre' 39 | compile group: 'joda-time', name: 'joda-time', version:'2.10' 40 | compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.7' 41 | compile group: 'org.mongodb', name: 'mongo-java-driver', version:'3.6.3' 42 | compile group: 'org.apache.commons', name: 'commons-configuration2', version:'2.2' 43 | compile group: 'commons-beanutils', name: 'commons-beanutils', version:'1.9.3' 44 | compile group: 'com.corundumstudio.socketio', name: 'netty-socketio', version:'1.7.16' 45 | compile group: 'org.apache.commons', name: 'commons-math3', version:'3.6.1' 46 | compile group: 'org.apache.commons', name: 'commons-csv', version:'1.5' 47 | compile group: 'commons-io', name: 'commons-io', version:'2.6' 48 | compile group: 'org.apache.commons', name: 'commons-collections4', version:'4.2' 49 | compile group: 'com.lmax', name: 'disruptor', version:'3.4.2' 50 | compile group: 'junit', name: 'junit', version:'4.12' 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcBrokerSyncField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcBrokerSyncField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcBrokerSyncField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcBrokerSyncField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcBrokerSyncField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcBrokerSyncField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcCommPhaseField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcCommPhaseField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcCommPhaseField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcCommPhaseField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcCommPhaseField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setTradingDay(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcCommPhaseField_TradingDay_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getTradingDay() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcCommPhaseField_TradingDay_get(swigCPtr, this); 44 | } 45 | 46 | public void setCommPhaseNo(short value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcCommPhaseField_CommPhaseNo_set(swigCPtr, this, value); 48 | } 49 | 50 | public short getCommPhaseNo() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcCommPhaseField_CommPhaseNo_get(swigCPtr, this); 52 | } 53 | 54 | public void setSystemID(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcCommPhaseField_SystemID_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getSystemID() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcCommPhaseField_SystemID_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcCommPhaseField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcCommPhaseField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcCurrDRIdentityField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setDRIdentityID(int value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 40 | } 41 | 42 | public int getDRIdentityID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcCurrDRIdentityField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcCurrDRIdentityField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcCurrTransferIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcCurrTransferIdentityField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcCurrTransferIdentityField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcCurrTransferIdentityField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcCurrTransferIdentityField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setIdentityID(int value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcCurrTransferIdentityField_IdentityID_set(swigCPtr, this, value); 40 | } 41 | 42 | public int getIdentityID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcCurrTransferIdentityField_IdentityID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcCurrTransferIdentityField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcCurrTransferIdentityField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcDisseminationField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcDisseminationField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcDisseminationField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcDisseminationField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcDisseminationField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setSequenceSeries(short value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcDisseminationField_SequenceSeries_set(swigCPtr, this, value); 40 | } 41 | 42 | public short getSequenceSeries() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcDisseminationField_SequenceSeries_get(swigCPtr, this); 44 | } 45 | 46 | public void setSequenceNo(int value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcDisseminationField_SequenceNo_set(swigCPtr, this, value); 48 | } 49 | 50 | public int getSequenceNo() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcDisseminationField_SequenceNo_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcDisseminationField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcDisseminationField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcExchangeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcExchangeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcExchangeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcExchangeField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setExchangeID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcExchangeField_ExchangeID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getExchangeID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcExchangeField_ExchangeID_get(swigCPtr, this); 44 | } 45 | 46 | public void setExchangeName(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcExchangeField_ExchangeName_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getExchangeName() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcExchangeField_ExchangeName_get(swigCPtr, this); 52 | } 53 | 54 | public void setExchangeProperty(char value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcExchangeField_ExchangeProperty_set(swigCPtr, this, value); 56 | } 57 | 58 | public char getExchangeProperty() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcExchangeField_ExchangeProperty_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcExchangeField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcExchangeField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcFensUserInfoField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcFensUserInfoField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcFensUserInfoField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcFensUserInfoField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcFensUserInfoField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcFensUserInfoField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcFensUserInfoField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setUserID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcFensUserInfoField_UserID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getUserID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcFensUserInfoField_UserID_get(swigCPtr, this); 52 | } 53 | 54 | public void setLoginMode(char value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcFensUserInfoField_LoginMode_set(swigCPtr, this, value); 56 | } 57 | 58 | public char getLoginMode() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcFensUserInfoField_LoginMode_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcFensUserInfoField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcFensUserInfoField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcForceUserLogoutField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcForceUserLogoutField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcForceUserLogoutField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcForceUserLogoutField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcForceUserLogoutField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcForceUserLogoutField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcForceUserLogoutField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setUserID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcForceUserLogoutField_UserID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getUserID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcForceUserLogoutField_UserID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcForceUserLogoutField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcForceUserLogoutField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcIPListField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcIPListField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcIPListField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcIPListField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcIPListField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setIPAddress(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcIPListField_IPAddress_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getIPAddress() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcIPListField_IPAddress_get(swigCPtr, this); 44 | } 45 | 46 | public void setIsWhite(int value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcIPListField_IsWhite_set(swigCPtr, this, value); 48 | } 49 | 50 | public int getIsWhite() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcIPListField_IsWhite_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcIPListField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcIPListField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcIndexPriceField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcIndexPriceField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcIndexPriceField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcIndexPriceField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcIndexPriceField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcIndexPriceField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcIndexPriceField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInstrumentID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcIndexPriceField_InstrumentID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInstrumentID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcIndexPriceField_InstrumentID_get(swigCPtr, this); 52 | } 53 | 54 | public void setClosePrice(double value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcIndexPriceField_ClosePrice_set(swigCPtr, this, value); 56 | } 57 | 58 | public double getClosePrice() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcIndexPriceField_ClosePrice_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcIndexPriceField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcIndexPriceField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcLoadSettlementInfoField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcLoadSettlementInfoField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcLoadSettlementInfoField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcLoadSettlementInfoField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcLoadSettlementInfoField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcLoadSettlementInfoField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcLoginForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcLoginForbiddenIPField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setIPAddress(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcLoginForbiddenIPField_IPAddress_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getIPAddress() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcLoginForbiddenIPField_IPAddress_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcLoginForbiddenIPField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcLoginForbiddenIPField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcLogoutAllField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcLogoutAllField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcLogoutAllField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcLogoutAllField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcLogoutAllField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setFrontID(int value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcLogoutAllField_FrontID_set(swigCPtr, this, value); 40 | } 41 | 42 | public int getFrontID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcLogoutAllField_FrontID_get(swigCPtr, this); 44 | } 45 | 46 | public void setSessionID(int value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcLogoutAllField_SessionID_set(swigCPtr, this, value); 48 | } 49 | 50 | public int getSessionID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcLogoutAllField_SessionID_get(swigCPtr, this); 52 | } 53 | 54 | public void setSystemName(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcLogoutAllField_SystemName_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getSystemName() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcLogoutAllField_SystemName_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcLogoutAllField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcLogoutAllField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcMarginModelField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcMarginModelField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcMarginModelField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcMarginModelField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcMarginModelField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcMarginModelField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcMarginModelField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setMarginModelID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcMarginModelField_MarginModelID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getMarginModelID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcMarginModelField_MarginModelID_get(swigCPtr, this); 52 | } 53 | 54 | public void setMarginModelName(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcMarginModelField_MarginModelName_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getMarginModelName() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcMarginModelField_MarginModelName_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcMarginModelField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcMarginModelField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcMarketDataAveragePriceField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcMarketDataAveragePriceField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcMarketDataAveragePriceField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcMarketDataAveragePriceField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcMarketDataAveragePriceField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setAveragePrice(double value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcMarketDataAveragePriceField_AveragePrice_set(swigCPtr, this, value); 40 | } 41 | 42 | public double getAveragePrice() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcMarketDataAveragePriceField_AveragePrice_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcMarketDataAveragePriceField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcMarketDataAveragePriceField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcMarketDataExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcMarketDataExchangeField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setExchangeID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcMarketDataExchangeField_ExchangeID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getExchangeID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcMarketDataExchangeField_ExchangeID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcMarketDataExchangeField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcMarketDataExchangeField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcNoticeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcNoticeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcNoticeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcNoticeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcNoticeField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcNoticeField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcNoticeField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setContent(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcNoticeField_Content_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getContent() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcNoticeField_Content_get(swigCPtr, this); 52 | } 53 | 54 | public void setSequenceLabel(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcNoticeField_SequenceLabel_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getSequenceLabel() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcNoticeField_SequenceLabel_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcNoticeField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcNoticeField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcProductGroupField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcProductGroupField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcProductGroupField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcProductGroupField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcProductGroupField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setProductID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcProductGroupField_ProductID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getProductID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcProductGroupField_ProductID_get(swigCPtr, this); 44 | } 45 | 46 | public void setExchangeID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcProductGroupField_ExchangeID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getExchangeID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcProductGroupField_ExchangeID_get(swigCPtr, this); 52 | } 53 | 54 | public void setProductGroupID(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcProductGroupField_ProductGroupID_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getProductGroupID() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcProductGroupField_ProductGroupID_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcProductGroupField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcProductGroupField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryBrokerField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryBrokerField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryBrokerField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryBrokerField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryBrokerUserField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryBrokerUserField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryBrokerUserField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryBrokerUserField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryBrokerUserField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setUserID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserField_UserID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getUserID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserField_UserID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryBrokerUserField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryBrokerUserField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryBrokerUserFunctionField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryBrokerUserFunctionField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryBrokerUserFunctionField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryBrokerUserFunctionField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryBrokerUserFunctionField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserFunctionField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserFunctionField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setUserID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserFunctionField_UserID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getUserID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryBrokerUserFunctionField_UserID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryBrokerUserFunctionField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryBrokerUserFunctionField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryCFMMCBrokerKeyField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryCFMMCBrokerKeyField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryCFMMCBrokerKeyField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryCFMMCBrokerKeyField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryCFMMCBrokerKeyField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryCFMMCTradingAccountKeyField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryCFMMCTradingAccountKeyField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCFMMCTradingAccountKeyField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCFMMCTradingAccountKeyField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryCFMMCTradingAccountKeyField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryCFMMCTradingAccountKeyField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryCFMMCTradingAccountKeyField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryCFMMCTradingAccountKeyField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryCFMMCTradingAccountKeyField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryCFMMCTradingAccountKeyField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryCFMMCTradingAccountKeyField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryCommRateModelField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryCommRateModelField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryCommRateModelField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryCommRateModelField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryCommRateModelField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryCommRateModelField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryCommRateModelField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setCommModelID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryCommRateModelField_CommModelID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getCommModelID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryCommRateModelField_CommModelID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryCommRateModelField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryCommRateModelField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryContractBankField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryContractBankField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryContractBankField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryContractBankField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryContractBankField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryContractBankField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryContractBankField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setBankID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryContractBankField_BankID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getBankID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryContractBankField_BankID_get(swigCPtr, this); 52 | } 53 | 54 | public void setBankBrchID(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryContractBankField_BankBrchID_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getBankBrchID() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryContractBankField_BankBrchID_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcQryContractBankField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryContractBankField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryCurrDRIdentityField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryCurrDRIdentityField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setDRIdentityID(int value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_set(swigCPtr, this, value); 40 | } 41 | 42 | public int getDRIdentityID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryCurrDRIdentityField_DRIdentityID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryCurrDRIdentityField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryCurrDRIdentityField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryDepthMarketDataField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryDepthMarketDataField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryDepthMarketDataField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryDepthMarketDataField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryDepthMarketDataField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setInstrumentID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryDepthMarketDataField_InstrumentID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getInstrumentID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryDepthMarketDataField_InstrumentID_get(swigCPtr, this); 44 | } 45 | 46 | public void setExchangeID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryDepthMarketDataField_ExchangeID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getExchangeID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryDepthMarketDataField_ExchangeID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryDepthMarketDataField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryDepthMarketDataField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryErrExecOrderActionField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryErrExecOrderActionField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryErrExecOrderActionField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryErrExecOrderActionField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryErrExecOrderActionField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderActionField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderActionField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderActionField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderActionField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryErrExecOrderActionField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryErrExecOrderActionField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryErrExecOrderField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryErrExecOrderField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryErrExecOrderField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryErrExecOrderField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryErrExecOrderField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrExecOrderField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryErrExecOrderField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryErrExecOrderField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryErrOrderActionField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryErrOrderActionField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryErrOrderActionField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryErrOrderActionField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryErrOrderActionField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderActionField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderActionField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderActionField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderActionField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryErrOrderActionField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryErrOrderActionField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryErrOrderField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryErrOrderField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryErrOrderField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryErrOrderField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryErrOrderField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryErrOrderField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryErrOrderField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryErrOrderField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryExchangeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryExchangeField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setExchangeID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryExchangeField_ExchangeID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getExchangeID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryExchangeField_ExchangeID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryExchangeField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryExchangeField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryExchangeSequenceField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryExchangeSequenceField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setExchangeID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryExchangeSequenceField_ExchangeID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getExchangeID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryExchangeSequenceField_ExchangeID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryExchangeSequenceField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryExchangeSequenceField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryFrontStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryFrontStatusField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setFrontID(int value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryFrontStatusField_FrontID_set(swigCPtr, this, value); 40 | } 41 | 42 | public int getFrontID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryFrontStatusField_FrontID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryFrontStatusField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryFrontStatusField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryIPListField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryIPListField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setIPAddress(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryIPListField_IPAddress_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getIPAddress() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryIPListField_IPAddress_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryIPListField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryIPListField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryInstrumentStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryInstrumentStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryInstrumentStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryInstrumentStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryInstrumentStatusField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setExchangeID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInstrumentStatusField_ExchangeID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getExchangeID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInstrumentStatusField_ExchangeID_get(swigCPtr, this); 44 | } 45 | 46 | public void setExchangeInstID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInstrumentStatusField_ExchangeInstID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getExchangeInstID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInstrumentStatusField_ExchangeInstID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryInstrumentStatusField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryInstrumentStatusField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryInvestUnitField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryInvestUnitField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryInvestUnitField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryInvestUnitField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryInvestUnitField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestUnitField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestUnitField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestUnitField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestUnitField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public void setInvestUnitID(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestUnitField_InvestUnitID_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getInvestUnitID() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestUnitField_InvestUnitID_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcQryInvestUnitField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryInvestUnitField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryInvestorField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryInvestorField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryInvestorField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryInvestorField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryInvestorField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestorField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestorField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestorField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestorField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryInvestorField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryInvestorField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryInvestorGroupField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryInvestorGroupField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestorGroupField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryInvestorGroupField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryInvestorGroupField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryInvestorGroupField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryLinkManField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryLinkManField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryLinkManField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryLinkManField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryLinkManField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryLinkManField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryLinkManField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryLinkManField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryLinkManField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryLinkManField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryLinkManField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryLoginForbiddenIPField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryLoginForbiddenIPField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryLoginForbiddenIPField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryLoginForbiddenIPField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryLoginForbiddenIPField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setIPAddress(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryLoginForbiddenIPField_IPAddress_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getIPAddress() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryLoginForbiddenIPField_IPAddress_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryLoginForbiddenIPField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryLoginForbiddenIPField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryLoginForbiddenUserField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryLoginForbiddenUserField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryLoginForbiddenUserField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryLoginForbiddenUserField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryLoginForbiddenUserField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryLoginForbiddenUserField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryLoginForbiddenUserField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setUserID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryLoginForbiddenUserField_UserID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getUserID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryLoginForbiddenUserField_UserID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryLoginForbiddenUserField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryLoginForbiddenUserField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryMarginModelField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryMarginModelField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryMarginModelField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryMarginModelField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryMarginModelField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryMarginModelField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryMarginModelField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setMarginModelID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryMarginModelField_MarginModelID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getMarginModelID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryMarginModelField_MarginModelID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryMarginModelField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryMarginModelField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryNoticeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryNoticeField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryNoticeField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryNoticeField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQryNoticeField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryNoticeField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryProductExchRateField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryProductExchRateField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryProductExchRateField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryProductExchRateField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryProductExchRateField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setProductID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductExchRateField_ProductID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getProductID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductExchRateField_ProductID_get(swigCPtr, this); 44 | } 45 | 46 | public void setExchangeID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductExchRateField_ExchangeID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getExchangeID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductExchRateField_ExchangeID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryProductExchRateField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryProductExchRateField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryProductField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryProductField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryProductField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryProductField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryProductField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setProductID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductField_ProductID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getProductID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductField_ProductID_get(swigCPtr, this); 44 | } 45 | 46 | public void setProductClass(char value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductField_ProductClass_set(swigCPtr, this, value); 48 | } 49 | 50 | public char getProductClass() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductField_ProductClass_get(swigCPtr, this); 52 | } 53 | 54 | public void setExchangeID(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductField_ExchangeID_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getExchangeID() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductField_ExchangeID_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcQryProductField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryProductField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryProductGroupField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryProductGroupField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryProductGroupField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryProductGroupField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryProductGroupField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setProductID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductGroupField_ProductID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getProductID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductGroupField_ProductID_get(swigCPtr, this); 44 | } 45 | 46 | public void setExchangeID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductGroupField_ExchangeID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getExchangeID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryProductGroupField_ExchangeID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryProductGroupField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryProductGroupField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQrySecAgentCheckModeField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQrySecAgentCheckModeField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySecAgentCheckModeField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySecAgentCheckModeField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQrySecAgentCheckModeField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySecAgentCheckModeField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySecAgentCheckModeField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setInvestorID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySecAgentCheckModeField_InvestorID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getInvestorID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySecAgentCheckModeField_InvestorID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQrySecAgentCheckModeField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQrySecAgentCheckModeField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQrySuperUserField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQrySuperUserField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setUserID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySuperUserField_UserID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getUserID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySuperUserField_UserID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQrySuperUserField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQrySuperUserField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQrySuperUserFunctionField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQrySuperUserFunctionField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setUserID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySuperUserFunctionField_UserID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getUserID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySuperUserFunctionField_UserID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQrySuperUserFunctionField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQrySuperUserFunctionField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQrySyncDelaySwapField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQrySyncDelaySwapField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySyncDelaySwapField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySyncDelaySwapField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQrySyncDelaySwapField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDelaySwapField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDelaySwapField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setDelaySwapSeqNo(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDelaySwapField_DelaySwapSeqNo_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getDelaySwapSeqNo() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDelaySwapField_DelaySwapSeqNo_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQrySyncDelaySwapField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQrySyncDelaySwapField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQrySyncDepositField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQrySyncDepositField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySyncDepositField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySyncDepositField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQrySyncDepositField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDepositField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDepositField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setDepositSeqNo(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDepositField_DepositSeqNo_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getDepositSeqNo() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncDepositField_DepositSeqNo_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQrySyncDepositField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQrySyncDepositField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQrySyncFundMortgageField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQrySyncFundMortgageField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQrySyncFundMortgageField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQrySyncFundMortgageField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQrySyncFundMortgageField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncFundMortgageField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncFundMortgageField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setMortgageSeqNo(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getMortgageSeqNo() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncFundMortgageField_MortgageSeqNo_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQrySyncFundMortgageField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQrySyncFundMortgageField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQrySyncStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 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 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQrySyncStatusField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setTradingDay(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncStatusField_TradingDay_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getTradingDay() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQrySyncStatusField_TradingDay_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcQrySyncStatusField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQrySyncStatusField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryTraderField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryTraderField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryTraderField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryTraderField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryTraderField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setExchangeID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryTraderField_ExchangeID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getExchangeID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryTraderField_ExchangeID_get(swigCPtr, this); 44 | } 45 | 46 | public void setParticipantID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryTraderField_ParticipantID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getParticipantID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryTraderField_ParticipantID_get(swigCPtr, this); 52 | } 53 | 54 | public void setTraderID(String value) { 55 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryTraderField_TraderID_set(swigCPtr, this, value); 56 | } 57 | 58 | public String getTraderID() { 59 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryTraderField_TraderID_get(swigCPtr, this); 60 | } 61 | 62 | public CThostFtdcQryTraderField() { 63 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryTraderField(), true); 64 | } 65 | 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryTransferBankField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryTransferBankField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryTransferBankField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryTransferBankField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryTransferBankField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBankID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryTransferBankField_BankID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBankID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryTransferBankField_BankID_get(swigCPtr, this); 44 | } 45 | 46 | public void setBankBrchID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryTransferBankField_BankBrchID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getBankBrchID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryTransferBankField_BankBrchID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryTransferBankField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryTransferBankField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQryUserRightsAssignField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQryUserRightsAssignField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQryUserRightsAssignField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQryUserRightsAssignField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQryUserRightsAssignField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryUserRightsAssignField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryUserRightsAssignField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setUserID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQryUserRightsAssignField_UserID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getUserID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQryUserRightsAssignField_UserID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQryUserRightsAssignField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQryUserRightsAssignField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcQueryBrokerDepositField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcQueryBrokerDepositField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcQueryBrokerDepositField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcQueryBrokerDepositField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcQueryBrokerDepositField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcQueryBrokerDepositField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQueryBrokerDepositField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setExchangeID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcQueryBrokerDepositField_ExchangeID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getExchangeID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcQueryBrokerDepositField_ExchangeID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcQueryBrokerDepositField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcQueryBrokerDepositField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcReturnResultField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcReturnResultField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcReturnResultField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcReturnResultField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcReturnResultField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setReturnCode(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcReturnResultField_ReturnCode_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getReturnCode() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcReturnResultField_ReturnCode_get(swigCPtr, this); 44 | } 45 | 46 | public void setDescrInfoForReturnCode(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcReturnResultField_DescrInfoForReturnCode_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getDescrInfoForReturnCode() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcReturnResultField_DescrInfoForReturnCode_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcReturnResultField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcReturnResultField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcRspInfoField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcRspInfoField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcRspInfoField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcRspInfoField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcRspInfoField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setErrorID(int value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcRspInfoField_ErrorID_set(swigCPtr, this, value); 40 | } 41 | 42 | public int getErrorID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcRspInfoField_ErrorID_get(swigCPtr, this); 44 | } 45 | 46 | public void setErrorMsg(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcRspInfoField_ErrorMsg_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getErrorMsg() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcRspInfoField_ErrorMsg_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcRspInfoField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcRspInfoField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcSettlementRefField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcSettlementRefField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcSettlementRefField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcSettlementRefField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcSettlementRefField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setTradingDay(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcSettlementRefField_TradingDay_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getTradingDay() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcSettlementRefField_TradingDay_get(swigCPtr, this); 44 | } 45 | 46 | public void setSettlementID(int value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcSettlementRefField_SettlementID_set(swigCPtr, this, value); 48 | } 49 | 50 | public int getSettlementID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcSettlementRefField_SettlementID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcSettlementRefField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcSettlementRefField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcSpecificInstrumentField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcSpecificInstrumentField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcSpecificInstrumentField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcSpecificInstrumentField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcSpecificInstrumentField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setInstrumentID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcSpecificInstrumentField_InstrumentID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getInstrumentID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcSpecificInstrumentField_InstrumentID_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcSpecificInstrumentField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcSpecificInstrumentField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcSuperUserFunctionField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcSuperUserFunctionField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcSuperUserFunctionField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcSuperUserFunctionField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcSuperUserFunctionField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setUserID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcSuperUserFunctionField_UserID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getUserID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcSuperUserFunctionField_UserID_get(swigCPtr, this); 44 | } 45 | 46 | public void setFunctionCode(char value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcSuperUserFunctionField_FunctionCode_set(swigCPtr, this, value); 48 | } 49 | 50 | public char getFunctionCode() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcSuperUserFunctionField_FunctionCode_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcSuperUserFunctionField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcSuperUserFunctionField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcSyncStatusField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcSyncStatusField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcSyncStatusField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcSyncStatusField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcSyncStatusField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setTradingDay(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcSyncStatusField_TradingDay_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getTradingDay() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcSyncStatusField_TradingDay_get(swigCPtr, this); 44 | } 45 | 46 | public void setDataSyncStatus(char value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcSyncStatusField_DataSyncStatus_set(swigCPtr, this, value); 48 | } 49 | 50 | public char getDataSyncStatus() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcSyncStatusField_DataSyncStatus_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcSyncStatusField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcSyncStatusField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcTransferQryDetailReqField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcTransferQryDetailReqField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcTransferQryDetailReqField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcTransferQryDetailReqField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcTransferQryDetailReqField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setFutureAccount(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcTransferQryDetailReqField_FutureAccount_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getFutureAccount() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcTransferQryDetailReqField_FutureAccount_get(swigCPtr, this); 44 | } 45 | 46 | public CThostFtdcTransferQryDetailReqField() { 47 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcTransferQryDetailReqField(), true); 48 | } 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/CThostFtdcUserLogoutField.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class CThostFtdcUserLogoutField { 12 | private transient long swigCPtr; 13 | protected transient boolean swigCMemOwn; 14 | 15 | protected CThostFtdcUserLogoutField(long cPtr, boolean cMemoryOwn) { 16 | swigCMemOwn = cMemoryOwn; 17 | swigCPtr = cPtr; 18 | } 19 | 20 | protected static long getCPtr(CThostFtdcUserLogoutField obj) { 21 | return (obj == null) ? 0 : obj.swigCPtr; 22 | } 23 | 24 | protected void finalize() { 25 | delete(); 26 | } 27 | 28 | public synchronized void delete() { 29 | if (swigCPtr != 0) { 30 | if (swigCMemOwn) { 31 | swigCMemOwn = false; 32 | jctpmdapiv6v3v11x64JNI.delete_CThostFtdcUserLogoutField(swigCPtr); 33 | } 34 | swigCPtr = 0; 35 | } 36 | } 37 | 38 | public void setBrokerID(String value) { 39 | jctpmdapiv6v3v11x64JNI.CThostFtdcUserLogoutField_BrokerID_set(swigCPtr, this, value); 40 | } 41 | 42 | public String getBrokerID() { 43 | return jctpmdapiv6v3v11x64JNI.CThostFtdcUserLogoutField_BrokerID_get(swigCPtr, this); 44 | } 45 | 46 | public void setUserID(String value) { 47 | jctpmdapiv6v3v11x64JNI.CThostFtdcUserLogoutField_UserID_set(swigCPtr, this, value); 48 | } 49 | 50 | public String getUserID() { 51 | return jctpmdapiv6v3v11x64JNI.CThostFtdcUserLogoutField_UserID_get(swigCPtr, this); 52 | } 53 | 54 | public CThostFtdcUserLogoutField() { 55 | this(jctpmdapiv6v3v11x64JNI.new_CThostFtdcUserLogoutField(), true); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/THOST_TE_RESUME_TYPE.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public final class THOST_TE_RESUME_TYPE { 12 | public final static THOST_TE_RESUME_TYPE THOST_TERT_RESTART = new THOST_TE_RESUME_TYPE("THOST_TERT_RESTART", jctpmdapiv6v3v11x64JNI.THOST_TERT_RESTART_get()); 13 | public final static THOST_TE_RESUME_TYPE THOST_TERT_RESUME = new THOST_TE_RESUME_TYPE("THOST_TERT_RESUME"); 14 | public final static THOST_TE_RESUME_TYPE THOST_TERT_QUICK = new THOST_TE_RESUME_TYPE("THOST_TERT_QUICK"); 15 | 16 | public final int swigValue() { 17 | return swigValue; 18 | } 19 | 20 | public String toString() { 21 | return swigName; 22 | } 23 | 24 | public static THOST_TE_RESUME_TYPE swigToEnum(int swigValue) { 25 | if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) 26 | return swigValues[swigValue]; 27 | for (int i = 0; i < swigValues.length; i++) 28 | if (swigValues[i].swigValue == swigValue) 29 | return swigValues[i]; 30 | throw new IllegalArgumentException("No enum " + THOST_TE_RESUME_TYPE.class + " with value " + swigValue); 31 | } 32 | 33 | private THOST_TE_RESUME_TYPE(String swigName) { 34 | this.swigName = swigName; 35 | this.swigValue = swigNext++; 36 | } 37 | 38 | private THOST_TE_RESUME_TYPE(String swigName, int swigValue) { 39 | this.swigName = swigName; 40 | this.swigValue = swigValue; 41 | swigNext = swigValue+1; 42 | } 43 | 44 | private THOST_TE_RESUME_TYPE(String swigName, THOST_TE_RESUME_TYPE swigEnum) { 45 | this.swigName = swigName; 46 | this.swigValue = swigEnum.swigValue; 47 | swigNext = this.swigValue+1; 48 | } 49 | 50 | private static THOST_TE_RESUME_TYPE[] swigValues = { THOST_TERT_RESTART, THOST_TERT_RESUME, THOST_TERT_QUICK }; 51 | private static int swigNext = 0; 52 | private final int swigValue; 53 | private final String swigName; 54 | } 55 | 56 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/jctpmdapiv6v3v11x64.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class jctpmdapiv6v3v11x64 implements jctpmdapiv6v3v11x64Constants { 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/api/jctp/jctptraderapiv6v3v11x64.java: -------------------------------------------------------------------------------- 1 | /* ---------------------------------------------------------------------------- 2 | * This file was automatically generated by SWIG (http://www.swig.org). 3 | * Version 3.0.12 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.api.jctp; 10 | 11 | public class jctptraderapiv6v3v11x64 implements jctptraderapiv6v3v11x64Constants { 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/engine/data/DataEngine.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.data; 2 | 3 | import java.util.List; 4 | 5 | import org.joda.time.DateTime; 6 | 7 | import xyz.redtorch.trader.base.BaseConfig; 8 | import xyz.redtorch.trader.base.RtConstant; 9 | import xyz.redtorch.trader.entity.Bar; 10 | import xyz.redtorch.trader.entity.Tick; 11 | import xyz.redtorch.utils.MongoDBClient; 12 | /** 13 | * @author sun0x00@gmail.com 14 | */ 15 | public interface DataEngine { 16 | 17 | public final static String MINUTE_DB_NAME = BaseConfig.rtConfig.getString("mongodb.instance.md.dbname.minute"); 18 | public final static String TICK_DB_NAME = BaseConfig.rtConfig.getString("mongodb.instance.md.dbname.tick"); 19 | public final static String DAILY_DB_NAME = BaseConfig.rtConfig.getString("mongodb.instance.md.dbname.daily"); 20 | public final static String DEFAULT_DB_NAME = RtConstant.RED_TORCH_DB_NAME+"_"+BaseConfig.rtConfig.getString("rt.client.id"); 21 | 22 | List loadBarDataList(DateTime startDateTime, DateTime endDateTime, String rtSymbol); 23 | 24 | List loadTickDataList(DateTime startDateTime, DateTime endDateTime, String rtSymbol); 25 | 26 | MongoDBClient getMdDBClient(); 27 | 28 | MongoDBClient getDefaultDBClient(); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/engine/event/EventConstant.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | /** 3 | * @author sun0x00@gmail.com 4 | */ 5 | public interface EventConstant { 6 | public final static String EVENT_TICK = "E_TICK|"; 7 | public final static String EVENT_TRADE = "E_TRADE|"; 8 | public final static String EVENT_ORDER = "E_ORDER|"; 9 | public final static String EVENT_POSITION = "E_POSITION|";; 10 | public final static String EVENT_ACCOUNT = "E_ACCOUNT|";; 11 | public final static String EVENT_CONTRACT = "E_CONTRACT|";; 12 | public final static String EVENT_ERROR = "E_ERROR|";; 13 | public final static String EVENT_GATEWAY = "E_GATEWAY|";; 14 | public final static String EVENT_LOG = "E_LOG|";; 15 | public final static String EVENT_THREAD_STOP = "E_THREAD_STOP|";; 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/engine/event/FastEventDynamicHandler.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | import java.util.List; 4 | import java.util.Set; 5 | 6 | import com.lmax.disruptor.EventHandler; 7 | import com.lmax.disruptor.LifecycleAware; 8 | 9 | public interface FastEventDynamicHandler extends EventHandler, LifecycleAware{ 10 | void awaitShutdown()throws InterruptedException; 11 | 12 | public List getSubscribedEventList(); 13 | 14 | public Set getSubscribedEventSet(); 15 | 16 | public void subscribeEvent(String event); 17 | 18 | public void unsubscribeEvent(String event); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/engine/event/FastEventDynamicHandlerAbstract.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | import java.util.ArrayList; 4 | import java.util.HashSet; 5 | import java.util.List; 6 | import java.util.Set; 7 | import java.util.concurrent.CountDownLatch; 8 | 9 | public abstract class FastEventDynamicHandlerAbstract implements FastEventDynamicHandler { 10 | protected final CountDownLatch shutdownLatch = new CountDownLatch(1); 11 | protected List subscribedEventList = new ArrayList<>(); 12 | protected Set subscribedEventSet = new HashSet<>(); 13 | 14 | 15 | @Override 16 | public void onStart() { 17 | 18 | } 19 | 20 | @Override 21 | public void onShutdown() { 22 | shutdownLatch.countDown(); 23 | } 24 | 25 | @Override 26 | public void awaitShutdown() throws InterruptedException { 27 | shutdownLatch.await(); 28 | } 29 | 30 | @Override 31 | public List getSubscribedEventList() { 32 | return subscribedEventList; 33 | } 34 | 35 | @Override 36 | public Set getSubscribedEventSet() { 37 | return subscribedEventSet; 38 | } 39 | 40 | @Override 41 | public void subscribeEvent(String event) { 42 | subscribedEventList.add(event); 43 | subscribedEventSet.add(event); 44 | } 45 | 46 | @Override 47 | public void unsubscribeEvent(String event) { 48 | subscribedEventList.remove(event); 49 | if(!subscribedEventList.contains(event)) { 50 | subscribedEventSet.remove(event); 51 | } 52 | 53 | } 54 | 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/engine/event/FastEventFactory.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | import com.lmax.disruptor.EventFactory; 4 | 5 | public class FastEventFactory implements EventFactory{ 6 | 7 | @Override 8 | public FastEvent newInstance() { 9 | return new FastEvent(); 10 | } 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/engine/event/FastEventProducerAbstract.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | import com.lmax.disruptor.RingBuffer; 4 | 5 | public class FastEventProducerAbstract { 6 | protected final RingBuffer ringBuffer; 7 | 8 | public FastEventProducerAbstract(RingBuffer ringBuffer) 9 | { 10 | this.ringBuffer = ringBuffer; 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/engine/main/MainDataUtil.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.main; 2 | 3 | import java.util.List; 4 | 5 | import xyz.redtorch.trader.gateway.GatewaySetting; 6 | /** 7 | * @author sun0x00@gmail.com 8 | */ 9 | public interface MainDataUtil { 10 | GatewaySetting queryGatewaySetting(String gatewayID); 11 | 12 | List queryGatewaySettings(); 13 | 14 | void deleteGatewaySetting(String gatewayID); 15 | 16 | void saveGatewaySetting(GatewaySetting gatewaySetting); 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/entity/CancelOrderReq.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.entity; 2 | 3 | import java.io.Serializable; 4 | 5 | /** 6 | * @author sun0x00@gmail.com 7 | */ 8 | public class CancelOrderReq implements Serializable{ 9 | private static final long serialVersionUID = -8268383961926962032L; 10 | 11 | private String gatewayID; // 接口 12 | 13 | // 代码编号相关 14 | private String symbol; // 代码 15 | private String exchange; // 交易所代码 16 | private String rtSymbol; // 系统中的唯一代码,通常是 合约代码.交易所代码 17 | 18 | 19 | private String orderID; // 报单号 20 | 21 | // CTP LTS接口相关 22 | private int frontID; // 前置机号 23 | private int sessionID; // 回话号 24 | public String getGatewayID() { 25 | return gatewayID; 26 | } 27 | public void setGatewayID(String gatewayID) { 28 | this.gatewayID = gatewayID; 29 | } 30 | public String getSymbol() { 31 | return symbol; 32 | } 33 | public void setSymbol(String symbol) { 34 | this.symbol = symbol; 35 | } 36 | public String getExchange() { 37 | return exchange; 38 | } 39 | public void setExchange(String exchange) { 40 | this.exchange = exchange; 41 | } 42 | public String getRtSymbol() { 43 | return rtSymbol; 44 | } 45 | public void setRtSymbol(String rtSymbol) { 46 | this.rtSymbol = rtSymbol; 47 | } 48 | public String getOrderID() { 49 | return orderID; 50 | } 51 | public void setOrderID(String orderID) { 52 | this.orderID = orderID; 53 | } 54 | public int getFrontID() { 55 | return frontID; 56 | } 57 | public void setFrontID(int frontID) { 58 | this.frontID = frontID; 59 | } 60 | public int getSessionID() { 61 | return sessionID; 62 | } 63 | public void setSessionID(int sessionID) { 64 | this.sessionID = sessionID; 65 | } 66 | @Override 67 | public String toString() { 68 | return "CancelOrderReq [gatewayID=" + gatewayID + ", symbol=" + symbol + ", exchange=" + exchange 69 | + ", rtSymbol=" + rtSymbol + ", orderID=" + orderID + ", frontID=" + frontID + ", sessionID=" 70 | + sessionID + "]"; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/entity/LogData.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.entity; 2 | 3 | import java.io.Serializable; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Date; 6 | 7 | import xyz.redtorch.trader.base.RtConstant; 8 | 9 | /** 10 | * @author sun0x00@gmail.com 11 | */ 12 | public class LogData implements Serializable{ 13 | private static final long serialVersionUID = 7122255887442856581L; 14 | 15 | private long logTimestamp = System.currentTimeMillis(); //日志创建时间 16 | private String logContent; //日志信息 17 | private String logLevel = RtConstant.LOG_INFO; //日志级别 18 | 19 | public String getFormatDate() { 20 | SimpleDateFormat sdf = new SimpleDateFormat(RtConstant.DT_FORMAT_WITH_MS); 21 | return sdf.format(new Date(logTimestamp)); 22 | } 23 | public long getLogTimestamp() { 24 | return logTimestamp; 25 | } 26 | public void setLogTimestamp(long logTimestamp) { 27 | this.logTimestamp = logTimestamp; 28 | } 29 | public String getLogContent() { 30 | return logContent; 31 | } 32 | public void setLogContent(String logContent) { 33 | this.logContent = logContent; 34 | } 35 | public String getLogLevel() { 36 | return logLevel; 37 | } 38 | public void setLogLevel(String logLevel) { 39 | this.logLevel = logLevel; 40 | } 41 | @Override 42 | public String toString() { 43 | return "LogData [logTimestamp=" + logTimestamp + ", logContent=" + logContent + ", logLevel=" + logLevel + "]"; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/module/zeus/ZeusConstant.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.module.zeus; 2 | 3 | /** 4 | * Zeus引擎常量 5 | * @author sun0x00@gmail.com 6 | * 7 | */ 8 | public class ZeusConstant { 9 | //引擎类型,区分策略环境 10 | public static final int ENGINE_TYPE_BACKTESTING = 0; 11 | public static final int ENGINE_TYPE_TRADING = 1; 12 | //委托类型 13 | public static final String ORDER_BUY = "买开"; 14 | public static final String ORDER_SELL = "卖平"; 15 | public static final String ORDER_SELLTODAY = "卖平今"; 16 | public static final String ORDER_SELLYESTERDAY = "卖平昨"; 17 | public static final String ORDER_SHORT = "卖开"; 18 | public static final String ORDER_COVER = "买平"; 19 | public static final String ORDER_COVERTODAY = "买平今"; 20 | public static final String ORDER_COVERYESTERDAY = "买平昨"; 21 | //本地停止单状态 22 | public static final String STOPORDER_WAITING = "等待中"; 23 | public static final String STOPORDER_CANCELLED = "已撤销"; 24 | public static final String STOPORDER_TRIGGERED = "已触发"; 25 | //本地停止单前缀 26 | public static final String STOPORDERPREFIX = "Z_STOP_ORDER."; 27 | } 28 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/module/zeus/ZeusDataUtil.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.module.zeus; 2 | 3 | import java.util.List; 4 | 5 | import org.joda.time.DateTime; 6 | 7 | import xyz.redtorch.trader.entity.Bar; 8 | import xyz.redtorch.trader.entity.Tick; 9 | import xyz.redtorch.trader.module.zeus.entity.PositionDetail; 10 | import xyz.redtorch.trader.module.zeus.strategy.StrategySetting; 11 | 12 | /** 13 | * @author sun0x00@gmail.com 14 | */ 15 | public interface ZeusDataUtil { 16 | 17 | List loadBarDataList(DateTime startDateTime, DateTime endDateTime, String rtSymbol); 18 | 19 | List loadTickDataList(DateTime startDateTime, DateTime endDateTime, String rtSymbol); 20 | 21 | List loadStrategyPositionDetails(String tradingDay, String strategyID, String strategyName); 22 | 23 | void saveStrategyPositionDetail(PositionDetail positionDetail); 24 | 25 | StrategySetting loadStrategySetting(String strategyID); 26 | 27 | void saveStrategySetting(StrategySetting strategySetting) ; 28 | 29 | List loadStrategySettings(); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/module/zeus/strategy/backtesting/RunBacktestingForStrategyBK.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.module.zeus.strategy.backtesting; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | import xyz.redtorch.trader.engine.data.DataEngine; 7 | import xyz.redtorch.trader.engine.data.impl.DataEngineImpl; 8 | import xyz.redtorch.trader.module.zeus.BacktestingEngine; 9 | import xyz.redtorch.trader.module.zeus.BacktestingEngine.BacktestingSection; 10 | import xyz.redtorch.trader.module.zeus.impl.BacktestingEngineImpl; 11 | 12 | 13 | /** 14 | * @author sun0x00@gmail.com 15 | */ 16 | public class RunBacktestingForStrategyBK { 17 | public static void main(String[] args) throws Exception { 18 | String strategyID = "ID-StrategyBK01"; 19 | boolean reloadStrategyEveryday = false; 20 | int backtestingDataMode = BacktestingEngine.DATA_MODE_BAR; 21 | List backestingSectionList = new ArrayList<>(); 22 | // 分段回测 23 | BacktestingSection backtestingSection= new BacktestingSection(); 24 | backtestingSection.setStartDate("20180222"); 25 | backtestingSection.setEndDate("20180319"); 26 | backtestingSection.addAliasRtSymbol("IC", "IC1803.CFFEX"); 27 | backtestingSection.addAliasRtSymbol("IH", "IH1803.CFFEX"); 28 | 29 | backtestingSection.addSubscribeRtSymbol("9999.724SN02.187.10030", "IF1803.CFFEX"); 30 | backtestingSection.addSubscribeRtSymbol("9999.724SN01.187.10030", "IC1803.CFFEX"); 31 | backtestingSection.addSubscribeRtSymbol("9999.724SN01.187.10030", "IH1803.CFFEX"); 32 | 33 | backestingSectionList.add(backtestingSection); 34 | 35 | // backtestingSection= new BacktestingSection(); 36 | // backtestingSection.setStartDate("20180321"); 37 | // backtestingSection.setEndDate("20180323"); 38 | // backtestingSection.addPrefixSuffix("IF", "1804"); 39 | // backtestingSection.addPrefixSuffix("IC", "1804"); 40 | // backtestingSection.addPrefixSuffix("IH", "1804"); 41 | // backestingSectionList.add(backtestingSection); 42 | 43 | DataEngine dataEngine = new DataEngineImpl(); 44 | 45 | BacktestingEngine backtestingEngine = new BacktestingEngineImpl(dataEngine, strategyID, backestingSectionList, backtestingDataMode, reloadStrategyEveryday); 46 | backtestingEngine.runBacktesting(); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/trader/rm/RiskManagement.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.rm; 2 | 3 | import xyz.redtorch.trader.entity.CancelOrderReq; 4 | import xyz.redtorch.trader.entity.OrderReq; 5 | 6 | /** 7 | * 风控组件 8 | * @author sun0x00@gmail.com 9 | * 10 | */ 11 | public interface RiskManagement { 12 | boolean filterOrder(OrderReq orderReq); 13 | boolean filterCancelOrder(CancelOrderReq cancelOrderReq); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/utils/FastEventLogAppender.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.utils; 2 | 3 | import ch.qos.logback.classic.Level; 4 | import ch.qos.logback.classic.spi.ILoggingEvent; 5 | import ch.qos.logback.core.AppenderBase; 6 | import xyz.redtorch.trader.base.RtConstant; 7 | import xyz.redtorch.trader.engine.event.EventConstant; 8 | 9 | 10 | 11 | public class FastEventLogAppender extends AppenderBase { 12 | @Override 13 | protected void append(ILoggingEvent le) { 14 | 15 | if(le == null || le.getMessage() == null) { 16 | return; 17 | } 18 | 19 | String rtLevel = RtConstant.LOG_DEBUG; 20 | Level leLevel = le.getLevel(); 21 | 22 | switch (leLevel.levelInt) { 23 | case Level.TRACE_INT: 24 | rtLevel = RtConstant.LOG_DEBUG; 25 | break; 26 | case Level.DEBUG_INT: 27 | rtLevel = RtConstant.LOG_DEBUG; 28 | break; 29 | case Level.INFO_INT: 30 | rtLevel = RtConstant.LOG_INFO; 31 | break; 32 | case Level.WARN_INT: 33 | rtLevel = RtConstant.LOG_WARN; 34 | break; 35 | case Level.ERROR_INT: 36 | rtLevel = RtConstant.LOG_ERROR; 37 | break; 38 | default: 39 | break; 40 | } 41 | 42 | // 出于前端性能考虑,只转发错误级别日志(强烈建议不要修改或者可以关闭日志转发) 43 | if(RtConstant.LOG_ERROR.contains(rtLevel)) { 44 | String event = EventConstant.EVENT_LOG; 45 | StringBuffer sb = new StringBuffer(); 46 | String loggerName = le.getLoggerName(); 47 | sb.append(le.getThreadName()).append("\t").append(loggerName.split("\\.")[loggerName.split("\\.").length-1]) 48 | .append("\t").append(le.getFormattedMessage()); 49 | CommonUtil.emitLogBase(le.getTimeStamp(), event, rtLevel, sb.toString()); 50 | } 51 | 52 | } 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/adaptor/WebConfigAdaptor.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.adaptor; 2 | 3 | import org.springframework.context.annotation.Configuration; 4 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 5 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 6 | import xyz.redtorch.web.interceptor.AuthInterceptor; 7 | 8 | @Configuration 9 | public class WebConfigAdaptor implements WebMvcConfigurer { 10 | @Override 11 | public void addInterceptors(InterceptorRegistry registry) { 12 | registry.addInterceptor(new AuthInterceptor()); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/annotation/Authorization.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.annotation; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | @Target(ElementType.METHOD) 9 | @Retention(RetentionPolicy.RUNTIME) 10 | public @interface Authorization { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/filter/StreamFilter.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.filter; 2 | 3 | import javax.servlet.*; 4 | import javax.servlet.annotation.WebFilter; 5 | import javax.servlet.http.HttpServletRequest; 6 | 7 | import xyz.redtorch.web.servlet.http.BodyReaderHttpServletRequestWrapper; 8 | 9 | import java.io.*; 10 | 11 | 12 | @WebFilter(filterName="streamFilter",urlPatterns="/*") 13 | public class StreamFilter implements Filter { 14 | @Override 15 | public void init(FilterConfig filterConfig) throws ServletException { 16 | // System.out.println("--------------过滤器初始化------------"); 17 | } 18 | 19 | @Override 20 | public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException { 21 | // System.out.println("--------------执行过滤操作------------"); 22 | 23 | // 防止流读取一次后就没有了, 所以需要将流继续写出去 24 | HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest; 25 | ServletRequest requestWrapper = new BodyReaderHttpServletRequestWrapper(httpServletRequest); 26 | 27 | filterChain.doFilter(requestWrapper, servletResponse); 28 | } 29 | 30 | @Override 31 | public void destroy() { 32 | // System.out.println("--------------过滤器销毁------------"); 33 | } 34 | } -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/interceptor/AuthInterceptor.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.interceptor; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.alibaba.fastjson.JSONObject; 5 | 6 | import org.slf4j.Logger; 7 | import org.slf4j.LoggerFactory; 8 | import org.springframework.web.method.HandlerMethod; 9 | import org.springframework.web.servlet.handler.HandlerInterceptorAdapter; 10 | import xyz.redtorch.web.annotation.Authorization; 11 | import xyz.redtorch.web.servlet.http.BodyReaderHttpServletRequestWrapper; 12 | import xyz.redtorch.web.vo.ResultVO; 13 | 14 | import javax.servlet.http.HttpServletRequest; 15 | import javax.servlet.http.HttpServletResponse; 16 | 17 | import static xyz.redtorch.web.service.impl.TokenServiceImpl.tokenMap; 18 | 19 | public class AuthInterceptor extends HandlerInterceptorAdapter { 20 | private Logger logger = LoggerFactory.getLogger(AuthInterceptor.class); 21 | 22 | @Override 23 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) 24 | throws Exception { 25 | if (handler.getClass().isAssignableFrom(HandlerMethod.class)) { 26 | Authorization auth = ((HandlerMethod) handler).getMethodAnnotation(Authorization.class); 27 | if (auth == null) { 28 | return true; 29 | } else { 30 | 31 | try { 32 | JSONObject rbJSONObject = JSON 33 | .parseObject(new BodyReaderHttpServletRequestWrapper(request).getBodyString(request)); 34 | if (rbJSONObject != null && rbJSONObject.containsKey("token")) { 35 | if (tokenMap.containsKey(rbJSONObject.get("token"))) { 36 | return true; 37 | } 38 | } 39 | } catch (Exception e) { 40 | logger.info("解析RequestBody发生异常", e); 41 | } 42 | 43 | String token = request.getParameter("token"); 44 | if (tokenMap.containsKey(token)) { 45 | return true; 46 | } else { 47 | ResultVO result = new ResultVO(); 48 | result.setResultCode(ResultVO.ERROR); 49 | response.getWriter().print(JSON.toJSONString(result)); 50 | return false; 51 | } 52 | } 53 | } else { 54 | return true; 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/service/TokenService.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.service; 2 | 3 | /** 4 | * @author sun0x00@gmail.com 5 | */ 6 | public interface TokenService { 7 | String login(String username,String password); 8 | boolean validate(String token); 9 | void logout(String token); 10 | String getUsername(String token); 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/service/TradingService.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.service; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | 6 | import xyz.redtorch.trader.entity.Account; 7 | import xyz.redtorch.trader.entity.Contract; 8 | import xyz.redtorch.trader.entity.LocalPositionDetail; 9 | import xyz.redtorch.trader.entity.LogData; 10 | import xyz.redtorch.trader.entity.Order; 11 | import xyz.redtorch.trader.entity.Position; 12 | import xyz.redtorch.trader.entity.Trade; 13 | import xyz.redtorch.trader.gateway.GatewaySetting; 14 | 15 | /** 16 | * @author sun0x00@gmail.com 17 | */ 18 | public interface TradingService { 19 | boolean subscribe(String rtSymbol, String gatewayID); 20 | 21 | boolean unsubscribe(String rtSymbol, String gatewayID); 22 | 23 | List getTrades(); 24 | 25 | List getOrders(); 26 | 27 | List getLocalPositionDetails(); 28 | 29 | List getPositions(); 30 | 31 | List getAccounts(); 32 | 33 | List getContracts(); 34 | 35 | List getGatewaySettings(); 36 | 37 | void deleteGateway(String gatewayID); 38 | 39 | void changeGatewayConnectStatus(String gatewayID); 40 | 41 | void saveOrUpdateGatewaySetting(GatewaySetting gatewaySetting); 42 | 43 | void zeusLoadStrategy(); 44 | 45 | List> zeusGetStrategyInfos(); 46 | 47 | void zeusInitStrategy(String strategyID); 48 | 49 | void zeusSartStrategy(String strategyID); 50 | 51 | void zeusStopStrategy(String strategyID); 52 | 53 | void zeusInitAllStrategy(); 54 | 55 | void zeusSartAllStrategy(); 56 | 57 | void zeusStopAllStrategy(); 58 | 59 | void zeusReloadStrategy(String strategyID); 60 | 61 | List getLogDatas(); 62 | 63 | String sendOrder(String gatewayID, String rtSymbol, double price, int volume, String priceType, String direction, 64 | String offset); 65 | 66 | void cancelOrder(String rtOrderID); 67 | 68 | void cancelAllOrders(); 69 | 70 | 71 | } 72 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/service/impl/TokenServiceImpl.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.service.impl; 2 | 3 | import java.util.HashMap; 4 | import java.util.Map; 5 | import java.util.UUID; 6 | 7 | import org.slf4j.Logger; 8 | import org.slf4j.LoggerFactory; 9 | import org.springframework.beans.factory.annotation.Value; 10 | import org.springframework.stereotype.Service; 11 | 12 | import xyz.redtorch.web.service.TokenService; 13 | 14 | /** 15 | * @author sun0x00@gmail.com 16 | */ 17 | @Service 18 | public class TokenServiceImpl implements TokenService { 19 | 20 | private Logger log = LoggerFactory.getLogger(TokenServiceImpl.class); 21 | 22 | public static Map tokenMap = new HashMap<>(); 23 | 24 | @Value("${rt.web.username}") 25 | String usernameConf; 26 | @Value("${rt.web.password}") 27 | String passwordConf; 28 | 29 | @Override 30 | public String login(String username, String password) { 31 | 32 | if(usernameConf!=null && usernameConf.equals(username)&& passwordConf!=null&& passwordConf.equals(password)) { 33 | String token = UUID.randomUUID().toString().replaceAll("-", "").toUpperCase(); 34 | tokenMap.put(token, username); 35 | log.info("用户{}登录成功,Token-{}",username,token); 36 | return token; 37 | }else { 38 | return null; 39 | } 40 | } 41 | 42 | @Override 43 | public boolean validate(String token) { 44 | if(tokenMap.containsKey(token)) { 45 | return true; 46 | } 47 | return false; 48 | } 49 | 50 | @Override 51 | public void logout(String token) { 52 | if(tokenMap.containsKey(token)) { 53 | tokenMap.remove(token); 54 | } 55 | 56 | } 57 | 58 | @Override 59 | public String getUsername(String token) { 60 | return tokenMap.get(token); 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/socketio/SocketIOCommandLineRunner.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.socketio; 2 | 3 | import com.corundumstudio.socketio.SocketIOServer; 4 | 5 | import org.slf4j.Logger; 6 | import org.slf4j.LoggerFactory; 7 | import org.springframework.beans.factory.annotation.Autowired; 8 | import org.springframework.boot.CommandLineRunner; 9 | import org.springframework.stereotype.Component; 10 | 11 | /** 12 | * @author sun0x00@gmail.com 13 | */ 14 | @Component 15 | public class SocketIOCommandLineRunner implements CommandLineRunner { 16 | 17 | private Logger log = LoggerFactory.getLogger(SocketIOCommandLineRunner.class); 18 | 19 | private final SocketIOServer socketIOServer; 20 | 21 | 22 | @Autowired 23 | public SocketIOCommandLineRunner(SocketIOServer socketIOServer) { 24 | this.socketIOServer = socketIOServer; 25 | } 26 | 27 | 28 | @Override 29 | public void run(String... args) throws Exception { 30 | socketIOServer.start(); 31 | log.info("SocketIO启动成功!"); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/socketio/SocketIOMessageEventHandler.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.socketio; 2 | 3 | import com.corundumstudio.socketio.SocketIOClient; 4 | import com.corundumstudio.socketio.SocketIOServer; 5 | import com.corundumstudio.socketio.annotation.OnConnect; 6 | import com.corundumstudio.socketio.annotation.OnDisconnect; 7 | import org.slf4j.Logger; 8 | import org.slf4j.LoggerFactory; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Component; 11 | 12 | import java.util.ArrayList; 13 | import java.util.UUID; 14 | 15 | 16 | /** 17 | * @author sun0x00@gmail.com 18 | */ 19 | @Component 20 | public class SocketIOMessageEventHandler { 21 | private Logger log = LoggerFactory.getLogger(SocketIOMessageEventHandler.class); 22 | 23 | public SocketIOServer socketIOServer; 24 | static ArrayList listClient = new ArrayList<>(); 25 | static final int limitSeconds = 60; 26 | 27 | @Autowired 28 | public SocketIOMessageEventHandler(SocketIOServer socketIOServer) { 29 | this.socketIOServer = socketIOServer; 30 | } 31 | 32 | @OnConnect 33 | public void onConnect(SocketIOClient client) { 34 | listClient.add(client.getSessionId()); 35 | log.info("SoketIO客户端:" + client.getSessionId() + "已连接"); 36 | } 37 | 38 | @OnDisconnect 39 | public void onDisconnect(SocketIOClient client) { 40 | log.info("SoketIO客户端:" + client.getSessionId() + "断开连接"); 41 | } 42 | 43 | public void sendEvent(String event, Object obj) { //这里就是向客户端推消息了 44 | 45 | for(SocketIOClient socketIOClient :socketIOServer.getAllClients()) { 46 | socketIOClient.sendEvent(event, obj); 47 | } 48 | 49 | // for (UUID clientId : listClient) { 50 | // if (socketIoServer.getClient(clientId) == null) { 51 | // continue; 52 | // } 53 | // socketIoServer.getClient(clientId).sendEvent(event, obj); 54 | // } 55 | } 56 | } -------------------------------------------------------------------------------- /src/main/java/xyz/redtorch/web/vo/ResultVO.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.web.vo; 2 | 3 | /** 4 | * @author sun0x00@gmail.com 5 | */ 6 | public class ResultVO { 7 | public static final String SUCCESS = "success"; 8 | public static final String ERROR = "error"; 9 | 10 | private String resultCode = SUCCESS; 11 | private Object data; 12 | private String message; 13 | 14 | public String getResultCode() { 15 | return resultCode; 16 | } 17 | public void setResultCode(String resultCode) { 18 | this.resultCode = resultCode; 19 | } 20 | public Object getData() { 21 | return data; 22 | } 23 | public void setData(Object data) { 24 | this.data = data; 25 | } 26 | public String getMessage() { 27 | return message; 28 | } 29 | public void setMessage(String message) { 30 | this.message = message; 31 | } 32 | 33 | 34 | 35 | } 36 | -------------------------------------------------------------------------------- /src/main/resources/RtConfig.properties: -------------------------------------------------------------------------------- 1 | # 客户端ID, 数字、字母和下划线组合 2 | rt.client.id=JAVADEV01 3 | 4 | 5 | # 历史行情数据库 6 | mongodb.instance.md.host=127.0.0.1 7 | mongodb.instance.md.port=27017 8 | mongodb.instance.md.username= 9 | mongodb.instance.md.password= 10 | mongodb.instance.md.authdb= 11 | 12 | mongodb.instance.md.dbname.minute=redtorch_j_1min_db 13 | mongodb.instance.md.dbname.tick=redtorch_j_tick_db 14 | mongodb.instance.md.dbname.daily=redtorch_j_daily_db 15 | 16 | # 客户端数据库 17 | mongodb.instance.default.host=127.0.0.1 18 | mongodb.instance.default.port=27017 19 | mongodb.instance.default.username= 20 | mongodb.instance.default.password= 21 | mongodb.instance.default.authdb= 22 | 23 | # 通用交易日 24 | tradingDay= 25 | # 通用前一个交易日 26 | preTradingDay= 27 | 28 | module.zeus.backtesting.output.dir=D:\\redtorch_zeus_backtesting_output 29 | module.zeus.strategy.config.dir= 30 | 31 | #BlockingWaitStrategy 低效 低CPU 32 | #SleepingWaitStrategy 对生产者影响较小 33 | #YieldingWaitStrategy 高性能 ,适当CPU占用,建议开启BIOS超线程(默认) 34 | #BusySpinWaitStrategy 高性能,高CPU占用,需要CPU实际物理核心数量高于FastEventDynamicHandler数量。建议最低使用14核物理机,关闭BIOS超线程! 35 | engine.event.FastEventEngine.WaitStrategy=YieldingWaitStrategy 36 | -------------------------------------------------------------------------------- /src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #tomcat\u7AEF\u53E3\u4FEE\u6539 2 | server.port=9099 3 | 4 | rt.web.socketio.host=0.0.0.0 5 | rt.web.socketio.port=9098 6 | 7 | rt.web.username=test 8 | rt.web.password=test -------------------------------------------------------------------------------- /src/main/resources/assembly/jctpmdapiv6v3v11x64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/jctpmdapiv6v3v11x64.dll -------------------------------------------------------------------------------- /src/main/resources/assembly/jctptraderapiv6v3v11x64.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/jctptraderapiv6v3v11x64.dll -------------------------------------------------------------------------------- /src/main/resources/assembly/libiconv.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/libiconv.dll -------------------------------------------------------------------------------- /src/main/resources/assembly/libjctpmdapiv6v3v11x64.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/libjctpmdapiv6v3v11x64.so -------------------------------------------------------------------------------- /src/main/resources/assembly/libjctptraderapiv6v3v11x64.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/libjctptraderapiv6v3v11x64.so -------------------------------------------------------------------------------- /src/main/resources/assembly/libthostmduserapi.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/libthostmduserapi.so -------------------------------------------------------------------------------- /src/main/resources/assembly/libthosttraderapi.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/libthosttraderapi.so -------------------------------------------------------------------------------- /src/main/resources/assembly/thostmduserapi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/thostmduserapi.dll -------------------------------------------------------------------------------- /src/main/resources/assembly/thosttraderapi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/resources/assembly/thosttraderapi.dll -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | RedTorch 4 | 5 | index.html 6 | index.htm 7 | index.jsp 8 | default.html 9 | default.htm 10 | default.jsp 11 | 12 | -------------------------------------------------------------------------------- /src/main/webapp/static/element-2.3.4.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/webapp/static/element-2.3.4.zip -------------------------------------------------------------------------------- /src/main/webapp/static/element-dist/fonts/element-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/webapp/static/element-dist/fonts/element-icons.ttf -------------------------------------------------------------------------------- /src/main/webapp/static/element-dist/fonts/element-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/webapp/static/element-dist/fonts/element-icons.woff -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/webapp/static/vue-observe-visibility-master-0b71163.zip -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-0" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | indent_size = 2 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parser: 'babel-eslint', 4 | parserOptions: { 5 | sourceType: 'module' 6 | }, 7 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 8 | extends: 'standard', 9 | // required to lint *.vue files 10 | plugins: [ 11 | 'html' 12 | ], 13 | env: { 14 | browser: true, 15 | }, 16 | // add your custom rules here 17 | 'rules': { 18 | // allow paren-less arrow functions 19 | 'arrow-parens': 0, 20 | // allow async-await 21 | 'generator-star-spacing': 0, 22 | // allow debugger during development 23 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 24 | // trailing comma 25 | 'comma-dangle': ['error', 'always-multiline'], 26 | 'indent': ['error', 'tab'], 27 | 'no-tabs': 'off', 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/build/rollup.config.base.js: -------------------------------------------------------------------------------- 1 | import babel from 'rollup-plugin-babel' 2 | import resolve from 'rollup-plugin-node-resolve' 3 | import vue from 'rollup-plugin-vue' 4 | import cjs from 'rollup-plugin-commonjs' 5 | import replace from 'rollup-plugin-replace' 6 | 7 | const config = require('../package.json') 8 | 9 | export default { 10 | input: 'src/index.js', 11 | name: 'vue-observe-visibility', 12 | plugins: [ 13 | resolve({ 14 | jsnext: true, 15 | main: true, 16 | browser: true, 17 | }), 18 | cjs(), 19 | vue({ 20 | css: 'dist/vue-observe-visibility.css', 21 | }), 22 | babel({ 23 | exclude: 'node_modules/**', 24 | 'plugins': [ 25 | 'external-helpers', 26 | ], 27 | }), 28 | replace({ 29 | VERSION: JSON.stringify(config.version), 30 | }), 31 | ], 32 | watch: { 33 | include: 'src/**', 34 | }, 35 | } 36 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/build/rollup.config.browser.js: -------------------------------------------------------------------------------- 1 | import base from './rollup.config.base' 2 | import uglify from 'rollup-plugin-uglify' 3 | import { minify } from 'uglify-es' 4 | 5 | const config = Object.assign({}, base, { 6 | output: { 7 | file: 'dist/vue-observe-visibility.min.js', 8 | format: 'iife', 9 | }, 10 | name: 'VueObserveVisibility', 11 | }) 12 | 13 | config.plugins.push(uglify({}, minify)) 14 | 15 | export default config 16 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/build/rollup.config.es.js: -------------------------------------------------------------------------------- 1 | import base from './rollup.config.base' 2 | 3 | const config = Object.assign({}, base, { 4 | output: { 5 | file: 'dist/vue-observe-visibility.esm.js', 6 | format: 'es', 7 | }, 8 | }) 9 | 10 | export default config 11 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/build/rollup.config.umd.js: -------------------------------------------------------------------------------- 1 | import base from './rollup.config.base' 2 | 3 | const config = Object.assign({}, base, { 4 | output: { 5 | file: 'dist/vue-observe-visibility.umd.js', 6 | format: 'umd', 7 | }, 8 | }) 9 | 10 | export default config 11 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/dist/vue-observe-visibility.esm.js: -------------------------------------------------------------------------------- 1 | function throwValueError(value) { 2 | if (value !== null && typeof value !== 'function') { 3 | throw new Error('observe-visibility directive expects a function as the value'); 4 | } 5 | } 6 | 7 | var ObserveVisibility = { 8 | bind: function bind(el, _ref, vnode) { 9 | var value = _ref.value; 10 | 11 | if (typeof IntersectionObserver === 'undefined') { 12 | console.warn('[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/WICG/IntersectionObserver/tree/gh-pages/polyfill'); 13 | } else { 14 | throwValueError(value); 15 | el._vue_visibilityCallback = value; 16 | var observer = el._vue_intersectionObserver = new IntersectionObserver(function (entries) { 17 | var entry = entries[0]; 18 | if (el._vue_visibilityCallback) { 19 | el._vue_visibilityCallback.call(null, entry.intersectionRatio > 0, entry); 20 | } 21 | }); 22 | // Wait for the element to be in document 23 | vnode.context.$nextTick(function () { 24 | observer.observe(el); 25 | }); 26 | } 27 | }, 28 | update: function update(el, _ref2) { 29 | var value = _ref2.value; 30 | 31 | throwValueError(value); 32 | el._vue_visibilityCallback = value; 33 | }, 34 | unbind: function unbind(el) { 35 | if (el._vue_intersectionObserver) { 36 | el._vue_intersectionObserver.disconnect(); 37 | delete el._vue_intersectionObserver; 38 | delete el._vue_visibilityCallback; 39 | } 40 | } 41 | }; 42 | 43 | // Install the components 44 | function install(Vue) { 45 | Vue.directive('observe-visibility', ObserveVisibility); 46 | /* -- Add more components here -- */ 47 | } 48 | 49 | /* -- Plugin definition & Auto-install -- */ 50 | /* You shouldn't have to modify the code below */ 51 | 52 | // Plugin 53 | var plugin = { 54 | // eslint-disable-next-line no-undef 55 | version: "0.3.1", 56 | install: install 57 | }; 58 | 59 | // Auto-install 60 | var GlobalVue = null; 61 | if (typeof window !== 'undefined') { 62 | GlobalVue = window.Vue; 63 | } else if (typeof global !== 'undefined') { 64 | GlobalVue = global.Vue; 65 | } 66 | if (GlobalVue) { 67 | GlobalVue.use(plugin); 68 | } 69 | 70 | export { install, ObserveVisibility }; 71 | export default plugin; 72 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/dist/vue-observe-visibility.min.js: -------------------------------------------------------------------------------- 1 | var VueObserveVisibility=function(e){"use strict";function i(e){if(null!==e&&"function"!=typeof e)throw new Error("observe-visibility directive expects a function as the value")}function t(e){e.directive("observe-visibility",n)}var n={bind:function(e,t,n){var l=t.value;if("undefined"==typeof IntersectionObserver)console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/WICG/IntersectionObserver/tree/gh-pages/polyfill");else{i(l),e._vue_visibilityCallback=l;var r=e._vue_intersectionObserver=new IntersectionObserver(function(i){var t=i[0];e._vue_visibilityCallback&&e._vue_visibilityCallback.call(null,t.intersectionRatio>0,t)});n.context.$nextTick(function(){r.observe(e)})}},update:function(e,t){var n=t.value;i(n),e._vue_visibilityCallback=n},unbind:function(e){e._vue_intersectionObserver&&(e._vue_intersectionObserver.disconnect(),delete e._vue_intersectionObserver,delete e._vue_visibilityCallback)}},l={version:"0.3.1",install:t},r=null;return"undefined"!=typeof window?r=window.Vue:"undefined"!=typeof global&&(r=global.Vue),r&&r.use(l),e.install=t,e.ObserveVisibility=n,e.default=l,e}({}); 2 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/src/directives/observe-visibility.js: -------------------------------------------------------------------------------- 1 | function throwValueError (value) { 2 | if (value !== null && typeof value !== 'function') { 3 | throw new Error('observe-visibility directive expects a function as the value') 4 | } 5 | } 6 | 7 | export default { 8 | bind (el, { value }, vnode) { 9 | if (typeof IntersectionObserver === 'undefined') { 10 | console.warn('[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/WICG/IntersectionObserver/tree/gh-pages/polyfill') 11 | } else { 12 | throwValueError(value) 13 | el._vue_visibilityCallback = value 14 | const observer = el._vue_intersectionObserver = new IntersectionObserver(entries => { 15 | var entry = entries[0] 16 | if (el._vue_visibilityCallback) { 17 | el._vue_visibilityCallback.call(null, entry.intersectionRatio > 0, entry) 18 | } 19 | }) 20 | // Wait for the element to be in document 21 | vnode.context.$nextTick(() => { 22 | observer.observe(el) 23 | }) 24 | } 25 | }, 26 | update (el, { value }) { 27 | throwValueError(value) 28 | el._vue_visibilityCallback = value 29 | }, 30 | unbind (el) { 31 | if (el._vue_intersectionObserver) { 32 | el._vue_intersectionObserver.disconnect() 33 | delete el._vue_intersectionObserver 34 | delete el._vue_visibilityCallback 35 | } 36 | }, 37 | } 38 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/src/index.js: -------------------------------------------------------------------------------- 1 | import ObserveVisibility from './directives/observe-visibility' 2 | 3 | // Install the components 4 | export function install (Vue) { 5 | Vue.directive('observe-visibility', ObserveVisibility) 6 | /* -- Add more components here -- */ 7 | } 8 | 9 | export { 10 | ObserveVisibility, 11 | } 12 | 13 | /* -- Plugin definition & Auto-install -- */ 14 | /* You shouldn't have to modify the code below */ 15 | 16 | // Plugin 17 | const plugin = { 18 | // eslint-disable-next-line no-undef 19 | version: VERSION, 20 | install, 21 | } 22 | 23 | export default plugin 24 | 25 | // Auto-install 26 | let GlobalVue = null 27 | if (typeof window !== 'undefined') { 28 | GlobalVue = window.Vue 29 | } else if (typeof global !== 'undefined') { 30 | GlobalVue = global.Vue 31 | } 32 | if (GlobalVue) { 33 | GlobalVue.use(plugin) 34 | } 35 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-observe-visibility-master-0b71163/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 12 |
Hello world!
13 |
14 | 15 | 16 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/watano/RedTorch/6bca21b61745452874c224e7fc96f89d08dbcc86/src/main/webapp/static/vue-virtual-scroller-master-536cb52.zip -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }], 4 | "stage-0" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist/ 3 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | parserOptions: { 4 | parser: 'babel-eslint', 5 | ecmaVersion: 2017, 6 | sourceType: 'module' 7 | }, 8 | // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 9 | extends: [ 10 | 'standard', 11 | 'plugin:vue/recommended', 12 | ], 13 | // required to lint *.vue files 14 | plugins: [ 15 | 'html', 16 | ], 17 | env: { 18 | browser: true, 19 | }, 20 | // add your custom rules here 21 | 'rules': { 22 | // allow paren-less arrow functions 23 | 'arrow-parens': 0, 24 | // allow async-await 25 | 'generator-star-spacing': 0, 26 | // allow debugger during development 27 | 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, 28 | // trailing comma 29 | 'comma-dangle': ['error', 'always-multiline'], 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/.npmignore: -------------------------------------------------------------------------------- 1 | docs/ 2 | docs-src/ 3 | .babelrc 4 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/build/rollup.config.base.js: -------------------------------------------------------------------------------- 1 | import babel from 'rollup-plugin-babel' 2 | import resolve from 'rollup-plugin-node-resolve' 3 | import vue from 'rollup-plugin-vue' 4 | import cjs from 'rollup-plugin-commonjs' 5 | import replace from 'rollup-plugin-replace' 6 | import eslint from 'rollup-plugin-eslint' 7 | import fs from 'fs' 8 | import CleanCSS from 'clean-css' 9 | 10 | const config = require('../package.json') 11 | 12 | export default { 13 | input: 'src/index.js', 14 | plugins: [ 15 | resolve({ 16 | jsnext: true, 17 | main: true, 18 | browser: true, 19 | }), 20 | cjs(), 21 | eslint(), 22 | vue({ 23 | css (style) { 24 | fs.writeFileSync('dist/vue-virtual-scroller.css', new CleanCSS().minify(style).styles) 25 | }, 26 | }), 27 | babel({ 28 | exclude: 'node_modules/**', 29 | 'plugins': [ 30 | 'external-helpers', 31 | ], 32 | }), 33 | replace({ 34 | VERSION: JSON.stringify(config.version), 35 | }), 36 | ], 37 | watch: { 38 | include: 'src/**', 39 | }, 40 | } 41 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/build/rollup.config.browser.js: -------------------------------------------------------------------------------- 1 | import base from './rollup.config.base' 2 | import uglify from 'rollup-plugin-uglify' 3 | import { minify } from 'uglify-es' 4 | 5 | const config = Object.assign({}, base, { 6 | output: { 7 | exports: 'named', 8 | name: 'VueVirtualScroller', 9 | file: 'dist/vue-virtual-scroller.min.js', 10 | format: 'iife', 11 | }, 12 | }) 13 | 14 | config.plugins.push(uglify({}, minify)) 15 | 16 | export default config 17 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/build/rollup.config.es.js: -------------------------------------------------------------------------------- 1 | import base from './rollup.config.base' 2 | 3 | const config = Object.assign({}, base, { 4 | output: { 5 | name: 'vue-virtual-scroller', 6 | file: 'dist/vue-virtual-scroller.esm.js', 7 | format: 'es', 8 | }, 9 | }) 10 | 11 | export default config 12 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/build/rollup.config.umd.js: -------------------------------------------------------------------------------- 1 | import base from './rollup.config.base' 2 | 3 | const config = Object.assign({}, base, { 4 | output: { 5 | exports: 'named', 6 | name: 'vue-virtual-scroller', 7 | file: 'dist/vue-virtual-scroller.umd.js', 8 | format: 'umd', 9 | }, 10 | }) 11 | 12 | export default config 13 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/dist/vue-virtual-scroller.css: -------------------------------------------------------------------------------- 1 | .virtual-scroller[data-v-2b1f2e05]:not(.page-mode){overflow-y:auto}.item-container[data-v-2b1f2e05]{box-sizing:border-box;width:100%;overflow:hidden}.items[data-v-2b1f2e05]{width:100%}.recycle-list[data-v-2277f571]:not(.page-mode){overflow-y:auto}.item-wrapper[data-v-2277f571]{box-sizing:border-box;width:100%;overflow:hidden;position:relative}.item-view[data-v-2277f571]{width:100%;position:absolute;top:0;left:0;will-change:transform} -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { "modules": false }] 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | dist/ 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/README.md: -------------------------------------------------------------------------------- 1 | # vue-virtual-scroller-docs 2 | 3 | > Docs for vue-virtual-scroller 4 | 5 | ## Build Setup 6 | 7 | ``` bash 8 | # install dependencies 9 | npm install 10 | 11 | # serve with hot reload at localhost:8080 12 | npm run dev 13 | 14 | # build for production with minification 15 | npm run build 16 | ``` 17 | 18 | For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader). 19 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vue-virtual-scroller-docs", 3 | "description": "Docs for vue-virtual-scroller", 4 | "version": "1.0.0", 5 | "author": "Guillaume Chau ", 6 | "private": true, 7 | "scripts": { 8 | "dev": "cross-env NODE_ENV=development webpack-dev-server --open --inline --hot", 9 | "devp": "cross-env NODE_ENV=production webpack-dev-server --open --inline --hot", 10 | "build": "cross-env NODE_ENV=production webpack --progress --hide-modules" 11 | }, 12 | "dependencies": { 13 | "faker": "^4.1.0", 14 | "vue": "^2.1.0" 15 | }, 16 | "devDependencies": { 17 | "babel-core": "^6.0.0", 18 | "babel-loader": "^7.0.0", 19 | "babel-preset-env": "^1.6.1", 20 | "cross-env": "^5.0.0", 21 | "css-loader": "^0.28.0", 22 | "file-loader": "^1.1.0", 23 | "style-loader": "^0.19.0", 24 | "vue-loader": "^13.0.0", 25 | "vue-template-compiler": "^2.1.0", 26 | "webpack": "^3.8.0", 27 | "webpack-dev-server": "^2.9.3" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/src/Item.vue: -------------------------------------------------------------------------------- 1 | 18 | 19 | 38 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/src/Letter.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 29 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/src/data.js: -------------------------------------------------------------------------------- 1 | import faker from 'faker' 2 | 3 | let uid = 0 4 | 5 | function generateItem () { 6 | return { 7 | name: faker.name.findName(), 8 | avatar: faker.internet.avatar(), 9 | } 10 | } 11 | 12 | export function getData (count, letters) { 13 | const raw = {} 14 | 15 | const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('') 16 | 17 | for (var l of alphabet) { 18 | raw[l] = [] 19 | } 20 | 21 | for (var i = 0; i < count; i++) { 22 | const item = generateItem() 23 | const letter = item.name.charAt(0).toLowerCase() 24 | raw[letter].push(item) 25 | } 26 | 27 | const list = [] 28 | let index = 1 29 | 30 | for (const l of alphabet) { 31 | raw[l] = raw[l].sort((a, b) => a.name < b.name ? -1 : 1) 32 | if (letters) { 33 | list.push({ 34 | id: uid++, 35 | index: index++, 36 | type: 'letter', 37 | value: l, 38 | height: 200, 39 | }) 40 | } 41 | for (var item of raw[l]) { 42 | list.push({ 43 | id: uid++, 44 | index: index++, 45 | type: 'person', 46 | value: item, 47 | height: 50, 48 | }) 49 | } 50 | } 51 | 52 | return list 53 | } 54 | 55 | export function addItem (list) { 56 | list.push({ 57 | id: uid++, 58 | index: list.length + 1, 59 | type: 'person', 60 | value: generateItem(), 61 | height: 50, 62 | }) 63 | } 64 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/src/main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import VirtualScroller, { VirtualScroller as Comp } from '../../' 3 | import '../../dist/vue-virtual-scroller.css' 4 | import App from './App.vue' 5 | 6 | console.log(VirtualScroller, Comp) 7 | 8 | Vue.use(VirtualScroller) 9 | 10 | /* eslint-disable no-new */ 11 | new Vue({ 12 | el: '#app', 13 | render: h => h(App), 14 | }) 15 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs-src/webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | var webpack = require('webpack') 3 | 4 | module.exports = { 5 | entry: './src/main.js', 6 | output: { 7 | path: path.resolve(__dirname, '../docs'), 8 | publicPath: '/', 9 | filename: 'build.js' 10 | }, 11 | module: { 12 | rules: [ 13 | { 14 | test: /\.vue$/, 15 | loader: 'vue-loader', 16 | options: { 17 | loaders: { 18 | // Since sass-loader (weirdly) has SCSS as its default parse mode, we map 19 | // the "scss" and "sass" values for the lang attribute to the right configs here. 20 | // other preprocessors should work out of the box, no loader config like this nessessary. 21 | 'scss': 'vue-style-loader!css-loader!sass-loader', 22 | 'sass': 'vue-style-loader!css-loader!sass-loader?indentedSyntax' 23 | } 24 | // other vue-loader options go here 25 | } 26 | }, 27 | { 28 | test: /\.js$/, 29 | loader: 'babel-loader', 30 | exclude: /node_modules/ 31 | }, 32 | { 33 | test: /\.(png|jpg|gif|svg)$/, 34 | loader: 'file-loader', 35 | options: { 36 | name: '[name].[ext]?[hash]' 37 | } 38 | }, 39 | { 40 | test: /\.css$/, 41 | loader: 'style-loader!css-loader' 42 | } 43 | ] 44 | }, 45 | resolve: { 46 | alias: { 47 | 'vue$': 'vue/dist/vue.common.js' 48 | } 49 | }, 50 | devServer: { 51 | historyApiFallback: true, 52 | noInfo: true, 53 | contentBase: path.join(__dirname, "..", "docs"), 54 | }, 55 | performance: { 56 | hints: false 57 | }, 58 | devtool: '#eval-source-map' 59 | } 60 | 61 | if (process.env.NODE_ENV === 'production') { 62 | module.exports.devtool = '#source-map' 63 | // http://vue-loader.vuejs.org/en/workflow/production.html 64 | module.exports.plugins = (module.exports.plugins || []).concat([ 65 | new webpack.DefinePlugin({ 66 | 'process.env': { 67 | NODE_ENV: '"production"' 68 | } 69 | }), 70 | new webpack.optimize.UglifyJsPlugin({ 71 | sourceMap: true, 72 | compress: { 73 | warnings: false 74 | } 75 | }), 76 | new webpack.LoaderOptionsPlugin({ 77 | minimize: true 78 | }) 79 | ]) 80 | } 81 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs/.nojekyll: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/docs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | vue-virtual-scroller-docs 6 | 7 | 8 |
9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/src/index.js: -------------------------------------------------------------------------------- 1 | import VirtualScroller from './components/VirtualScroller.vue' 2 | import RecycleList from './components/RecycleList.vue' 3 | 4 | export { 5 | VirtualScroller, 6 | RecycleList, 7 | } 8 | 9 | function registerComponents (Vue, prefix) { 10 | Vue.component(`${prefix}virtual-scroller`, VirtualScroller) 11 | Vue.component(`${prefix}recycle-list`, RecycleList) 12 | } 13 | 14 | const plugin = { 15 | // eslint-disable-next-line no-undef 16 | version: VERSION, 17 | install (Vue, options) { 18 | const finalOptions = Object.assign({}, { 19 | installComponents: true, 20 | componentsPrefix: '', 21 | }, options) 22 | 23 | if (finalOptions.installComponents) { 24 | registerComponents(Vue, finalOptions.componentsPrefix) 25 | } 26 | }, 27 | } 28 | 29 | export default plugin 30 | 31 | // Auto-install 32 | let GlobalVue = null 33 | if (typeof window !== 'undefined') { 34 | GlobalVue = window.Vue 35 | } else if (typeof global !== 'undefined') { 36 | GlobalVue = global.Vue 37 | } 38 | if (GlobalVue) { 39 | GlobalVue.use(plugin) 40 | } 41 | -------------------------------------------------------------------------------- /src/main/webapp/static/vue-virtual-scroller-master-536cb52/src/utils.js: -------------------------------------------------------------------------------- 1 | export let supportsPassive = false 2 | 3 | if (typeof window !== 'undefined') { 4 | supportsPassive = false 5 | try { 6 | var opts = Object.defineProperty({}, 'passive', { 7 | get () { 8 | supportsPassive = true 9 | }, 10 | }) 11 | window.addEventListener('test', null, opts) 12 | } catch (e) {} 13 | } 14 | -------------------------------------------------------------------------------- /src/site/ZeusConfigDoc/ExampleSetting.json: -------------------------------------------------------------------------------- 1 | { 2 | "strategyName": "StrategyExample", 3 | "strategyID": "example0x00", 4 | "className":"xyz.redtorch.trader.module.zeus.strategy.impl.pub.StrategyExample", 5 | "xMin": 0, 6 | "tradingDay": "20180404", 7 | "preTradingDay": "20180403", 8 | "lastTradingDay": false, 9 | "paramMap": { 10 | "pTtetsA": 1, 11 | "pTetsB": 2 12 | }, 13 | "varMap": { 14 | "vTetsA": 3, 15 | "vTetsB": 4, 16 | "vTetsC": 5 17 | }, 18 | "syncVarList": [ 19 | "vTetsA", 20 | "vTetsB" 21 | ], 22 | "gateways": [ 23 | { 24 | "gatewayID": "9999.724SN02.187.10030", 25 | "backtestingCapital": 5000000, 26 | "subscribeRtSymbols": [ 27 | "IF1805.CFFEX" 28 | ] 29 | }, 30 | { 31 | "gatewayID": "9999.724SN01.187.10030", 32 | "backtestingCapital": 2000000, 33 | "subscribeRtSymbols": [ 34 | "IH1805.CFFEX", "IC1806.CFFEX" 35 | ] 36 | } 37 | ], 38 | "contracts": [ 39 | { 40 | "alias": "IH", 41 | "rtSymbol": "IH1805.CFFEX", 42 | "backtestingSlippage": 0.4, 43 | "backtestingPriceTick": 0.2, 44 | "size": 300, 45 | "tradeGateways": [ 46 | { 47 | "gatewayID": "9999.724SN02.187.10030", 48 | "tradeFixedPos": 2, 49 | "backtestingRate": 0.0001 50 | }, 51 | { 52 | "gatewayID": "9999.724SN01.187.10030", 53 | "tradeFixedPos": 3, 54 | "backtestingRate": 0.0004 55 | } 56 | ] 57 | }, 58 | { 59 | "alias": "IC", 60 | "rtSymbol": "IC1805.CFFEX", 61 | "backtestingSlippage": 0.4, 62 | "backtestingPriceTick": 0.2, 63 | "size": 200, 64 | "tradeGateways": [ 65 | { 66 | "gatewayID": "9999.724SN02.187.10030", 67 | "tradeFixedPos": 10, 68 | "backtestingRate": 0.0001 69 | }, 70 | { 71 | "gatewayID": "9999.724SN01.187.10030", 72 | "tradeFixedPos": 8, 73 | "backtestingRate": 0.0004 74 | } 75 | ] 76 | } 77 | ] 78 | } -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/FastEventDynamicHandlerTest.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | 4 | public class FastEventDynamicHandlerTest extends FastEventDynamicHandlerAbstract 5 | { 6 | String id = ""; 7 | FastEventDynamicHandlerTest(String id){ 8 | this.id = id+"====="; 9 | } 10 | @Override 11 | public void onEvent(final FastEvent fastEvent, final long sequence, final boolean endOfBatch) throws Exception { 12 | System.out.println(this.id+fastEvent.getEvent()); 13 | } 14 | 15 | @Override 16 | public void onStart() { 17 | 18 | } 19 | 20 | @Override 21 | public void onShutdown() { 22 | shutdownLatch.countDown(); 23 | } 24 | } -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/FastEventMainTest.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | 4 | public class FastEventMainTest 5 | { 6 | public static void main(String[] args) throws Exception 7 | { 8 | 9 | FastEventProducerTest FastEventProducerTest1 = new FastEventProducerTest(FastEventEngine.getRingBuffer()); 10 | 11 | FastEventDynamicHandler fedh1 = new FastEventDynamicHandlerTest("1"); 12 | FastEventEngine.addHandler(fedh1); 13 | FastEventProducerTest1.onData("A==========="); //A 14 | FastEventDynamicHandler fedh2 = new FastEventDynamicHandlerTest("2"); 15 | FastEventEngine.addHandler(fedh2); 16 | FastEventProducerTest1.onData("B==========="); //BB 17 | FastEventDynamicHandler fedh3 = new FastEventDynamicHandlerTest("3"); 18 | FastEventEngine.addHandler(fedh3); 19 | FastEventProducerTest1.onData("C===========");//CCC 20 | FastEventEngine.removeHandler(fedh1); 21 | FastEventProducerTest1.onData("D===========");//DD 22 | FastEventEngine.removeHandler(fedh3); 23 | FastEventProducerTest1.onData("E==========="); 24 | FastEventEngine.removeHandler(fedh2); 25 | FastEventProducerTest1.onData("==========="); 26 | 27 | while(true) { 28 | FastEventProducerTest1.onData("==========="); 29 | Thread.sleep(1000); 30 | } 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/FastEventProducerTest.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | import com.lmax.disruptor.RingBuffer; 4 | 5 | import xyz.redtorch.trader.engine.event.FastEvent; 6 | 7 | public class FastEventProducerTest extends FastEventProducerAbstract { 8 | public FastEventProducerTest(RingBuffer ringBuffer) { 9 | super(ringBuffer); 10 | } 11 | 12 | public void onData(String eventStr) { 13 | long sequence = ringBuffer.next(); // Grab the next sequence 14 | try { 15 | FastEvent fastEvent = ringBuffer.get(sequence); // Get the entry in the Disruptor for the sequence 16 | fastEvent.setEvent(eventStr+System.currentTimeMillis()); 17 | } finally { 18 | ringBuffer.publish(sequence); 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/FastEventProducerWithTranslator.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event; 2 | 3 | import com.lmax.disruptor.RingBuffer; 4 | 5 | import com.lmax.disruptor.EventTranslatorOneArg; 6 | 7 | public class FastEventProducerWithTranslator { 8 | private final RingBuffer ringBuffer; 9 | 10 | public FastEventProducerWithTranslator(RingBuffer ringBuffer) { 11 | this.ringBuffer = ringBuffer; 12 | } 13 | 14 | private static final EventTranslatorOneArg TRANSLATOR = new EventTranslatorOneArg() { 15 | public void translateTo(FastEvent fastEvent, long sequence, String event) { 16 | fastEvent.setEvent(event); 17 | } 18 | }; 19 | 20 | public void onData(String event) { 21 | ringBuffer.publishEvent(TRANSLATOR, event); 22 | } 23 | } -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/dynamic/case1/Holder.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event.dynamic.case1; 2 | 3 | import com.lmax.disruptor.EventFactory; 4 | 5 | class Holder { 6 | 7 | private String value; 8 | 9 | public static final EventFactory EVENT_FACTORY = new EventFactory() { 10 | @Override 11 | public Holder newInstance() { 12 | return new Holder(); 13 | } 14 | }; 15 | 16 | public String getValue() { 17 | return value; 18 | } 19 | 20 | public void setValue(String value) { 21 | this.value = value; 22 | } 23 | } -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/dynamic/case1/MyDisruptor.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event.dynamic.case1; 2 | 3 | import com.lmax.disruptor.*; 4 | import java.util.Map; 5 | import java.util.concurrent.ConcurrentHashMap; 6 | 7 | class MyDisruptor { 8 | 9 | private final RingBuffer ringBuffer; 10 | private final SequenceGroup sequenceGroup = new SequenceGroup(); 11 | private final Map, BatchEventProcessor> handlersWithProcessors = new ConcurrentHashMap<>(); 12 | 13 | public MyDisruptor() { 14 | ringBuffer = RingBuffer.createMultiProducer(Holder.EVENT_FACTORY, 4096); 15 | ringBuffer.addGatingSequences(sequenceGroup); 16 | } 17 | 18 | public void addHandler(EventHandler handler) { 19 | SequenceBarrier barrier = ringBuffer.newBarrier(); 20 | BatchEventProcessor processor = new BatchEventProcessor<>(ringBuffer, barrier, handler); 21 | processor.getSequence().set(barrier.getCursor()); 22 | sequenceGroup.add(processor.getSequence()); 23 | processor.getSequence().set(ringBuffer.getCursor()); 24 | handlersWithProcessors.put(handler, processor); 25 | processor.run(); 26 | } 27 | 28 | public void removeHandler(EventHandler handler) { 29 | BatchEventProcessor processor = handlersWithProcessors.remove(handler); 30 | processor.halt(); 31 | sequenceGroup.remove(processor.getSequence()); 32 | } 33 | 34 | public void publishValue(String value) { 35 | long nextSequence = ringBuffer.next(); 36 | Holder holder = ringBuffer.get(nextSequence); 37 | holder.setValue(value); 38 | ringBuffer.publish(nextSequence); 39 | } 40 | 41 | public boolean hasHandlers() { 42 | return handlersWithProcessors.size() != 0; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/dynamic/case1/TestCase.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event.dynamic.case1; 2 | 3 | 4 | import com.lmax.disruptor.EventHandler; 5 | 6 | public class TestCase { 7 | 8 | private static final MyDisruptor disruptor = new MyDisruptor(); 9 | 10 | private static class Handler implements EventHandler { 11 | 12 | private int count = 0; 13 | 14 | @Override 15 | public void onEvent(Holder holder, long l, boolean b) throws Exception { 16 | System.out.println(holder.getValue()); 17 | count++; 18 | if (count == 5000 && !holder.getValue().isEmpty()) { 19 | disruptor.removeHandler(this); 20 | } 21 | } 22 | } 23 | 24 | public static void main(String[] args) throws Exception { 25 | for (int i = 0; i < 100000; i++) { 26 | for (int j = 0; j < 4; j++) { 27 | new Thread(new Runnable() { 28 | @Override 29 | public void run() { 30 | disruptor.addHandler(new Handler()); 31 | } 32 | }).start(); 33 | } 34 | 35 | while (disruptor.hasHandlers()) { 36 | disruptor.publishValue(String.valueOf(System.currentTimeMillis())); 37 | } 38 | } 39 | } 40 | } -------------------------------------------------------------------------------- /src/test/java/xyz/redtorch/trader/engine/event/dynamic/case2/StubEvent.java: -------------------------------------------------------------------------------- 1 | package xyz.redtorch.trader.engine.event.dynamic.case2; 2 | 3 | import com.lmax.disruptor.EventFactory; 4 | import com.lmax.disruptor.EventTranslatorTwoArg; 5 | 6 | public final class StubEvent 7 | { 8 | private int value; 9 | private String testString; 10 | public static final EventTranslatorTwoArg TRANSLATOR = 11 | new EventTranslatorTwoArg() 12 | { 13 | @Override 14 | public void translateTo(StubEvent event, long sequence, Integer arg0, String arg1) 15 | { 16 | event.setValue(arg0); 17 | event.setTestString(arg1); 18 | } 19 | }; 20 | 21 | public StubEvent(int i) 22 | { 23 | this.value = i; 24 | } 25 | 26 | public void copy(StubEvent event) 27 | { 28 | value = event.value; 29 | } 30 | 31 | public int getValue() 32 | { 33 | return value; 34 | } 35 | 36 | public void setValue(int value) 37 | { 38 | this.value = value; 39 | } 40 | 41 | public String getTestString() 42 | { 43 | return testString; 44 | } 45 | 46 | public void setTestString(final String testString) 47 | { 48 | this.testString = testString; 49 | } 50 | 51 | public static final EventFactory EVENT_FACTORY = new EventFactory() 52 | { 53 | public StubEvent newInstance() 54 | { 55 | return new StubEvent(-1); 56 | } 57 | }; 58 | 59 | @Override 60 | public int hashCode() 61 | { 62 | final int prime = 31; 63 | int result = 1; 64 | result = prime * result + value; 65 | return result; 66 | } 67 | 68 | @Override 69 | public boolean equals(Object obj) 70 | { 71 | if (this == obj) 72 | { 73 | return true; 74 | } 75 | if (obj == null) 76 | { 77 | return false; 78 | } 79 | if (getClass() != obj.getClass()) 80 | { 81 | return false; 82 | } 83 | StubEvent other = (StubEvent) obj; 84 | 85 | return value == other.value; 86 | } 87 | } --------------------------------------------------------------------------------