gitee.com/haifengat/gotap_dipper@v0.0.4-0.20231212021028-041a6fa876e5/quote_v9.3.1.4_20190925/TapAPIError.h (about) 1 #ifndef TAP_API_ERROR_H 2 #define TAP_API_ERROR_H 3 4 //============================================================================= 5 /** 6 * \addtogroup G_ERR_INNER_API TapAPI内部返回的错误码定义。 7 * @{ 8 */ 9 //============================================================================= 10 //! 成功 11 const int TAPIERROR_SUCCEED = 0; 12 //! 连接服务失败 13 const int TAPIERROR_ConnectFail = -1; 14 //! 链路认证失败 15 const int TAPIERROR_LinkAuthFail = -2; 16 //! 主机地址不可用 17 const int TAPIERROR_HostUnavailable = -3; 18 //! 发送数据错误 19 const int TAPIERROR_SendDataError = -4; 20 //! 测试编号不合法 21 const int TAPIERROR_TestIDError = -5; 22 //! 没准备好测试网络 23 const int TAPIERROR_NotReadyTestNetwork = -6; 24 //! 当前网络测试还没结束 25 const int TAPIERROR_CurTestNotOver = -7; 26 //! 没用可用的接入前置 27 const int TAPIERROR_NOFrontAvailable = -8; 28 //! 数据路径不可用 29 const int TAPIERROR_DataPathAvaiable = -9; 30 //! 重复登录 31 const int TAPIERROR_RepeatLogin = -10; 32 //! 内部错误 33 const int TAPIERROR_InnerError = -11; 34 //! 上一次请求还没有结束 35 const int TAPIERROR_LastReqNotFinish = -12; 36 //! 输入参数非法 37 const int TAPIERROR_InputValueError = -13; 38 //! 授权码不合法 39 const int TAPIERROR_AuthCode_Invalid = -14; 40 //! 授权码超期 41 const int TAPIERROR_AuthCode_Expired = -15; 42 //! 授权码类型不匹配 43 const int TAPIERROR_AuthCode_TypeNotMatch = -16; 44 //! API还没有准备好 45 const int TAPIERROR_API_NotReady = -17; 46 //! UDP端口监听失败 47 const int TAPIERROR_UDP_LISTEN_FAILED = -18; 48 //! UDP正在监听 49 const int TAPIERROR_UDP_LISTENING = -19; 50 //! 接口未实现 51 const int TAPIERROR_NotImplemented = -20; 52 //! 每次登陆只允许调用一次 53 const int TAPIERROR_CallOneTimeOnly = -21; 54 //! 操作频率太高 55 const int TAPIERROR_Frequently = -22; 56 //! 信息采集错误 57 const int TAPIERROR_DataCollect = -23; 58 //! 信息采集库加载失败 59 const int TAPIERROR_DataLoad = -24; 60 //! 非中继模式禁止调用该接口 61 const int TAPIERROR_NoRelay = -25; 62 /** @}*/ 63 64 65 //============================================================================= 66 /** 67 * \addtogroup G_ERR_INPUT_CHECK 输入参数检查错误 68 * @{ 69 */ 70 //============================================================================= 71 //! 输入数据为NULL 72 const int TAPIERROR_INPUTERROR_NULL = -10000; 73 //! 输入错误的:TAPIYNFLAG 74 const int TAPIERROR_INPUTERROR_TAPIYNFLAG = -10001; 75 //! 输入错误的:TAPILOGLEVEL 76 const int TAPIERROR_INPUTERROR_TAPILOGLEVEL = -10002; 77 //! 输入错误的:TAPICommodityType 78 const int TAPIERROR_INPUTERROR_TAPICommodityType = -10003; 79 //! 输入错误的:TAPICallOrPutFlagType 80 const int TAPIERROR_INPUTERROR_TAPICallOrPutFlagType = -10004; 81 //! 输入错误的:TAPIAccountType 82 const int TAPIERROR_INPUTERROR_TAPIAccountType = -12001; 83 //! 输入错误的:TAPIAccountState 84 const int TAPIERROR_INPUTERROR_TAPIAccountState = -12003; 85 //! 输入错误的:TAPIAccountFamilyType 86 const int TAPIERROR_INPUTERROR_TAPIAccountFamilyType = -12004; 87 //! 输入错误的:TAPIOrderTypeType 88 const int TAPIERROR_INPUTERROR_TAPIOrderTypeType = -12005; 89 //! 输入错误的:TAPIOrderSourceType 90 const int TAPIERROR_INPUTERROR_TAPIOrderSourceType = -12006; 91 //! 输入错误的:TAPITimeInForceType 92 const int TAPIERROR_INPUTERROR_TAPITimeInForceType = -12007; 93 //! 输入错误的:TAPISideType 94 const int TAPIERROR_INPUTERROR_TAPISideType = -12008; 95 //! 输入错误的:TAPIPositionEffectType 96 const int TAPIERROR_INPUTERROR_TAPIPositionEffectType = -12009; 97 //! 输入错误的:TAPIHedgeFlagType 98 const int TAPIERROR_INPUTERROR_TAPIHedgeFlagType = -12010; 99 //! 输入错误的:TAPIOrderStateType 100 const int TAPIERROR_INPUTERROR_TAPIOrderStateType = -12011; 101 //! 输入错误的:TAPICalculateModeType 102 const int TAPIERROR_INPUTERROR_TAPICalculateModeType = -12012; 103 //! 输入错误的:TAPIMatchSourceType 104 const int TAPIERROR_INPUTERROR_TAPIMatchSourceType = -12013; 105 //! 输入错误的:TAPIOpenCloseModeType 106 const int TAPIERROR_INPUTERROR_TAPIOpenCloseModeType = -12014; 107 //! 输入错误的:TAPIFutureAlgType 108 const int TAPIERROR_INPUTERROR_TAPIFutureAlgType = -12015; 109 //! 输入错误的:TAPIOptionAlgType 110 const int TAPIERROR_INPUTERROR_TAPIOptionAlgType = -12016; 111 //! 输入错误的:TAPIBankAccountLWFlagType 112 const int TAPIERROR_INPUTERROR_TAPIBankAccountLWFlagType = -12017; 113 //! 输入错误的:TAPIMarginCalculateModeType 114 const int TAPIERROR_INPUTERROR_TAPIMarginCalculateModeType = -12021; 115 //! 输入错误的:TAPIOptionMarginCalculateModeType 116 const int TAPIERROR_INPUTERROR_TAPIOptionMarginCalculateModeType = -12022; 117 //! 输入错误的:TAPICmbDirectType 118 const int TAPIERROR_INPUTERROR_TAPICmbDirectType = -12023; 119 //! 输入错误的:TAPIDeliveryModeType 120 const int TAPIERROR_INPUTERROR_TAPIDeliveryModeType = -12024; 121 //! 输入错误的:TAPIContractTypeType 122 const int TAPIERROR_INPUTERROR_TAPIContractTypeType = -12025; 123 //! 输入错误的:TAPITacticsTypeType 124 const int TAPIERROR_INPUTERROR_TAPITacticsTypeType = -12035; 125 //! 输入错误的:TAPIORDERACT 126 const int TAPIERROR_INPUTERROR_TAPIORDERACT = -12036; 127 //! 输入错误的:TAPITriggerConditionType 128 const int TAPIERROR_INPUTERROR_TAPITriggerConditionType = -12041; 129 //! 输入错误的:TAPITriggerPriceTypeType 130 const int TAPIERROR_INPUTERROR_TAPITriggerPriceTypeType = -12042; 131 //! 输入错误的:TAPITradingStateType 132 const int TAPIERROR_INPUTERROR_TAPITradingStateType = -12043; 133 //! 输入错误的:TAPIMarketLevelType 134 const int TAPIERROR_INPUTERROR_TAPIMarketLevelType = -12044; 135 //! 输入错误的:TAPIOrderQryTypeType 136 const int TAPIERROR_INPUTERROR_TAPIOrderQryTypeType = -12045; 137 138 /** @}*/ 139 140 //============================================================================= 141 /** 142 * \addtogroup G_ERR_DISCONNECT_REASON 网络断开错误代码定义 143 * @{ 144 */ 145 //============================================================================= 146 //! 主动断开 147 const int TAPIERROR_DISCONNECT_CLOSE_INIT = 1; 148 //! 被动断开 149 const int TAPIERROR_DISCONNECT_CLOSE_PASS = 2; 150 //! 读错误 151 const int TAPIERROR_DISCONNECT_READ_ERROR = 3; 152 //! 写错误 153 const int TAPIERROR_DISCONNECT_WRITE_ERROR = 4; 154 //! 缓冲区满 155 const int TAPIERROR_DISCONNECT_BUF_FULL = 5; 156 //! 异步操作错误 157 const int TAPIERROR_DISCONNECT_IOCP_ERROR = 6; 158 //! 解析数据错误 159 const int TAPIERROR_DISCONNECT_PARSE_ERROR = 7; 160 //! 连接超时 161 const int TAPIERROR_DISCONNECT_CONNECT_TIMEOUT = 8; 162 //! 初始化失败 163 const int TAPIERROR_DISCONNECT_INIT_ERROR = 9; 164 //! 已经连接 165 const int TAPIERROR_DISCONNECT_HAS_CONNECTED = 10; 166 //! 工作线程已结束 167 const int TAPIERROR_DISCONNECT_HAS_EXIT = 11; 168 //! 操作正在进行,请稍后重试 169 const int TAPIERROR_DISCONNECT_TRY_LATER = 12; 170 //! 心跳检测失败 171 const int TAPIERROR_DISCONNECT_HEARTBEAT_FAILED = 13; 172 173 /** @}*/ 174 175 //============================================================================= 176 /** 177 * \addtogroup G_ERR_LOGIN 登陆过程返回的错误代码定义 178 * @{ 179 */ 180 //============================================================================= 181 //! 登录过程执行错误 182 const int TAPIERROR_LOGIN = 10001; 183 //! 登录用户不存在 184 const int TAPIERROR_LOGIN_USER = 10002; 185 //! 需要进行动态认证 186 const int TAPIERROR_LOGIN_DDA = 10003; 187 //! 登录用户未授权 188 const int TAPIERROR_LOGIN_LICENSE = 10004; 189 //! 登录模块不正确 190 const int TAPIERROR_LOGIN_MODULE = 10005; 191 //! 需要强制修改密码 192 const int TAPIERROR_LOGIN_FORCE = 10006; 193 //! 登录状态禁止登陆 194 const int TAPIERROR_LOGIN_STATE = 10007; 195 //! 登录密码不正确 196 const int TAPIERROR_LOGIN_PASS = 10008; 197 //! 没有该模块登录权限 198 const int TAPIERROR_LOGIN_RIGHT = 10009; 199 //! 登录数量超限 200 const int TAPIERROR_LOGIN_COUNT = 10010; 201 //! 登录用户不在服务器标识下可登录用户列表中 202 const int TAPIERROR_LOGIN_NOTIN_SERVERFLAGUSRES = 10011; 203 //! 登陆用户不在有效期 204 const int TAPIERROR_LOGIN_USER_EXPIRED = 10012; 205 //! 登陆用户无下属客户 206 const int TAPIERROR_LOGIN_NO_ACCOUNT = 10013; 207 //! 登录用户是子帐号且授权中未包含机构通标记 208 const int TAPIERROR_LOGIN_NO_JGT = 10014; 209 //! 登录用户密码错误次数超限,禁止登陆 210 const int TAPIERROR_LOGIN_ERROR_TIMES = 10015; 211 //! 登录用户授权类型错误 212 const int TAPIERROR_LOGIN_ERROR_AUTHTYPE = 10016; 213 //! 登录用户授权到期或到期日错误 214 const int TAPIERROR_LOGIN_ERROR_AUTHEXPIRED = 10017; 215 //! 登录用户密码超过有效天数 216 const int TAPIERROR_LOGIN_ERROR_PASSWDEXPIRED = 10018; 217 //! 登录用户未授权的登录IP和MAC 218 const int TAPIERROR_LOGIN_ERROR_USERTRUST = 10019; 219 //! 8.2客户端禁止登录请升级8.3 220 const int TAPIERROR_LOGIN_ERROR_CLIENTVERSION = 10020; 221 //! 用户授权信息错误 222 const int TAPIERROR_LOGIN_ERROR_AUTHCODEINFO = 10021; 223 224 /** @}*/ 225 226 //============================================================================= 227 /** 228 * \addtogroup G_ERR_MANAGE 管理业务处理返回错误码 229 * @{ 230 */ 231 //============================================================================== 232 //! 登录用户信息查询失败 233 const int TAPIERROR_USERINFO_QRY = 10101; 234 //! 登录用户下属所有权限查询失败 235 const int TAPIERROR_USERALLRIGHT_QRY = 11001; 236 //! 登录用户下属所有资金账号查询失败 237 const int TAPIERROR_USERALLACCOUNT_QRY = 11501; 238 //! 登录用户密码修改失败 239 const int TAPIERROR_USERPASSWORD_MOD = 11701; 240 //! 登录用户密码修改失败——原始密码错误 241 const int TAPIERROR_USERPASSWORD_MOD_SOURCE = 11702; 242 //! 登录用户密码修改失败——不能与前n次密码相同 243 const int TAPIERROR_USERPASSWORD_MOD_SAME = 11703; 244 //! 新密码不符合密码复杂度要求 245 const int TAPIERROR_USERPASSWORD_MOD_COMPLEXITY = 11704; 246 //! 资金账号信息查询失败 247 const int TAPIERROR_ACCOUNTINFO_QRY = 20201; 248 //! 客户交易编码查询失败 249 const int TAPIERROR_TRADENO_QRY = 20701; 250 //! 合约信息查询失败 251 const int TAPIERROR_CONTRACTINFO_QRY = 22801; 252 //! 特殊期权标的查询失败 253 const int TAPIERROR_SPECIALOPTIONFUTURE_QRY = 22901; 254 //! 品种委托类型查询失败 255 const int TAPIERROR_COMMODITYORDERTYPE_QRY = 25501; 256 //! 品种委托时间有效性查询失败 257 const int TAPIERROR_ORDERTIMEINFORCE_QRY = 25601; 258 //! 用户下单频率查询失败 259 const int TAPIERROR_USER_ORDER_FREQUENCE_QRY = 28901; 260 //! 提交信息用户授权类型错误 261 const int TAPIERROR_USERSUBMITAUTHTYPE_ERROR = 29591; 262 //! 用户采集终端数据为空 263 const int TAPIERROR_USERSUBMITINFO_EMPTY = 29592; 264 //! 用户密钥版本错误 265 const int TAPIERROR_USERAUTHKEYVERSION_ERROR = 29593; 266 //! 用户采集信息不全,权限不够 267 const int TAPIERROR_USERSUBMITINFO_PARTY = 29594; 268 //! 用户采集信息采用测试密钥加密 269 const int TAPIERROR_USERSUBMITINFO_TESTKEY = 29595; 270 //! 用户采集信息用户不存在 271 const int TAPIERROR_USERSUBMITINFO_USERNO = 29596; 272 273 /** @}*/ 274 275 //============================================================================= 276 /** 277 * \addtogroup G_ERR_TRADE 交易业务处理返回错误码 278 * @{ 279 */ 280 //============================================================================== 281 //! 资金账号不存在 282 const int TAPIERROR_ORDERINSERT_ACCOUNT = 60001; 283 //! 资金账号状态不正确 284 const int TAPIERROR_ORDERINSERT_ACCOUNT_STATE = 60002; 285 //! 资金账号无委托方向交易权限 286 const int TAPIERROR_ORDERINSERT_SIDE_TRADE = 60003; 287 //! 资金账号无期权交易权限 288 const int TAPIERROR_ORDERINSERT_OPTIONS_TRADE = 60004; 289 //! 资金账号无品种交易权限 290 const int TAPIERROR_ORDERINSERT_COMMODITY_TRADE = 60005; 291 //! 资金账号无开仓权限 292 const int TAPIERROR_ORDERINSERT_OPEN_RIGHT = 60006; 293 //! 资金账号风控项检查失败 294 const int TAPIERROR_ORDERINSERT_RISK_CHECK = 60007; 295 //! 下单无效的合约 296 const int TAPIERROR_ORDERINSERT_CONTRACT = 60011; 297 //! 下单合约无交易路由 298 const int TAPIERROR_ORDERINSERT_TRADEROUTE = 60021; 299 //! 持仓量超过最大限制 300 const int TAPIERROR_ORDERINSERT_POSITIONMAX = 60022; 301 //! 禁止交易 302 const int TAPIERROR_ORDER_NOTRADE = 60023; 303 //! 只可平仓 304 const int TAPIERROR_ORDER_CLOSE = 60024; 305 //! 下单资金不足 306 const int TAPIERROR_ORDERINSERT_NOTENOUGHFUND = 60031; 307 //! 不支持的订单类型 308 const int TAPIERROR_ORDERINSERT_ORDERTYPE = 60032; 309 //! 不支持的时间有效类型 310 const int TAPIERROR_ORDERINSERT_TIMEINFORCE = 60033; 311 //! 不支持的策略单类型 312 const int TAPIERROR_ORDERINSERT_NO_TACTICS = 60034; 313 //! 平仓数量超过已有持仓量 314 const int TAPIERROR_ORDERINSERT_POSITION_CANNOT_CLOSE = 60035; 315 //! 下单自动审核失败 316 const int TAPIERROR_ORDERINSERT_AUTOCHECK_FAIL = 60036; 317 //! LME未准备就绪 318 const int TAPIERROR_ORDERINSERT_LME_NOTREADY = 60037; 319 //! 平仓方式错误 320 const int TAPIERROR_ORDERINSERT_CLOSEMODE = 60038; 321 //! 下单对应的父账号资金不足 322 const int TAPIERROR_ORDERINSERT_PARENTNOTENOUGHFUND = 60039; 323 //! 互换单的合约格式错误 324 const int TAPIERROR_SWAP_CONTRACT = 60040; 325 //! 委托价格不合理 326 const int TAPIERROR_ORDERINSERT_PRICE = 60041; 327 //! 开平标记不合理 328 const int TAPIERROR_ORDERINSERT_EFFECT = 60042; 329 //! 关联合约错误 330 const int TAPIERROR_ORDERINSERT_TARGETCONTRACT = 60043; 331 //! 当前客户不能使用此账号交易 332 const int TAPIERROR_USERNO_NOTHAS_ACCOUNT = 60051; 333 //! 上手通道状态不正常 334 const int TAPIERROR_UPPERCHANNEL_BROKEN = 60052; 335 //! 上手通道未开通EXIST 336 const int TAPIERROR_UPPERCHANNEL_NOT_EXIST = 60053; 337 //! 撤单无此系统号 338 const int TAPIERROR_ORDERDELETE_NOT_SYSNO = 60061; 339 //! 此状态不允许撤单 340 const int TAPIERROR_ORDERDELETE_NOT_STATE = 60062; 341 //! 此状态不允许激活 342 const int TAPIERROR_ORDERACTIVE_NOT_STATE = 60063; 343 //! 只允许撤销本合约最新一次委托 344 const int TAPIERROR_ORDERDELETE_NOT_LAST = 60064; 345 //! 此状态禁止审核 346 const int TAPIERROR_ORDERCHECK_NOT_STATE = 60071; 347 //! 订单审核失败 348 const int TAPIERROR_ORDERCHECK_FAIL = 60072; 349 //! 此状态不允许改单 350 const int TAPIERROR_ORDERMODIFY_NOT_STATE = 60081; 351 //! 人工单不允许改单 352 const int TAPIERROR_ORDERMODIFY_BACK_INPUT = 60082; 353 //! 手续费参数错误 354 const int TAPIERROR_ORDERINSERT_FEE = 60091; 355 //! 保证金参数错误 356 const int TAPIERROR_ORDERINSERT_MARGIN = 60092; 357 //! 操作账号只可查询 358 const int TAPIERROR_ORDER_NO_PERMIT = 60100; 359 //! 非做市商不能应价 360 const int TAPIERROR_RSPQUOTE_NO_PERMIT = 60101; 361 //! 即使子帐号又是做市商不能应价 362 const int TAPIERROR_RSPQUOTE_CHILD_NO_PERMIT = 60102; 363 //! 下单找不到交易编码 364 const int TAPIERROR_TRADENO_NOT_FIND = 60103; 365 //! 操作账号只可开仓 366 const int TAPIERROR_ORDER_NO_CLOSE = 60104; 367 //! 操作账号没有上期挂单查询权限 368 const int TAPIERROR_QRY_QUOTE_NO_PERMIT = 60105; 369 //! 限期有效单不能小于当前交易日 370 const int TAPIERROR_EXPIREDATE_NO_PERMIT = 60106; 371 //! 该编码不允许申请或拆分组合 372 const int TAPIERROR_CMB_NO_PERMIT = 60107; 373 //! 非本服务器标记下的账号不允许操作 374 const int TAPIERROR_ORDERSERVER_NO_PERMIT = 60108; 375 //! 行权或弃权量超过可用量 376 const int TAPIERROR_POSITION_CANNOT_EXEC_OR_ABANDON = 60109; 377 //! 没有订单审核权限 378 const int TAPIERROR_ORDERCHECK_NO_PERMIT = 60110; 379 //! 超过当日最大开仓量 380 const int TAPIERROR_ORDERMAXOPENVOL_NO_PERMIT = 60111; 381 //! 涨跌停附近禁止反向开仓 382 const int TAPIERROR_ORDERLIMIT_OPEN_NO_PERMIT = 60112; 383 //! 超过单笔最大下单量 384 const int TAPIERROR_ORDER_SINGLEVOL_NO_PERMIT = 60113; 385 //! 超过最大持仓量 386 const int TAPIERROR_ORDER_POSITIONVOL_NO_PERMIT = 60114; 387 //! 非大连应价单不允许两笔委托量不一致 388 const int TAPIERROR_ORDER_QTY_NO_PERMIT = 60115; 389 //! 申请不允许重复提交 390 const int TAPIERROR_ORDER_APPLY_NO_PERMIT = 60117; 391 //! 超过账号下单频率限制 392 const int TAPIERROR_ORDER_FREQ_OVERRUN = 60118; 393 //! 组合表不存在的组合方向或投保标志 394 const int TAPIERROR_COMB_NO_SIDEORHEDGE = 60119; 395 //! 当前期权存在合理价差不需要询价 396 const int TAPIERROR_REQQUOTE_EXITREASONABLPRICE = 60120; 397 //! 应价委托价格不合理 398 const int TAPIERROR_RSPQUOTE_PRICE = 60121; 399 //! 普通客户不允许撤销强平单 400 const int TAPIERROR_RISKORDER_CANCEL = 60122; 401 //! 应价委托开平标志不正确 402 const int TAPIERROR_RSPQUOTE_EFFECT = 60123; 403 //! 买卖方式错误 404 const int TAPIERROR_ORDERINSERT_SIDEMODE = 60124; 405 //! 自动单超过最大委托数量 406 const int TAPIERROR_AUTOORDER_MAXCOUNT = 60125; 407 //! 上期所深度行情查询请求超过最大队列数 408 const int TAPIERROR_SHFEDEEPQUOTE_LIMIT = 60126; 409 //! 上期所深度行情查询请求没有数据 410 const int TAPIERROR_SHFEDEEPQUOTE_NODATA = 60127; 411 //! 存在自成交可能 412 const int TAPIERROR_SELFMATCH = 60128; 413 //! 错单超过最大数量 414 const int TAPIERROR_ERRORORDER_MAXCOUNT = 60129; 415 //! 超过席位下单频率限制 416 const int TAPIERROR_ORDER_UPPERFREQ_OVERRUN = 60130; 417 //! 订单操作频率过高 418 const int TAPIERROR_ORDER_FREQUENCY = 61001; 419 //! 委托查询返回前不能进行下次查询 420 const int TAPIERROR_ORDER_QUERYING = 61002; 421 422 /** @}*/ 423 424 //============================================================================= 425 /** 426 * \addtogroup G_ERR_QUOTE 行情业务处理返回错误码 427 * @{ 428 */ 429 //============================================================================= 430 //! 超过行情最大总订阅数 431 const int TAPIERROR_SUBSCRIBEQUOTE_MAX = 72001; 432 //! 超过该交易所行情最大订阅数 433 const int TAPIERROR_SUBSCRIBEQUOTE_EXCHANGE_MAX = 72002; 434 //! 没有该行情的订阅权限 435 const int TAPIERROR_SUBSCRIBEQUOTE_NO_RIGHT = 72101; 436 //! 没有该交易所下行情的订阅权限 437 const int TAPIERROR_SUBSCRIBEQUOTE_NO_EXCHANGE_RIGHT = 72102; 438 //! 品种不存在 439 const int TAPIERROR_SUBSCRIBEQUOTE_COMMODITY_NOT_EXIST = 72103; 440 //! 合约可能不存在 441 const int TAPIERROR_SUBSCRIBEQUOTE_CONTRACT_MAY_NOT_EXIST = 72104; 442 //! 不支持的行情协议 443 const int TAPIERROR_QUOTEFRONT_UNKNOWN_PROTOCOL = 83001; 444 //! 行情前置总登录数超限 445 const int TAPIERROR_QUOTEFRONT_LOGIN_TOTALCOUNT = 83002; 446 //! 订阅超过订阅数量限制 447 const int TAPIERROR_QUOTEFRONT_SUB_COUNT = 83003; 448 449 /** @}*/ 450 451 //============================================================================= 452 /** 453 * \addtogroup G_ERR_GATEWAY 网关返回错误码 454 * @{ 455 */ 456 //============================================================================= 457 //! 发送数据失败 458 const int TAPIERROR_ORDER_SEND = 80001; 459 //! 发送报单失败,网关没连接到交易所 460 const int TAPIERROR_DLG_NULL = 80002; 461 //! 报单字段有误 462 const int TAPIERROR_ORDER_FIELD = 80003; 463 //! 被上手拒绝 464 const int TAPIERROR_TRADE_REJ_BYUPPER = 80004; 465 //! 当前时间不允许发送行权申请 466 const int TAPIERROR_ORDER_FORBIDEXEC = 80005; 467 468 /** @}*/ 469 470 #endif //! TAP_API_ERROR_H