mtp2.pb.go 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.11.4
  5. // source: mtp2.proto
  6. package pb
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // This is a compile-time assertion that a sufficiently up-to-date version
  21. // of the legacy proto package is being used.
  22. const _ = proto.ProtoPackageIsVersion4
  23. //交易规则信息子集
  24. type TradeRule struct {
  25. state protoimpl.MessageState
  26. sizeCache protoimpl.SizeCache
  27. unknownFields protoimpl.UnknownFields
  28. RuleID *uint32 `protobuf:"varint,1,opt,name=RuleID" json:"RuleID,omitempty"` // 交易规则ID
  29. ParamValue *float64 `protobuf:"fixed64,2,opt,name=ParamValue" json:"ParamValue,omitempty"` // 参数值
  30. }
  31. func (x *TradeRule) Reset() {
  32. *x = TradeRule{}
  33. if protoimpl.UnsafeEnabled {
  34. mi := &file_mtp2_proto_msgTypes[0]
  35. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  36. ms.StoreMessageInfo(mi)
  37. }
  38. }
  39. func (x *TradeRule) String() string {
  40. return protoimpl.X.MessageStringOf(x)
  41. }
  42. func (*TradeRule) ProtoMessage() {}
  43. func (x *TradeRule) ProtoReflect() protoreflect.Message {
  44. mi := &file_mtp2_proto_msgTypes[0]
  45. if protoimpl.UnsafeEnabled && x != nil {
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. if ms.LoadMessageInfo() == nil {
  48. ms.StoreMessageInfo(mi)
  49. }
  50. return ms
  51. }
  52. return mi.MessageOf(x)
  53. }
  54. // Deprecated: Use TradeRule.ProtoReflect.Descriptor instead.
  55. func (*TradeRule) Descriptor() ([]byte, []int) {
  56. return file_mtp2_proto_rawDescGZIP(), []int{0}
  57. }
  58. func (x *TradeRule) GetRuleID() uint32 {
  59. if x != nil && x.RuleID != nil {
  60. return *x.RuleID
  61. }
  62. return 0
  63. }
  64. func (x *TradeRule) GetParamValue() float64 {
  65. if x != nil && x.ParamValue != nil {
  66. return *x.ParamValue
  67. }
  68. return 0
  69. }
  70. //交易规则信息
  71. type TradeRuleInfoStruct struct {
  72. state protoimpl.MessageState
  73. sizeCache protoimpl.SizeCache
  74. unknownFields protoimpl.UnknownFields
  75. AccountID *uint64 `protobuf:"varint,1,opt,name=AccountID" json:"AccountID,omitempty"` // 资金账号
  76. GoodsID *uint32 `protobuf:"varint,2,opt,name=GoodsID" json:"GoodsID,omitempty"` // 商品id
  77. TradeRules []*TradeRule `protobuf:"bytes,3,rep,name=TradeRules" json:"TradeRules,omitempty"` // 交易规则
  78. }
  79. func (x *TradeRuleInfoStruct) Reset() {
  80. *x = TradeRuleInfoStruct{}
  81. if protoimpl.UnsafeEnabled {
  82. mi := &file_mtp2_proto_msgTypes[1]
  83. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  84. ms.StoreMessageInfo(mi)
  85. }
  86. }
  87. func (x *TradeRuleInfoStruct) String() string {
  88. return protoimpl.X.MessageStringOf(x)
  89. }
  90. func (*TradeRuleInfoStruct) ProtoMessage() {}
  91. func (x *TradeRuleInfoStruct) ProtoReflect() protoreflect.Message {
  92. mi := &file_mtp2_proto_msgTypes[1]
  93. if protoimpl.UnsafeEnabled && x != nil {
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. if ms.LoadMessageInfo() == nil {
  96. ms.StoreMessageInfo(mi)
  97. }
  98. return ms
  99. }
  100. return mi.MessageOf(x)
  101. }
  102. // Deprecated: Use TradeRuleInfoStruct.ProtoReflect.Descriptor instead.
  103. func (*TradeRuleInfoStruct) Descriptor() ([]byte, []int) {
  104. return file_mtp2_proto_rawDescGZIP(), []int{1}
  105. }
  106. func (x *TradeRuleInfoStruct) GetAccountID() uint64 {
  107. if x != nil && x.AccountID != nil {
  108. return *x.AccountID
  109. }
  110. return 0
  111. }
  112. func (x *TradeRuleInfoStruct) GetGoodsID() uint32 {
  113. if x != nil && x.GoodsID != nil {
  114. return *x.GoodsID
  115. }
  116. return 0
  117. }
  118. func (x *TradeRuleInfoStruct) GetTradeRules() []*TradeRule {
  119. if x != nil {
  120. return x.TradeRules
  121. }
  122. return nil
  123. }
  124. // 日期类型定义
  125. type Date struct {
  126. state protoimpl.MessageState
  127. sizeCache protoimpl.SizeCache
  128. unknownFields protoimpl.UnknownFields
  129. DateStr *string `protobuf:"bytes,1,opt,name=DateStr" json:"DateStr,omitempty"` // 日期时间
  130. }
  131. func (x *Date) Reset() {
  132. *x = Date{}
  133. if protoimpl.UnsafeEnabled {
  134. mi := &file_mtp2_proto_msgTypes[2]
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. ms.StoreMessageInfo(mi)
  137. }
  138. }
  139. func (x *Date) String() string {
  140. return protoimpl.X.MessageStringOf(x)
  141. }
  142. func (*Date) ProtoMessage() {}
  143. func (x *Date) ProtoReflect() protoreflect.Message {
  144. mi := &file_mtp2_proto_msgTypes[2]
  145. if protoimpl.UnsafeEnabled && x != nil {
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. if ms.LoadMessageInfo() == nil {
  148. ms.StoreMessageInfo(mi)
  149. }
  150. return ms
  151. }
  152. return mi.MessageOf(x)
  153. }
  154. // Deprecated: Use Date.ProtoReflect.Descriptor instead.
  155. func (*Date) Descriptor() ([]byte, []int) {
  156. return file_mtp2_proto_rawDescGZIP(), []int{2}
  157. }
  158. func (x *Date) GetDateStr() string {
  159. if x != nil && x.DateStr != nil {
  160. return *x.DateStr
  161. }
  162. return ""
  163. }
  164. // ERMS2_ARBITRAGESTRATEGY 期现套利策略表
  165. type Erms2ArbitrageStrategy struct {
  166. state protoimpl.MessageState
  167. sizeCache protoimpl.SizeCache
  168. unknownFields protoimpl.UnknownFields
  169. //mkey: 1
  170. ASApplyId *uint64 `protobuf:"varint,1,opt,name=ASApplyId" json:"ASApplyId,omitempty"` // 策略申请ID(702+Unix秒时间戳(10位)+xxxxxx)
  171. ASNo *string `protobuf:"bytes,2,opt,name=ASNo" json:"ASNo,omitempty"` // 策略编号
  172. BizType *uint32 `protobuf:"varint,3,opt,name=BizType" json:"BizType,omitempty"` // 业务类型 - 1:正向套利 -1:反向套利
  173. UserId *uint32 `protobuf:"varint,4,opt,name=UserId" json:"UserId,omitempty"` // 所属机构
  174. DeliveryGoodsId *uint32 `protobuf:"varint,5,opt,name=DeliveryGoodsId" json:"DeliveryGoodsId,omitempty"` // 现货品种ID
  175. GoodsGroupId *uint32 `protobuf:"varint,6,opt,name=GoodsGroupId" json:"GoodsGroupId,omitempty"` // 期货品种ID
  176. SpotQuota *float64 `protobuf:"fixed64,7,opt,name=SpotQuota" json:"SpotQuota,omitempty"` // 现货额度
  177. FutureQuote *float64 `protobuf:"fixed64,8,opt,name=FutureQuote" json:"FutureQuote,omitempty"` // 期货额度
  178. ApplyBasis *float64 `protobuf:"fixed64,9,opt,name=ApplyBasis" json:"ApplyBasis,omitempty"` // 申请基差
  179. StrategyStatus *uint32 `protobuf:"varint,10,opt,name=StrategyStatus" json:"StrategyStatus,omitempty"` // 策略状态 - 0:未结束 1:已结束
  180. Remark *string `protobuf:"bytes,11,opt,name=Remark" json:"Remark,omitempty"` // 备注
  181. MarketId *uint32 `protobuf:"varint,12,opt,name=MarketId" json:"MarketId,omitempty"` // 市场ID
  182. TradeDate *string `protobuf:"bytes,13,opt,name=TradeDate" json:"TradeDate,omitempty"` // 交易日(yyyyMMdd)
  183. CloseTradeDate *string `protobuf:"bytes,14,opt,name=CloseTradeDate" json:"CloseTradeDate,omitempty"` // 完结交易日(yyyyMMdd)
  184. UsedQuota *float64 `protobuf:"fixed64,15,opt,name=UsedQuota" json:"UsedQuota,omitempty"` // 已占用资金
  185. FutureQty *float64 `protobuf:"fixed64,16,opt,name=FutureQty" json:"FutureQty,omitempty"` // 期货持仓数量
  186. FutureAvgPrice *float64 `protobuf:"fixed64,17,opt,name=FutureAvgPrice" json:"FutureAvgPrice,omitempty"` // 期货建仓均价
  187. FuturePL *float64 `protobuf:"fixed64,18,opt,name=FuturePL" json:"FuturePL,omitempty"` // 期货总盈亏[结算更新]
  188. PricedSpotQty *float64 `protobuf:"fixed64,19,opt,name=PricedSpotQty" json:"PricedSpotQty,omitempty"` // 已定价现货数量
  189. PricedSpotQtyNoTax *float64 `protobuf:"fixed64,20,opt,name=PricedSpotQtyNoTax" json:"PricedSpotQtyNoTax,omitempty"` // 已定价现货不含税数量
  190. SpotavgPrice *float64 `protobuf:"fixed64,21,opt,name=SpotavgPrice" json:"SpotavgPrice,omitempty"` // 现货均价
  191. SpotPL *float64 `protobuf:"fixed64,22,opt,name=SpotPL" json:"SpotPL,omitempty"` // 现货总盈亏[结算更新]
  192. NetExposure *float64 `protobuf:"fixed64,23,opt,name=NetExposure" json:"NetExposure,omitempty"` // 单笔业务头寸净敞口 = 期货持仓数量 + 已定价现货不含税数量
  193. NetExposureRate *float64 `protobuf:"fixed64,24,opt,name=NetExposureRate" json:"NetExposureRate,omitempty"` // 净敞口比例 - 0:未结束 = (NetExposure/PriceSpotQtyNoTax) ; 已结束为0
  194. TotalPL *float64 `protobuf:"fixed64,25,opt,name=TotalPL" json:"TotalPL,omitempty"` // 业务合计损益 = FuturePL + SpotPL [结算更新]
  195. OpenBasis *float64 `protobuf:"fixed64,26,opt,name=OpenBasis" json:"OpenBasis,omitempty"` // 建仓基差
  196. CurBasis *float64 `protobuf:"fixed64,27,opt,name=CurBasis" json:"CurBasis,omitempty"` // 当前基差[结算更新]
  197. BasisChangePL *float64 `protobuf:"fixed64,28,opt,name=BasisChangePL" json:"BasisChangePL,omitempty"` // 基差变动损益[结算更新]
  198. NetExposurePL *float64 `protobuf:"fixed64,29,opt,name=NetExposurePL" json:"NetExposurePL,omitempty"` // 净敞口损益 = TotalPL - BasisChangePL[结算更新]
  199. SpotUsedQuota *float64 `protobuf:"fixed64,30,opt,name=SpotUsedQuota" json:"SpotUsedQuota,omitempty"` // 现货占用资金
  200. FutureOpenQty *float64 `protobuf:"fixed64,31,opt,name=FutureOpenQty" json:"FutureOpenQty,omitempty"` // 期货开仓数量
  201. FutureOpenAmount *float64 `protobuf:"fixed64,32,opt,name=FutureOpenAmount" json:"FutureOpenAmount,omitempty"` // 期货开仓金额
  202. FutureCloseQty *float64 `protobuf:"fixed64,33,opt,name=FutureCloseQty" json:"FutureCloseQty,omitempty"` // 期货平仓数量
  203. FutureCloseAmount *float64 `protobuf:"fixed64,34,opt,name=FutureCloseAmount" json:"FutureCloseAmount,omitempty"` // 期货平仓金额
  204. SpotBuyAmount *float64 `protobuf:"fixed64,35,opt,name=SpotBuyAmount" json:"SpotBuyAmount,omitempty"` // 现货采购金额
  205. SpotBuyQty *float64 `protobuf:"fixed64,36,opt,name=SpotBuyQty" json:"SpotBuyQty,omitempty"` // 现货采购数量
  206. SpotSellAmount *float64 `protobuf:"fixed64,37,opt,name=SpotSellAmount" json:"SpotSellAmount,omitempty"` // 现货销售金额
  207. SpotSellQty *float64 `protobuf:"fixed64,38,opt,name=SpotSellQty" json:"SpotSellQty,omitempty"` // 现货销售数量
  208. UpDatetime *Date `protobuf:"bytes,39,opt,name=UpDatetime" json:"UpDatetime,omitempty"` // 更新时间
  209. ASName *string `protobuf:"bytes,40,opt,name=ASName" json:"ASName,omitempty"` // 策略名称
  210. }
  211. func (x *Erms2ArbitrageStrategy) Reset() {
  212. *x = Erms2ArbitrageStrategy{}
  213. if protoimpl.UnsafeEnabled {
  214. mi := &file_mtp2_proto_msgTypes[3]
  215. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  216. ms.StoreMessageInfo(mi)
  217. }
  218. }
  219. func (x *Erms2ArbitrageStrategy) String() string {
  220. return protoimpl.X.MessageStringOf(x)
  221. }
  222. func (*Erms2ArbitrageStrategy) ProtoMessage() {}
  223. func (x *Erms2ArbitrageStrategy) ProtoReflect() protoreflect.Message {
  224. mi := &file_mtp2_proto_msgTypes[3]
  225. if protoimpl.UnsafeEnabled && x != nil {
  226. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  227. if ms.LoadMessageInfo() == nil {
  228. ms.StoreMessageInfo(mi)
  229. }
  230. return ms
  231. }
  232. return mi.MessageOf(x)
  233. }
  234. // Deprecated: Use Erms2ArbitrageStrategy.ProtoReflect.Descriptor instead.
  235. func (*Erms2ArbitrageStrategy) Descriptor() ([]byte, []int) {
  236. return file_mtp2_proto_rawDescGZIP(), []int{3}
  237. }
  238. func (x *Erms2ArbitrageStrategy) GetASApplyId() uint64 {
  239. if x != nil && x.ASApplyId != nil {
  240. return *x.ASApplyId
  241. }
  242. return 0
  243. }
  244. func (x *Erms2ArbitrageStrategy) GetASNo() string {
  245. if x != nil && x.ASNo != nil {
  246. return *x.ASNo
  247. }
  248. return ""
  249. }
  250. func (x *Erms2ArbitrageStrategy) GetBizType() uint32 {
  251. if x != nil && x.BizType != nil {
  252. return *x.BizType
  253. }
  254. return 0
  255. }
  256. func (x *Erms2ArbitrageStrategy) GetUserId() uint32 {
  257. if x != nil && x.UserId != nil {
  258. return *x.UserId
  259. }
  260. return 0
  261. }
  262. func (x *Erms2ArbitrageStrategy) GetDeliveryGoodsId() uint32 {
  263. if x != nil && x.DeliveryGoodsId != nil {
  264. return *x.DeliveryGoodsId
  265. }
  266. return 0
  267. }
  268. func (x *Erms2ArbitrageStrategy) GetGoodsGroupId() uint32 {
  269. if x != nil && x.GoodsGroupId != nil {
  270. return *x.GoodsGroupId
  271. }
  272. return 0
  273. }
  274. func (x *Erms2ArbitrageStrategy) GetSpotQuota() float64 {
  275. if x != nil && x.SpotQuota != nil {
  276. return *x.SpotQuota
  277. }
  278. return 0
  279. }
  280. func (x *Erms2ArbitrageStrategy) GetFutureQuote() float64 {
  281. if x != nil && x.FutureQuote != nil {
  282. return *x.FutureQuote
  283. }
  284. return 0
  285. }
  286. func (x *Erms2ArbitrageStrategy) GetApplyBasis() float64 {
  287. if x != nil && x.ApplyBasis != nil {
  288. return *x.ApplyBasis
  289. }
  290. return 0
  291. }
  292. func (x *Erms2ArbitrageStrategy) GetStrategyStatus() uint32 {
  293. if x != nil && x.StrategyStatus != nil {
  294. return *x.StrategyStatus
  295. }
  296. return 0
  297. }
  298. func (x *Erms2ArbitrageStrategy) GetRemark() string {
  299. if x != nil && x.Remark != nil {
  300. return *x.Remark
  301. }
  302. return ""
  303. }
  304. func (x *Erms2ArbitrageStrategy) GetMarketId() uint32 {
  305. if x != nil && x.MarketId != nil {
  306. return *x.MarketId
  307. }
  308. return 0
  309. }
  310. func (x *Erms2ArbitrageStrategy) GetTradeDate() string {
  311. if x != nil && x.TradeDate != nil {
  312. return *x.TradeDate
  313. }
  314. return ""
  315. }
  316. func (x *Erms2ArbitrageStrategy) GetCloseTradeDate() string {
  317. if x != nil && x.CloseTradeDate != nil {
  318. return *x.CloseTradeDate
  319. }
  320. return ""
  321. }
  322. func (x *Erms2ArbitrageStrategy) GetUsedQuota() float64 {
  323. if x != nil && x.UsedQuota != nil {
  324. return *x.UsedQuota
  325. }
  326. return 0
  327. }
  328. func (x *Erms2ArbitrageStrategy) GetFutureQty() float64 {
  329. if x != nil && x.FutureQty != nil {
  330. return *x.FutureQty
  331. }
  332. return 0
  333. }
  334. func (x *Erms2ArbitrageStrategy) GetFutureAvgPrice() float64 {
  335. if x != nil && x.FutureAvgPrice != nil {
  336. return *x.FutureAvgPrice
  337. }
  338. return 0
  339. }
  340. func (x *Erms2ArbitrageStrategy) GetFuturePL() float64 {
  341. if x != nil && x.FuturePL != nil {
  342. return *x.FuturePL
  343. }
  344. return 0
  345. }
  346. func (x *Erms2ArbitrageStrategy) GetPricedSpotQty() float64 {
  347. if x != nil && x.PricedSpotQty != nil {
  348. return *x.PricedSpotQty
  349. }
  350. return 0
  351. }
  352. func (x *Erms2ArbitrageStrategy) GetPricedSpotQtyNoTax() float64 {
  353. if x != nil && x.PricedSpotQtyNoTax != nil {
  354. return *x.PricedSpotQtyNoTax
  355. }
  356. return 0
  357. }
  358. func (x *Erms2ArbitrageStrategy) GetSpotavgPrice() float64 {
  359. if x != nil && x.SpotavgPrice != nil {
  360. return *x.SpotavgPrice
  361. }
  362. return 0
  363. }
  364. func (x *Erms2ArbitrageStrategy) GetSpotPL() float64 {
  365. if x != nil && x.SpotPL != nil {
  366. return *x.SpotPL
  367. }
  368. return 0
  369. }
  370. func (x *Erms2ArbitrageStrategy) GetNetExposure() float64 {
  371. if x != nil && x.NetExposure != nil {
  372. return *x.NetExposure
  373. }
  374. return 0
  375. }
  376. func (x *Erms2ArbitrageStrategy) GetNetExposureRate() float64 {
  377. if x != nil && x.NetExposureRate != nil {
  378. return *x.NetExposureRate
  379. }
  380. return 0
  381. }
  382. func (x *Erms2ArbitrageStrategy) GetTotalPL() float64 {
  383. if x != nil && x.TotalPL != nil {
  384. return *x.TotalPL
  385. }
  386. return 0
  387. }
  388. func (x *Erms2ArbitrageStrategy) GetOpenBasis() float64 {
  389. if x != nil && x.OpenBasis != nil {
  390. return *x.OpenBasis
  391. }
  392. return 0
  393. }
  394. func (x *Erms2ArbitrageStrategy) GetCurBasis() float64 {
  395. if x != nil && x.CurBasis != nil {
  396. return *x.CurBasis
  397. }
  398. return 0
  399. }
  400. func (x *Erms2ArbitrageStrategy) GetBasisChangePL() float64 {
  401. if x != nil && x.BasisChangePL != nil {
  402. return *x.BasisChangePL
  403. }
  404. return 0
  405. }
  406. func (x *Erms2ArbitrageStrategy) GetNetExposurePL() float64 {
  407. if x != nil && x.NetExposurePL != nil {
  408. return *x.NetExposurePL
  409. }
  410. return 0
  411. }
  412. func (x *Erms2ArbitrageStrategy) GetSpotUsedQuota() float64 {
  413. if x != nil && x.SpotUsedQuota != nil {
  414. return *x.SpotUsedQuota
  415. }
  416. return 0
  417. }
  418. func (x *Erms2ArbitrageStrategy) GetFutureOpenQty() float64 {
  419. if x != nil && x.FutureOpenQty != nil {
  420. return *x.FutureOpenQty
  421. }
  422. return 0
  423. }
  424. func (x *Erms2ArbitrageStrategy) GetFutureOpenAmount() float64 {
  425. if x != nil && x.FutureOpenAmount != nil {
  426. return *x.FutureOpenAmount
  427. }
  428. return 0
  429. }
  430. func (x *Erms2ArbitrageStrategy) GetFutureCloseQty() float64 {
  431. if x != nil && x.FutureCloseQty != nil {
  432. return *x.FutureCloseQty
  433. }
  434. return 0
  435. }
  436. func (x *Erms2ArbitrageStrategy) GetFutureCloseAmount() float64 {
  437. if x != nil && x.FutureCloseAmount != nil {
  438. return *x.FutureCloseAmount
  439. }
  440. return 0
  441. }
  442. func (x *Erms2ArbitrageStrategy) GetSpotBuyAmount() float64 {
  443. if x != nil && x.SpotBuyAmount != nil {
  444. return *x.SpotBuyAmount
  445. }
  446. return 0
  447. }
  448. func (x *Erms2ArbitrageStrategy) GetSpotBuyQty() float64 {
  449. if x != nil && x.SpotBuyQty != nil {
  450. return *x.SpotBuyQty
  451. }
  452. return 0
  453. }
  454. func (x *Erms2ArbitrageStrategy) GetSpotSellAmount() float64 {
  455. if x != nil && x.SpotSellAmount != nil {
  456. return *x.SpotSellAmount
  457. }
  458. return 0
  459. }
  460. func (x *Erms2ArbitrageStrategy) GetSpotSellQty() float64 {
  461. if x != nil && x.SpotSellQty != nil {
  462. return *x.SpotSellQty
  463. }
  464. return 0
  465. }
  466. func (x *Erms2ArbitrageStrategy) GetUpDatetime() *Date {
  467. if x != nil {
  468. return x.UpDatetime
  469. }
  470. return nil
  471. }
  472. func (x *Erms2ArbitrageStrategy) GetASName() string {
  473. if x != nil && x.ASName != nil {
  474. return *x.ASName
  475. }
  476. return ""
  477. }
  478. var File_mtp2_proto protoreflect.FileDescriptor
  479. var file_mtp2_proto_rawDesc = []byte{
  480. 0x0a, 0x0a, 0x6d, 0x74, 0x70, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62,
  481. 0x22, 0x43, 0x0a, 0x09, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x16, 0x0a,
  482. 0x06, 0x52, 0x75, 0x6c, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x52,
  483. 0x75, 0x6c, 0x65, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x56, 0x61,
  484. 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x50, 0x61, 0x72, 0x61, 0x6d,
  485. 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7c, 0x0a, 0x13, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x75,
  486. 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x1c, 0x0a, 0x09,
  487. 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52,
  488. 0x09, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x6f,
  489. 0x6f, 0x64, 0x73, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x47, 0x6f, 0x6f,
  490. 0x64, 0x73, 0x49, 0x44, 0x12, 0x2d, 0x0a, 0x0a, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x75, 0x6c,
  491. 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x70, 0x62, 0x2e, 0x54, 0x72,
  492. 0x61, 0x64, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x0a, 0x54, 0x72, 0x61, 0x64, 0x65, 0x52, 0x75,
  493. 0x6c, 0x65, 0x73, 0x22, 0x20, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44,
  494. 0x61, 0x74, 0x65, 0x53, 0x74, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x44, 0x61,
  495. 0x74, 0x65, 0x53, 0x74, 0x72, 0x22, 0xea, 0x0a, 0x0a, 0x16, 0x45, 0x72, 0x6d, 0x73, 0x32, 0x41,
  496. 0x72, 0x62, 0x69, 0x74, 0x72, 0x61, 0x67, 0x65, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  497. 0x12, 0x1c, 0x0a, 0x09, 0x41, 0x53, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x49, 0x64, 0x18, 0x01, 0x20,
  498. 0x01, 0x28, 0x04, 0x52, 0x09, 0x41, 0x53, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x49, 0x64, 0x12, 0x12,
  499. 0x0a, 0x04, 0x41, 0x53, 0x4e, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x41, 0x53,
  500. 0x4e, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x42, 0x69, 0x7a, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20,
  501. 0x01, 0x28, 0x0d, 0x52, 0x07, 0x42, 0x69, 0x7a, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06,
  502. 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x55, 0x73,
  503. 0x65, 0x72, 0x49, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79,
  504. 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x44,
  505. 0x65, 0x6c, 0x69, 0x76, 0x65, 0x72, 0x79, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x64, 0x12, 0x22,
  506. 0x0a, 0x0c, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x06,
  507. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70,
  508. 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x53, 0x70, 0x6f, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x18,
  509. 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x53, 0x70, 0x6f, 0x74, 0x51, 0x75, 0x6f, 0x74, 0x61,
  510. 0x12, 0x20, 0x0a, 0x0b, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x51, 0x75, 0x6f, 0x74, 0x65, 0x18,
  511. 0x08, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x51, 0x75, 0x6f,
  512. 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x61, 0x73, 0x69, 0x73,
  513. 0x18, 0x09, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x41, 0x70, 0x70, 0x6c, 0x79, 0x42, 0x61, 0x73,
  514. 0x69, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x53, 0x74,
  515. 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x53, 0x74, 0x72, 0x61,
  516. 0x74, 0x65, 0x67, 0x79, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65,
  517. 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x52, 0x65, 0x6d, 0x61,
  518. 0x72, 0x6b, 0x12, 0x1a, 0x0a, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x18, 0x0c,
  519. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x49, 0x64, 0x12, 0x1c,
  520. 0x0a, 0x09, 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x61, 0x74, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
  521. 0x09, 0x52, 0x09, 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x61, 0x74, 0x65, 0x12, 0x26, 0x0a, 0x0e,
  522. 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x72, 0x61, 0x64, 0x65, 0x44, 0x61, 0x74, 0x65, 0x18, 0x0e,
  523. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x54, 0x72, 0x61, 0x64, 0x65,
  524. 0x44, 0x61, 0x74, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74,
  525. 0x61, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x55, 0x73, 0x65, 0x64, 0x51, 0x75, 0x6f,
  526. 0x74, 0x61, 0x12, 0x1c, 0x0a, 0x09, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x51, 0x74, 0x79, 0x18,
  527. 0x10, 0x20, 0x01, 0x28, 0x01, 0x52, 0x09, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x51, 0x74, 0x79,
  528. 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x41, 0x76, 0x67, 0x50, 0x72, 0x69,
  529. 0x63, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0e, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65,
  530. 0x41, 0x76, 0x67, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x46, 0x75, 0x74, 0x75,
  531. 0x72, 0x65, 0x50, 0x4c, 0x18, 0x12, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x46, 0x75, 0x74, 0x75,
  532. 0x72, 0x65, 0x50, 0x4c, 0x12, 0x24, 0x0a, 0x0d, 0x50, 0x72, 0x69, 0x63, 0x65, 0x64, 0x53, 0x70,
  533. 0x6f, 0x74, 0x51, 0x74, 0x79, 0x18, 0x13, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x50, 0x72, 0x69,
  534. 0x63, 0x65, 0x64, 0x53, 0x70, 0x6f, 0x74, 0x51, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x12, 0x50, 0x72,
  535. 0x69, 0x63, 0x65, 0x64, 0x53, 0x70, 0x6f, 0x74, 0x51, 0x74, 0x79, 0x4e, 0x6f, 0x54, 0x61, 0x78,
  536. 0x18, 0x14, 0x20, 0x01, 0x28, 0x01, 0x52, 0x12, 0x50, 0x72, 0x69, 0x63, 0x65, 0x64, 0x53, 0x70,
  537. 0x6f, 0x74, 0x51, 0x74, 0x79, 0x4e, 0x6f, 0x54, 0x61, 0x78, 0x12, 0x22, 0x0a, 0x0c, 0x53, 0x70,
  538. 0x6f, 0x74, 0x61, 0x76, 0x67, 0x50, 0x72, 0x69, 0x63, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01,
  539. 0x52, 0x0c, 0x53, 0x70, 0x6f, 0x74, 0x61, 0x76, 0x67, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x16,
  540. 0x0a, 0x06, 0x53, 0x70, 0x6f, 0x74, 0x50, 0x4c, 0x18, 0x16, 0x20, 0x01, 0x28, 0x01, 0x52, 0x06,
  541. 0x53, 0x70, 0x6f, 0x74, 0x50, 0x4c, 0x12, 0x20, 0x0a, 0x0b, 0x4e, 0x65, 0x74, 0x45, 0x78, 0x70,
  542. 0x6f, 0x73, 0x75, 0x72, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x4e, 0x65, 0x74,
  543. 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x4e, 0x65, 0x74, 0x45,
  544. 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x61, 0x74, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28,
  545. 0x01, 0x52, 0x0f, 0x4e, 0x65, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x52, 0x61,
  546. 0x74, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x4c, 0x18, 0x19, 0x20,
  547. 0x01, 0x28, 0x01, 0x52, 0x07, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x50, 0x4c, 0x12, 0x1c, 0x0a, 0x09,
  548. 0x4f, 0x70, 0x65, 0x6e, 0x42, 0x61, 0x73, 0x69, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x01, 0x52,
  549. 0x09, 0x4f, 0x70, 0x65, 0x6e, 0x42, 0x61, 0x73, 0x69, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x43, 0x75,
  550. 0x72, 0x42, 0x61, 0x73, 0x69, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x01, 0x52, 0x08, 0x43, 0x75,
  551. 0x72, 0x42, 0x61, 0x73, 0x69, 0x73, 0x12, 0x24, 0x0a, 0x0d, 0x42, 0x61, 0x73, 0x69, 0x73, 0x43,
  552. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x4c, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x42,
  553. 0x61, 0x73, 0x69, 0x73, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x50, 0x4c, 0x12, 0x24, 0x0a, 0x0d,
  554. 0x4e, 0x65, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65, 0x50, 0x4c, 0x18, 0x1d, 0x20,
  555. 0x01, 0x28, 0x01, 0x52, 0x0d, 0x4e, 0x65, 0x74, 0x45, 0x78, 0x70, 0x6f, 0x73, 0x75, 0x72, 0x65,
  556. 0x50, 0x4c, 0x12, 0x24, 0x0a, 0x0d, 0x53, 0x70, 0x6f, 0x74, 0x55, 0x73, 0x65, 0x64, 0x51, 0x75,
  557. 0x6f, 0x74, 0x61, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x53, 0x70, 0x6f, 0x74, 0x55,
  558. 0x73, 0x65, 0x64, 0x51, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0d, 0x46, 0x75, 0x74, 0x75,
  559. 0x72, 0x65, 0x4f, 0x70, 0x65, 0x6e, 0x51, 0x74, 0x79, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x01, 0x52,
  560. 0x0d, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x4f, 0x70, 0x65, 0x6e, 0x51, 0x74, 0x79, 0x12, 0x2a,
  561. 0x0a, 0x10, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x6d, 0x6f, 0x75,
  562. 0x6e, 0x74, 0x18, 0x20, 0x20, 0x01, 0x28, 0x01, 0x52, 0x10, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65,
  563. 0x4f, 0x70, 0x65, 0x6e, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x75,
  564. 0x74, 0x75, 0x72, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x51, 0x74, 0x79, 0x18, 0x21, 0x20, 0x01,
  565. 0x28, 0x01, 0x52, 0x0e, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x51,
  566. 0x74, 0x79, 0x12, 0x2c, 0x0a, 0x11, 0x46, 0x75, 0x74, 0x75, 0x72, 0x65, 0x43, 0x6c, 0x6f, 0x73,
  567. 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x22, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11, 0x46,
  568. 0x75, 0x74, 0x75, 0x72, 0x65, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74,
  569. 0x12, 0x24, 0x0a, 0x0d, 0x53, 0x70, 0x6f, 0x74, 0x42, 0x75, 0x79, 0x41, 0x6d, 0x6f, 0x75, 0x6e,
  570. 0x74, 0x18, 0x23, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0d, 0x53, 0x70, 0x6f, 0x74, 0x42, 0x75, 0x79,
  571. 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 0x70, 0x6f, 0x74, 0x42, 0x75,
  572. 0x79, 0x51, 0x74, 0x79, 0x18, 0x24, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x53, 0x70, 0x6f, 0x74,
  573. 0x42, 0x75, 0x79, 0x51, 0x74, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x53, 0x70, 0x6f, 0x74, 0x53, 0x65,
  574. 0x6c, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x25, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0e,
  575. 0x53, 0x70, 0x6f, 0x74, 0x53, 0x65, 0x6c, 0x6c, 0x41, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x20,
  576. 0x0a, 0x0b, 0x53, 0x70, 0x6f, 0x74, 0x53, 0x65, 0x6c, 0x6c, 0x51, 0x74, 0x79, 0x18, 0x26, 0x20,
  577. 0x01, 0x28, 0x01, 0x52, 0x0b, 0x53, 0x70, 0x6f, 0x74, 0x53, 0x65, 0x6c, 0x6c, 0x51, 0x74, 0x79,
  578. 0x12, 0x28, 0x0a, 0x0a, 0x55, 0x70, 0x44, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x27,
  579. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x61, 0x74, 0x65, 0x52, 0x0a,
  580. 0x55, 0x70, 0x44, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x41, 0x53,
  581. 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x41, 0x53, 0x4e, 0x61,
  582. 0x6d, 0x65,
  583. }
  584. var (
  585. file_mtp2_proto_rawDescOnce sync.Once
  586. file_mtp2_proto_rawDescData = file_mtp2_proto_rawDesc
  587. )
  588. func file_mtp2_proto_rawDescGZIP() []byte {
  589. file_mtp2_proto_rawDescOnce.Do(func() {
  590. file_mtp2_proto_rawDescData = protoimpl.X.CompressGZIP(file_mtp2_proto_rawDescData)
  591. })
  592. return file_mtp2_proto_rawDescData
  593. }
  594. var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  595. var file_mtp2_proto_goTypes = []interface{}{
  596. (*TradeRule)(nil), // 0: pb.TradeRule
  597. (*TradeRuleInfoStruct)(nil), // 1: pb.TradeRuleInfoStruct
  598. (*Date)(nil), // 2: pb.Date
  599. (*Erms2ArbitrageStrategy)(nil), // 3: pb.Erms2ArbitrageStrategy
  600. }
  601. var file_mtp2_proto_depIdxs = []int32{
  602. 0, // 0: pb.TradeRuleInfoStruct.TradeRules:type_name -> pb.TradeRule
  603. 2, // 1: pb.Erms2ArbitrageStrategy.UpDatetime:type_name -> pb.Date
  604. 2, // [2:2] is the sub-list for method output_type
  605. 2, // [2:2] is the sub-list for method input_type
  606. 2, // [2:2] is the sub-list for extension type_name
  607. 2, // [2:2] is the sub-list for extension extendee
  608. 0, // [0:2] is the sub-list for field type_name
  609. }
  610. func init() { file_mtp2_proto_init() }
  611. func file_mtp2_proto_init() {
  612. if File_mtp2_proto != nil {
  613. return
  614. }
  615. if !protoimpl.UnsafeEnabled {
  616. file_mtp2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  617. switch v := v.(*TradeRule); i {
  618. case 0:
  619. return &v.state
  620. case 1:
  621. return &v.sizeCache
  622. case 2:
  623. return &v.unknownFields
  624. default:
  625. return nil
  626. }
  627. }
  628. file_mtp2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  629. switch v := v.(*TradeRuleInfoStruct); i {
  630. case 0:
  631. return &v.state
  632. case 1:
  633. return &v.sizeCache
  634. case 2:
  635. return &v.unknownFields
  636. default:
  637. return nil
  638. }
  639. }
  640. file_mtp2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  641. switch v := v.(*Date); i {
  642. case 0:
  643. return &v.state
  644. case 1:
  645. return &v.sizeCache
  646. case 2:
  647. return &v.unknownFields
  648. default:
  649. return nil
  650. }
  651. }
  652. file_mtp2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  653. switch v := v.(*Erms2ArbitrageStrategy); i {
  654. case 0:
  655. return &v.state
  656. case 1:
  657. return &v.sizeCache
  658. case 2:
  659. return &v.unknownFields
  660. default:
  661. return nil
  662. }
  663. }
  664. }
  665. type x struct{}
  666. out := protoimpl.TypeBuilder{
  667. File: protoimpl.DescBuilder{
  668. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  669. RawDescriptor: file_mtp2_proto_rawDesc,
  670. NumEnums: 0,
  671. NumMessages: 4,
  672. NumExtensions: 0,
  673. NumServices: 0,
  674. },
  675. GoTypes: file_mtp2_proto_goTypes,
  676. DependencyIndexes: file_mtp2_proto_depIdxs,
  677. MessageInfos: file_mtp2_proto_msgTypes,
  678. }.Build()
  679. File_mtp2_proto = out.File
  680. file_mtp2_proto_rawDesc = nil
  681. file_mtp2_proto_goTypes = nil
  682. file_mtp2_proto_depIdxs = nil
  683. }