funcode.ts 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /**
  2. * Proto相关代码
  3. */
  4. export enum FunCode {
  5. QueryCommonReq = 17104897, // 通用查询请求(17104897)
  6. QueryCommonRsp = 17104901, // 通用查询应答(17104901)
  7. QueryCommonSenReq = 17104952, // 加密信息通用查询请求
  8. QueryCommonSenRsp = 17104953, // 加密信息通用查询应答
  9. LoginReq = 65537, // 用户登录请求
  10. LoginRsp = 65538, // 用户登录应答
  11. LogoutReq = 65539, // 用户登出请求
  12. LogoutRsp = 65540, // 用户登出应答
  13. TokenCheckReq = 65541, // 用户令牌校验请求
  14. TokenCheckRsp = 65542, // 用户令牌校验应答
  15. ModifyPwdReq = 65543, // 修改账户密码请求
  16. ModifyPwdRsp = 65544, // 修改账户密码应答
  17. InvestorDelReq = 1900553, // 投资者销户申请请求
  18. InvestorDelRsp = 1900554, // 投资者销户申请请求响应
  19. DealerHeadReq = 1900635, // 交易商头像请求
  20. DealerHeadRsp = 1900636, // 交易商头像应答
  21. t2bBankSignReq = 589825, // 签约请求
  22. t2bBankSignRsp = 589826, // 签约应答
  23. t2bBankCancelSignReq = 589827, // 解约请求
  24. t2bBankCancelSignRsp = 589828, // 解约应答
  25. t2bBankWithdrawReq = 589837, // 出金请求
  26. t2bBankWithdrawRsp = 589838, // 出金应答
  27. t2bBankDepositReq = 589843, // 入金请求
  28. t2bBankDepositRsp = 589844, //入金应答
  29. AccountFundInfoReq = 262150, /// 账户资金信息请求(0, 4, 6)
  30. AccountFundInfoRsp = 262151, /// 账户资金信息响应(0, 4, 7)
  31. t2bSMSVerificationCodeReq = 589853, // 银行获取手机验证码请求
  32. t2bSMSVerificationCodeRsp = 589854, // 银行获取手机验证码应答
  33. UserReceiveInfoReq = 1900545, // 新增修改收货地址请求
  34. UserReceiveInfoRsp = 1900546, // 新增修改收货地址请求响应
  35. DelUserReceiveInfoReq = 1900547, // 删除收货地址请求
  36. DelUserReceiveInfoRsp = 1900548, // 删除收货地址请求响应
  37. UserReceiveIsDefaultReq = 1900570, // 设置默认收货地址请求
  38. UserReceiveIsDefaultRsp = 1900571, // 设置默认收货地址应答
  39. UserReceiptInfoReq = 1900549, // 新增修改用户发票信息请求
  40. UserReceiptInfoRsp = 1900550, // 新增修改用户发票信息响应
  41. DelUserReceiptInfoReq = 1900551, // 删除用户发票信息请求
  42. DelUserReceiptInfoRsp = 1900552, // 删除用户发票信息请求响应
  43. // 交易通知
  44. MoneyChangedNotify = 131076, // 资金变化通知
  45. UserChangeNtf = 131106, /// 用户变更通知(0, 2, 34)
  46. WRTradeDealedNtf = 131110, // 仓单贸易成交通知
  47. ListingOrderChangeNtf = 131176, // 挂牌委托变更广播通知
  48. OrderDealedNtf = 131081, // 委托单成交通知
  49. MarketStatusChangeNtf = 131089, // 市场状态变更通知
  50. PosChangedNtf = 131075, // 头寸变化通知
  51. RiskControlNtf = 131086, // 风控通知
  52. // 行情内容
  53. QuoteBeat = 0x12, // 心跳
  54. QuoteSubscribeReq = 0x20, // 实时行情订阅请求
  55. QuoteSubscribeRsp = 0x21, // 实时行情订阅响应
  56. QueryQuoteReq = 0x22, // 盘面查询请求
  57. QueryQuoteRsp = 0x23, // 盘面查询应答
  58. THJRedPacketLotteryReq = 1441863, // 铁合金抽奖接口请求
  59. THJRedPacketLotteryRsp = 1441864, // 铁合金抽奖接口响应
  60. SpotPresaleDestingOrderReq = 1441849, /// 铁合金现货预售摘牌接口请求
  61. SpotPresaleDestingOrderRsp = 1441850, /// 铁合金现货预售摘牌接口应答
  62. SpotPresaleDeliveryConfirmReq = 1441861, /// 铁合金现货预售交收确认接口请求
  63. SpotPresaleDeliveryConfirmRsp = 1441862, /// 铁合金现货预售交收确认接口应答
  64. SpotPresaleBreachOfContractApplyReq = 1441855, /// 铁合金现货预售违约申请接口请求(0, 22, 63)
  65. SpotPresaleBreachOfContractApplyRsp = 1441856, /// 铁合金现货预售违约申请接口应答(0, 22, 64)
  66. SpotPresaleBreachOfContractConfirmReq = 1441857, /// 铁合金现货预售违约确认接口请求
  67. SpotPresaleBreachOfContractConfirmRsp = 1441858, /// 铁合金现货预售违约确认接口应答
  68. SpotPresalePlaymentReq = 1441853, /// 铁合金现货预售付款处理接口请求(0, 22, 61)
  69. SpotPresalePlaymentRsp = 1441854, /// 铁合金现货预售付款处理接口应答(0, 22, 62)
  70. WRListingCancelOrderReq = 1441796, /// 挂牌撤单请求
  71. WRListingCancelOrderRsp = 1441797, /// 挂牌撤单应答
  72. WROutApplyReq = 1900657, /// 仓单出库申请
  73. WROutApplyRsp = 1900658, /// 仓单出库申请响应
  74. HdWROrderReq = 1441807, /// 持仓单挂牌请求
  75. HdWROrderRsp = 1441808, /// 持仓单挂牌应答
  76. HdWRDealOrderReq = 1441809, /// 持仓单摘牌请求
  77. HdWRDealOrderRsp = 1441810, /// 持仓单摘牌应答
  78. SpotPresaleTransferListingReq = 1441859, /// 铁合金现货预售转让挂牌接口请求(0, 22, 67)
  79. SpotPresaleTransferListingRsp = 1441860, /// 铁合金现货预售转让挂牌接口响应(0, 22, 68)
  80. SpotPresaleTransferCancelReq = 1441867, /// 铁合金现货预售转让撤销接口请求(0, 22, 75)
  81. SpotPresaleTransferCancelRsp = 1441868, /// 铁合金现货预售转让撤销接口响应(0, 22, 76)
  82. SpotPresaleTransferDestingReq = 1441869, /// 铁合金现货预售转让摘牌接口请求(0, 22, 77)
  83. SpotPresaleTransferDestingRsp = 1441870, /// 铁合金现货预售转让摘牌接口响应(0, 22, 78)
  84. THJProfitDrawApplyReq = 1441871, /// 铁合金收益支取申请接口请求(0, 22, 79)
  85. THJProfitDrawApplyRsp = 1441872, /// 铁合金收益支取申请接口响应(0, 22, 80)
  86. SpotPresalePointPriceReq = 1441877, // 铁合金预售点价请求
  87. SpotPresalePointPriceRsp = 1441878, // 铁合金预售点价响应
  88. OrderReq = 196609, // 交易委托请求(0, 3, 1)
  89. OrderRsp = 196610, // 交易委托应答(0, 3, 2)
  90. CancelOrderReq = 196611, // 撤单请求(0, 3, 3)
  91. CancelOrderRsp = 196612, // 撤单应答(0, 3, 4)
  92. HolderCloseReq = 196713, // 按单平仓请求(196713)
  93. HolderCloseRsp = 196714, // 按单平仓应答(196714)
  94. DeliveryOrderReq = 393217, // 交割申报请求
  95. DeliveryOrderRsp = 393218, // 交割申报应答
  96. MakeUpDepositReq = 196715, // 补足定金请求
  97. MakeUpDepositRsp = 196716, // 补足定金应答
  98. HoldAppendDepositReq = 196719, // 持仓追加定金接口请求
  99. HoldAppendDepositRsp = 196720, // 持仓追加定金接口应答
  100. OfflineDeliveryReq = 196723, // 线下交收申请请求
  101. OfflineDeliveryRsp = 196724, // 线下交收申请请求
  102. PerformanceContractedApplyReq = 1310729, // 违约申请请求
  103. PerformanceContractedApplyRsp = 1310730, // 违约申请应答
  104. PerformanceDelayApplyReq = 1310725, // 延期申请请求
  105. PerformanceDelayApplyRsp = 1310726, // 延期申请应答
  106. PerformanceManualConfirmReq = 1310723, // 履约手动确认请求
  107. PerformanceManualConfirmRsp = 1310724, // 履约手动确认应答
  108. PerformanceModifyContactReq = 1310735, // 履约修改联络信息请求
  109. PerformanceModifyContactRsp = 1310736, // 履约修改联络信息回应
  110. SupplementDepositReq = 196731, // 补充定金接口请求
  111. SupplementDepositRsp = 196732, // 补充定金接口响应
  112. RefundedDepositReq = 196733, // 退返定金接口请求
  113. RefundedDepositRsp = 196734, // 退返定金接口响应
  114. MarketOrderDeliveryApplyReq = 196739, // 按单做市交收申请接口请求
  115. MarketOrderDeliveryApplyRsp = 196740, // 按单做市交收申请接口响应
  116. DeliveryClientOperatorReq = 196743, // 交收终端操作接口请求
  117. DeliveryClientOperatorRsp = 196744, // 交收终端操作接口响应
  118. OfflineDeliveryApplyCancelOrderReq = 196745, // MAKE_FID(0, 3, 137) 线下交收申请撤销接口请求(196745)
  119. OfflineDeliveryApplyCancelOrderRsp = 196746, // MAKE_FID(0, 3, 138) // 线下交收申请撤销接口响应(196746)
  120. HolderTransferApplyReq = 196751, // 持仓过户申请接口请求
  121. HolderTransferApplyRsp = 196752, // 持仓过户申请接口响应
  122. HolderTransferConfirmReq = 196753, // 持仓过户确认接口请求
  123. HolderTransferConfirmRsp = 196754, // 持仓过户确认接口响应
  124. }