Enum CtpError

Source
pub enum CtpError {
Show 257 variants None, InvalidDataSyncStatus, InconsistentInformation, InvalidLogin, UserNotActive, DuplicateLogin, NotLoginYet, NotInited, FrontNotActive, NoPrivilege, ChangeOtherPassword, UserNotFound, BrokerNotFound, InvestorNotFound, OldPasswordMismatch, BadField, InstrumentNotFound, InstrumentNotTrading, NotExchangeParticipant, InvestorNotActive, NotExchangeClient, NoValidTraderAvailable, DuplicateOrderRef, BadOrderActionField, DuplicateOrderActionRef, OrderNotFound, InsuitableOrderStatus, UnsupportedFunction, NoTradingRight, CloseOnly, OverClosePosition, InsufficientMoney, DuplicatePk, CannotFindPk, CanNotInactiveBroker, BrokerSynchronizing, BrokerSynchronized, ShortSell, InvalidSettlementRef, CffexNetworkError, CffexOverRequest, CffexOverRequestPerSecond, SettlementInfoNotConfirmed, DepositNotFound, ExchangTrading, ParkedorderNotFound, ParkedorderHassended, ParkedorderHasdelete, InvalidInvestoridorpassword, InvalidLoginIpaddress, OverClosetodayPosition, OverCloseyesterdayPosition, BrokerNotEnoughCondorder, InvestorNotEnoughCondorder, BrokerNotSupportCondorder, ResendOrderBrokerinvestorNotmatch, SycOtpFailed, OtpMismatch, OtpparamNotFound, UnsupportedOtptype, SingleusersessionExceedLimit, ExchangeUnsupportedArbitrage, NoConditionalOrderRight, AuthFailed, NotAuthent, SwaporderUnsupported, OptionsOnlySupportSpec, DuplicateExecorderRef, ResendExecorderBrokerinvestorNotmatch, ExecorderNotoptions, OptionsNotSupportExec, BadExecorderActionField, DuplicateExecorderActionRef, ExecorderNotFound, OverExecutePosition, LoginForbidden, InvalidTransferAgent, NoFoundFunction, SendExchangeorderFailed, SendExchangeorderactionFailed, PricetypeNotsupportByexchange, BadExecuteType, BadOptionInstr, InstrNotsupportForquote, ResendQuoteBrokerinvestorNotmatch, InstrNotsupportQuote, QuoteNotFound, OptionsNotSupportAbandon, ComboptionsSupportIocOnly, OpenFileFailed, NeedRetry, ExchangeRtnerror, QuoteDerivedorderActionerror, InstrumentmapNotFound, CancellationOfOtcDerivedOrderNotAllowed, BadPriceValue, SpbmfutparamNotFound, SpbmoptparamNotFound, SpbmintraparamNotFound, RuleinstrparamNotFound, RuleintraparamNotFound, NoTradingRightInSepcDr, NoDrNo, BatchactionNosupport, PosiLimit, OutOfTimeinterval, OutOfPriceinterval, OrderFreqLimit, WeakPassword, ExecForbiddenTime, FirstLogin, PwdOutOfDate, PwdMustDiff, IpForbidden, IpBlack, NoAuthRightInSepcDr, InvestorIdIsMissing, ExchangeIdIsMissing, ExchangeIdIsInvalid, AccountIdIsMissing, ExchangeIdIsWrong, DelCombActionNoRec, DelCombActionTooFast, CombActionShortMoney, QkBusy, CfmmcNoConnection, CloseOptionNoMoney, CancelUnknownOrderUnsupported, OverInfoCntLimit, OverInvstParkedOrderLimit, OverBrokerParkedOrderLimit, ParkedOrderWrongType, SendInstitutionCodeError, NoGetPlatformSn, IllegalTransferBank, AlreadyOpenAccount, NotOpenAccount, Processing, Overtime, RecordNotFound, NoFoundReversalOriginalTransaction, ConnectHostFailed, SendFailed, LateResponse, ReversalBankidNotMatch, ReversalBankaccountNotMatch, ReversalBrokeridNotMatch, ReversalAccountidNotMatch, ReversalAmountNotMatch, DbOperationFailed, SendAspFailure, NotSignin, AlreadySignin, AmountOrTimesOver, NotInTransferTime, BankServerError, BankSerialIsRepealed, BankSerialNotExist, NotOrganMap, ExistTransfer, BankForbidReversal, DupBankSerial, FbtSystemBusy, MackeySyncing, AccountidAlreadyRegister, BankaccountAlreadyRegister, DupBankSerialRedoOk, CurrencyidNotSupported, InvalidMac, NotSupportSecagentByBank, PinkeySyncing, SecagentQueryByCcb, BankaccountNotEmpty, InvalidReserveOpenAccount, OpenAccountNotDefaultAccount, BankSystemInternalError, OfferLocaltimeOffsetIsTooLarge, FutureserialHasBeenProcessed, NoValidBankofferAvailable, PasswordMismatch, DuplationBankSerial, DuplationOfferSerial, SerialNotExsit, SerialIsRepealed, SerialMismatch, IdentifiedcardnoMismatch, AccountNotFund, AccountNotActive, NotAllowRepealBymanual, AmountOutoftheway, ExchangerateNotFound, ReserveOpenAccountNotFund, DuplicateReserveOpenAccountNotFund, PwPassword, AlAmountLimitation, AcAuthorityControl, DcDataContext, CeContentError, DoDuplicateOperation, TmTime, RcRiskControl, BlBusinessLogic, NaNa, HwHardware, IoIo, DbDatabase, NcNetworkCommunication, SsSecurityService, CmComponents, FcFlowControl, TlTechnicalLogic, AtAbsoluteTechnique, FbeNoGetPlatformSn, FbeIllegalTransferBank, FbeProcessing, FbeOvertime, FbeRecordNotFound, FbeConnectHostFailed, FbeSendFailed, FbeLateResponse, FbeDbOperationFailed, FbeNotSignin, FbeAlreadySignin, FbeAmountOrTimesOver, FbeNotInTransferTime, FbeBankServerError, FbeNotOrganMap, FbeSystemBusy, FbeCurrencyidNotSupported, FbeWrongBankAccount, FbeBankAccountNoFunds, FbeDupCertNo, ApiUnsupportedVersion, ApiInvalidKey, OptionSelfCloseNotOption, OptionSelfCloseDuplicateRef, OptionSelfCloseBadField, OptionSelfCloseRecNotFound, OptionSelfCloseStatusErr, OptionSelfCloseDoubleSetErr, QuoteWrongHedgeType, ApiFrontShakeHandErr, DuplicateSubmit, AuthipCheckErr, AuthuserCheckErr, QuoteWrongRepalaceSysid, AuthIpForbidden, MortgageNotBalance, ScapiSslConnectErr, ScapiWrongUseridorname, ScapiCertVerifyFailed, ScapiCertProcessTimeout, ScapiLoginError, RcamsCombproductinfoNotFound, RcamsShortoptadjustparamNotFound, WaitingOfferRsp, Unknown(i32),
}
Expand description

CTP错误代码和消息,从error.xml转换而来

Variants§

§

None

CTP:正确 (0)

§

InvalidDataSyncStatus

CTP:不在已同步状态 (1)

§

InconsistentInformation

CTP:会话信息不一致 (2)

§

InvalidLogin

CTP:不合法的登录 (3)

§

UserNotActive

CTP:用户不活跃 (4)

§

DuplicateLogin

CTP:重复的登录 (5)

§

NotLoginYet

CTP:还没有登录 (6)

§

NotInited

CTP:还没有初始化 (7)

§

FrontNotActive

CTP:前置不活跃 (8)

§

NoPrivilege

CTP:无此权限 (9)

§

ChangeOtherPassword

CTP:修改别人的口令 (10)

§

UserNotFound

CTP:找不到该用户 (11)

§

BrokerNotFound

CTP:找不到该经纪公司 (12)

§

InvestorNotFound

CTP:找不到投资者 (13)

§

OldPasswordMismatch

CTP:原口令不匹配 (14)

§

BadField

CTP:报单字段有误 (15)

§

InstrumentNotFound

CTP:找不到合约 (16)

§

InstrumentNotTrading

CTP:合约不能交易 (17)

§

NotExchangeParticipant

CTP:经纪公司不是交易所的会员 (18)

§

InvestorNotActive

CTP:投资者不活跃 (19)

§

NotExchangeClient

CTP:投资者未在交易所开户 (20)

§

NoValidTraderAvailable

CTP:该交易席位未连接到交易所 (21)

§

DuplicateOrderRef

CTP:报单错误:不允许重复报单 (22)

§

BadOrderActionField

CTP:错误的报单操作字段 (23)

§

DuplicateOrderActionRef

CTP:撤单已报送,不允许重复撤单 (24)

§

OrderNotFound

CTP:撤单找不到相应报单 (25)

§

InsuitableOrderStatus

CTP:报单已全成交或已撤销,不能再撤 (26)

§

UnsupportedFunction

CTP:不支持的功能 (27)

§

NoTradingRight

CTP:没有报单交易权限 (28)

§

CloseOnly

CTP:只能平仓 (29)

§

OverClosePosition

CTP:平仓量超过持仓量 (30)

§

InsufficientMoney

CTP:资金不足 (31)

§

DuplicatePk

CTP:主键重复 (32)

§

CannotFindPk

CTP:找不到主键 (33)

§

CanNotInactiveBroker

CTP:设置经纪公司不活跃状态失败 (34)

§

BrokerSynchronizing

CTP:经纪公司正在同步 (35)

§

BrokerSynchronized

CTP:经纪公司已同步 (36)

§

ShortSell

CTP:现货交易不能卖空 (37)

§

InvalidSettlementRef

CTP:不合法的结算引用 (38)

§

CffexNetworkError

CTP:交易所网络连接失败 (39)

§

CffexOverRequest

CTP:交易所未处理请求超过许可数 (40)

§

CffexOverRequestPerSecond

CTP:交易所每秒发送请求数超过许可数 (41)

§

SettlementInfoNotConfirmed

CTP:结算结果未确认 (42)

§

DepositNotFound

CTP:没有对应的入金记录 (43)

§

ExchangTrading

CTP:交易所已经进入连续交易状态 (44)

§

ParkedorderNotFound

CTP:找不到预埋(撤单)单 (45)

§

ParkedorderHassended

CTP:预埋(撤单)单已经发送 (46)

§

ParkedorderHasdelete

CTP:预埋(撤单)单已经删除 (47)

§

InvalidInvestoridorpassword

CTP:无效的投资者或者密码 (48)

§

InvalidLoginIpaddress

CTP:不合法的登录IP地址 (49)

§

OverClosetodayPosition

CTP:平今仓位不足 (50)

§

OverCloseyesterdayPosition

CTP:平昨仓位不足 (51)

§

BrokerNotEnoughCondorder

CTP:经纪公司没有足够可用的条件单数量 (52)

§

InvestorNotEnoughCondorder

CTP:投资者没有足够可用的条件单数量 (53)

§

BrokerNotSupportCondorder

CTP:经纪公司不支持条件单 (54)

§

ResendOrderBrokerinvestorNotmatch

CTP:重发未知单经纪公司/投资者不匹配 (55)

§

SycOtpFailed

CTP:同步动态令牌失败 (56)

§

OtpMismatch

CTP:动态令牌校验错误 (57)

§

OtpparamNotFound

CTP:找不到动态令牌配置信息 (58)

§

UnsupportedOtptype

CTP:不支持的动态令牌类型 (59)

§

SingleusersessionExceedLimit

CTP:用户在线会话超出上限 (60)

§

ExchangeUnsupportedArbitrage

CTP:该交易所不支持套利/做市商类型报单 (61)

§

NoConditionalOrderRight

CTP:没有条件单交易权限 (62)

§

AuthFailed

CTP:客户端认证失败 (63)

§

NotAuthent

CTP:客户端未认证 (64)

§

SwaporderUnsupported

CTP:该合约不支持互换类型报单 (65)

§

OptionsOnlySupportSpec

CTP:该期权合约只支持投机类型报单 (66)

§

DuplicateExecorderRef

CTP:执行宣告错误,不允许重复执行 (67)

§

ResendExecorderBrokerinvestorNotmatch

CTP:重发未知执行宣告经纪公司/投资者不匹配 (68)

§

ExecorderNotoptions

CTP:只有期权合约可执行 (69)

§

OptionsNotSupportExec

CTP:该期权合约不支持执行 (70)

§

BadExecorderActionField

CTP:执行宣告字段有误 (71)

§

DuplicateExecorderActionRef

CTP:执行宣告撤单已报送,不允许重复撤单 (72)

§

ExecorderNotFound

CTP:执行宣告撤单找不到相应执行宣告 (73)

§

OverExecutePosition

CTP:执行仓位不足 (74)

§

LoginForbidden

CTP:连续登录失败次数超限,登录被禁止 (75)

§

InvalidTransferAgent

CTP:非法银期代理关系 (76)

§

NoFoundFunction

CTP:无此功能 (77)

§

SendExchangeorderFailed

CTP:发送报单失败 (78)

§

SendExchangeorderactionFailed

CTP:发送报单操作失败 (79)

§

PricetypeNotsupportByexchange

CTP:交易所不支持的价格类型 (80)

§

BadExecuteType

CTP:错误的执行类型 (81)

§

BadOptionInstr

CTP:无效的组合合约 (82)

§

InstrNotsupportForquote

CTP:该合约不支持询价 (83)

§

ResendQuoteBrokerinvestorNotmatch

CTP:重发未知报价经纪公司/投资者不匹配 (84)

§

InstrNotsupportQuote

CTP:该合约不支持报价 (85)

§

QuoteNotFound

CTP:报价撤单找不到相应报价 (86)

§

OptionsNotSupportAbandon

CTP:该期权合约不支持放弃执行 (87)

§

ComboptionsSupportIocOnly

CTP:该组合期权合约只支持IOC (88)

§

OpenFileFailed

CTP:打开文件失败 (89)

§

NeedRetry

CTP:查询未就绪,请稍后重试 (90)

§

ExchangeRtnerror

CTP:交易所返回的错误 (91)

§

QuoteDerivedorderActionerror

CTP:报价衍生单要等待交易所返回才能撤单 (92)

§

InstrumentmapNotFound

CTP:找不到组合合约映射 (93)

§

CancellationOfOtcDerivedOrderNotAllowed

CTP:不允许撤销OTC衍生报单 (94)

§

BadPriceValue

CTP:不支持的价格 (95)

§

SpbmfutparamNotFound

CTP:找不到SPBM期货合约参数 (96)

§

SpbmoptparamNotFound

CTP:找不到SPBM期权合约参数 (97)

§

SpbmintraparamNotFound

CTP:找不到SPBM品种内对锁仓折扣参数 (98)

§

RuleinstrparamNotFound

CTP:找不到RULE合约参数 (99)

§

RuleintraparamNotFound

CTP:找不到RULE品种内对锁仓折扣参数 (100)

§

NoTradingRightInSepcDr

CTP:用户在本系统没有报单权限 (101)

§

NoDrNo

CTP:系统缺少灾备标示号 (102)

§

BatchactionNosupport

CTP:该交易所不支持批量撤单 (103)

§

PosiLimit

CTP:投资者限仓 (106)

§

OutOfTimeinterval

CTP:当前时间禁止询价 (113)

§

OutOfPriceinterval

CTP:当前价差禁止询价 (114)

§

OrderFreqLimit

CTP:下单频率限制 (116)

§

WeakPassword

CTP:您当前密码为弱密码,请修改成强密码后重新登录 (131)

§

ExecForbiddenTime

CTP:当前时间禁止行权 (139)

§

FirstLogin

CTP:首次登录必须修改密码,请修改密码后重新登录 (140)

§

PwdOutOfDate

CTP:您当前密码已过期,请修改后登录 (141)

§

PwdMustDiff

CTP:修改密码失败。新密码不允许与旧密码相同 (142)

§

IpForbidden

CTP:您登录失败次数过多,IP被禁止登入CTP (143)

§

IpBlack

CTP:您当前IP在黑名单中,被禁止登录和认证 (144)

§

NoAuthRightInSepcDr

CTP:终端在本系统没有认证权限 (145)

§

InvestorIdIsMissing

CTP:缺少InvestorID字段,请填入InvestorID (146)

§

ExchangeIdIsMissing

CTP:缺少ExchangeID字段,请填入ExchangeID (147)

§

ExchangeIdIsInvalid

CTP:无效的ExchangeID字段,请填入正确的ExchangeID (148)

§

AccountIdIsMissing

CTP:缺少AccountID字段,请填入AccountID (149)

§

ExchangeIdIsWrong

CTP:交易所代码错误 (150)

§

DelCombActionNoRec

CTP:删除拆分组合指令:没有找到该记录 (151)

§

DelCombActionTooFast

CTP:删除拆分组合指令:原指令需要等待30s 才能删除 (152)

§

CombActionShortMoney

CTP:拆分组合钱不足 (153)

§

QkBusy

CTP:查询核心忙 请稍后重试 (154)

§

CfmmcNoConnection

CTP:未连接监控中心 (155)

§

CloseOptionNoMoney

CTP:平期权多头后资金为负(收益小于平仓手续费),只可由风控人员强平 (156)

§

CancelUnknownOrderUnsupported

CTP:该交易所不支持撤销未知单 (157)

§

OverInfoCntLimit

CTP:超过信息量限制 (158)

§

OverInvstParkedOrderLimit

CTP:超过个人预埋单最大量限制 (159)

§

OverBrokerParkedOrderLimit

CTP:超过经纪公司预埋单最大量限制 (160)

§

ParkedOrderWrongType

CTP:预埋单:不支持的触发类型 (161)

§

SendInstitutionCodeError

CTP:银期转账:发送机构代码错误 (1000)

§

NoGetPlatformSn

CTP:银期转账:取平台流水号错误 (1001)

§

IllegalTransferBank

CTP:银期转账:不合法的转账银行 (1002)

§

AlreadyOpenAccount

CTP:银期转账:已经开户 (1003)

§

NotOpenAccount

CTP:银期转账:未开户 (1004)

§

Processing

CTP:银期转账:处理中 (1005)

§

Overtime

CTP:银期转账:交易超时 (1006)

§

RecordNotFound

CTP:银期转账:找不到记录 (1007)

§

NoFoundReversalOriginalTransaction

CTP:银期转账:找不到被冲正的原始交易 (1008)

§

ConnectHostFailed

CTP:银期转账:连接主机失败 (1009)

§

SendFailed

CTP:银期转账:发送失败 (1010)

§

LateResponse

CTP:银期转账:迟到应答 (1011)

§

ReversalBankidNotMatch

CTP:银期转账:冲正交易银行代码错误 (1012)

§

ReversalBankaccountNotMatch

CTP:银期转账:冲正交易银行账户错误 (1013)

§

ReversalBrokeridNotMatch

CTP:银期转账:冲正交易经纪公司代码错误 (1014)

§

ReversalAccountidNotMatch

CTP:银期转账:冲正交易资金账户错误 (1015)

§

ReversalAmountNotMatch

CTP:银期转账:冲正交易交易金额错误 (1016)

§

DbOperationFailed

CTP:银期转账:数据库操作错误 (1017)

§

SendAspFailure

CTP:银期转账:发送到交易系统失败 (1018)

§

NotSignin

CTP:银期转账:没有签到 (1019)

§

AlreadySignin

CTP:银期转账:已经签到 (1020)

§

AmountOrTimesOver

CTP:银期转账:金额或次数超限 (1021)

§

NotInTransferTime

CTP:银期转账:这一时间段不能转账 (1022)

§

BankServerError

银行主机错 (1023)

§

BankSerialIsRepealed

CTP:银期转账:银行已经冲正 (1024)

§

BankSerialNotExist

CTP:银期转账:银行流水不存在 (1025)

§

NotOrganMap

CTP:银期转账:机构没有签约 (1026)

§

ExistTransfer

CTP:银期转账:存在转账,不能销户 (1027)

§

BankForbidReversal

CTP:银期转账:银行不支持冲正 (1028)

§

DupBankSerial

CTP:银期转账:重复的银行流水 (1029)

§

FbtSystemBusy

CTP:银期转账:转账系统忙,稍后再试 (1030)

§

MackeySyncing

CTP:银期转账:MAC密钥正在同步 (1031)

§

AccountidAlreadyRegister

CTP:银期转账:资金账户已经登记 (1032)

§

BankaccountAlreadyRegister

CTP:银期转账:银行账户已经登记 (1033)

§

DupBankSerialRedoOk

CTP:银期转账:重复的银行流水,重发成功 (1034)

§

CurrencyidNotSupported

CTP:银期转账:该币种代码不支持 (1035)

§

InvalidMac

CTP:银期转账:MAC值验证失败 (1036)

§

NotSupportSecagentByBank

CTP:银期转账:不支持银行端发起的二级代理商转账和查询 (1037)

§

PinkeySyncing

CTP:银期转账:PIN密钥正在同步 (1038)

§

SecagentQueryByCcb

CTP:银期转账:建行发起的二级代理商查询 (1039)

§

BankaccountNotEmpty

CTP:银期转账:银行账户不能为空 (1040)

§

InvalidReserveOpenAccount

CTP:银期转账:资金账户存在,预约开户失败 (1041)

§

OpenAccountNotDefaultAccount

CTP:银期转账:开户请求的银行卡号和预留的账号不同 (1042)

§

BankSystemInternalError

银行系统内部错误 (1043)

§

OfferLocaltimeOffsetIsTooLarge

银期转账:银期报盘机器时间偏移太大 (1044)

§

FutureserialHasBeenProcessed

银期转账:该期货流水号已经处理过 (1045)

§

NoValidBankofferAvailable

CTP:该报盘未连接到银行 (2000)

§

PasswordMismatch

CTP:资金密码错误 (2001)

§

DuplationBankSerial

CTP:银行流水号重复 (2004)

§

DuplationOfferSerial

CTP:报盘流水号重复 (2005)

§

SerialNotExsit

CTP:被冲正流水不存在(冲正交易) (2006)

§

SerialIsRepealed

CTP:原流水已冲正(冲正交易) (2007)

§

SerialMismatch

CTP:与原流水信息不符(冲正交易) (2008)

§

IdentifiedcardnoMismatch

CTP:证件号码或类型错误 (2009)

§

AccountNotFund

CTP:资金账户不存在 (2011)

§

AccountNotActive

CTP:资金账户已经销户 (2012)

§

NotAllowRepealBymanual

CTP:该交易不能执行手工冲正 (2013)

§

AmountOutoftheway

CTP:转帐金额错误 (2014)

§

ExchangerateNotFound

CTP:找不到汇率 (2015)

§

ReserveOpenAccountNotFund

CTP:找不到预约开户请求 (2016)

§

DuplicateReserveOpenAccountNotFund

CTP:重复的预约开户请求 (2017)

§

PwPassword

建行银期:密码与认证(业务错误) (2050)

§

AlAmountLimitation

建行银期:数量与限额(业务错误) (2051)

§

AcAuthorityControl

建行银期:权限控制(业务错误) (2052)

§

DcDataContext

建行银期:信息滥缺(业务错误)或者数据内容相关(技术错误) (2053)

§

CeContentError

建行银期:内容非法(业务错误) (2054)

§

DoDuplicateOperation

建行银期:重复交易(业务错误) (2055)

§

TmTime

建行银期: 时间与期限(业务错误) (2056)

§

RcRiskControl

建行银期:风险控制(业务错误) (2057)

§

BlBusinessLogic

建行银期:业务逻辑(业务错误) (2058)

§

NaNa

建行银期: 不确定交易结果(技术错误) (2059)

§

HwHardware

建行银期: 硬件错误(技术错误) (2060)

§

IoIo

建行银期: 读写相关(技术错误) (2062)

§

DbDatabase

建行银期: 数据库相关(技术错误) (2063)

§

NcNetworkCommunication

建行银期:网络通讯(技术错误) (2064)

§

SsSecurityService

建行银期:安全服务(技术错误) (2065)

§

CmComponents

建行银期: 组件模块(技术错误) (2066)

§

FcFlowControl

建行银期:流量控制(技术错误) (2067)

§

TlTechnicalLogic

建行银期:技术逻辑(技术错误) (2069)

§

AtAbsoluteTechnique

建行银期:纯技术性错误(技术错误) (2070)

§

FbeNoGetPlatformSn

CTP:银期换汇:取平台流水号错误 (3001)

§

FbeIllegalTransferBank

CTP:银期换汇:不合法的转账银行 (3002)

§

FbeProcessing

CTP:银期换汇:处理中 (3005)

§

FbeOvertime

CTP:银期换汇:交易超时 (3006)

§

FbeRecordNotFound

CTP:银期换汇:找不到记录 (3007)

§

FbeConnectHostFailed

CTP:银期换汇:连接主机失败 (3009)

§

FbeSendFailed

CTP:银期换汇:发送失败 (3010)

§

FbeLateResponse

CTP:银期换汇:迟到应答 (3011)

§

FbeDbOperationFailed

CTP:银期换汇:数据库操作错误 (3017)

§

FbeNotSignin

CTP:银期换汇:没有签到 (3019)

§

FbeAlreadySignin

CTP:银期换汇:已经签到 (3020)

§

FbeAmountOrTimesOver

CTP:银期换汇:金额或次数超限 (3021)

§

FbeNotInTransferTime

CTP:银期换汇:这一时间段不能换汇 (3022)

§

FbeBankServerError

CTP:银期换汇:银行主机错 (3023)

§

FbeNotOrganMap

CTP:银期换汇:机构没有签约 (3026)

§

FbeSystemBusy

CTP:银期换汇:换汇系统忙,稍后再试 (3030)

§

FbeCurrencyidNotSupported

CTP:银期换汇:该币种代码不支持 (3035)

§

FbeWrongBankAccount

CTP:银期换汇:银行帐号不正确 (3036)

§

FbeBankAccountNoFunds

CTP:银期换汇:银行帐户余额不足 (3037)

§

FbeDupCertNo

CTP:银期换汇:凭证号重复 (3038)

§

ApiUnsupportedVersion

CTP: 不支持该API版本 (3039)

§

ApiInvalidKey

CTP: 无效的API KEY (3040)

§

OptionSelfCloseNotOption

CTP:期权对冲,履约对冲:非期权合约 (3041)

§

OptionSelfCloseDuplicateRef

CTP:期权对冲,履约对冲:请求引用不合法 (3042)

§

OptionSelfCloseBadField

CTP:期权对冲,履约对冲:非法字段 (3043)

§

OptionSelfCloseRecNotFound

CTP:期权对冲,履约对冲:撤销未找到记录 (3044)

§

OptionSelfCloseStatusErr

CTP:期权对冲,履约对冲:对冲状态不对,不能撤销 (3045)

§

OptionSelfCloseDoubleSetErr

CTP:期权对冲,履约对冲:不能重复设置,只能先撤销再设置 (3046)

§

QuoteWrongHedgeType

CTP:报价不支持改投机套保类型 (3047)

§

ApiFrontShakeHandErr

CTP:API Front shake hand err (4040)

§

DuplicateSubmit

CTP:DUPLICATE_SUBMIT (4041)

§

AuthipCheckErr

CTP:IP授权验证失败 (4042)

§

AuthuserCheckErr

CTP:用户与客户端授权验证失败 (4043)

§

QuoteWrongRepalaceSysid

CTP:报价指定的顶单编号不合法(中金所) (4050)

§

AuthIpForbidden

CTP:您认证失败次数过多,IP进入认证禁止列表 (4060)

§

MortgageNotBalance

CTP:未满足质押配比要求 (4061)

§

ScapiSslConnectErr

CTP:SSL Connect Error. (4100)

§

ScapiWrongUseridorname

CTP:Wrong User ID or Name. (4101)

§

ScapiCertVerifyFailed

CTP:Cert Verify Failed. (4102)

§

ScapiCertProcessTimeout

CTP:Cert Process Timeout. (4103)

§

ScapiLoginError

CTP:Login Error. (4104)

§

RcamsCombproductinfoNotFound

CTP:找不到RCAMS产品组合信息 (5000)

§

RcamsShortoptadjustparamNotFound

CTP:找不到RCAMS空头期权风险调整参数 (5001)

§

WaitingOfferRsp

CTP:等待银期报盘处理结果 (999999)

§

Unknown(i32)

Implementations§

Source§

impl CtpError

Source

pub fn from_code(code: i32) -> Self

从错误码转换为CtpError枚举

Source

pub fn code(&self) -> i32

获取错误码

Source

pub fn message(&self) -> &'static str

获取错误消息

Trait Implementations§

Source§

impl Clone for CtpError

Source§

fn clone(&self) -> CtpError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CtpError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for CtpError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for CtpError

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<i32> for CtpError

Source§

fn from(code: i32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for CtpError

Source§

fn eq(&self, other: &CtpError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for CtpError

Source§

impl StructuralPartialEq for CtpError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> WrapInto<U> for T
where U: WrapFrom<T>,

Source§

fn wrap_into(self) -> U