|
@@ -909,6 +909,118 @@ func (x *ErmcpAreaExposure) GetUpdateTime() *Date {
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+// GoodsMarginCfgStruct 商品保证金配置
|
|
|
|
|
+type GoodsMarginCfgStruct struct {
|
|
|
|
|
+ state protoimpl.MessageState
|
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
+
|
|
|
|
|
+ GoodsID *uint32 `protobuf:"varint,1,opt,name=GoodsID" json:"GoodsID,omitempty"` // 商品ID
|
|
|
|
|
+ CustomerTypeID *uint32 `protobuf:"varint,2,opt,name=CustomerTypeID" json:"CustomerTypeID,omitempty"` // 投资者客户类型
|
|
|
|
|
+ MarginAlgorithm *uint32 `protobuf:"varint,3,opt,name=MarginAlgorithm" json:"MarginAlgorithm,omitempty"` // 保证金计算方式
|
|
|
|
|
+ MarketMarginValue *float64 `protobuf:"fixed64,4,opt,name=MarketMarginValue" json:"MarketMarginValue,omitempty"` // 即市保证金值
|
|
|
|
|
+ ReckonMarginValue *float64 `protobuf:"fixed64,5,opt,name=ReckonMarginValue" json:"ReckonMarginValue,omitempty"` // 结算保证金值
|
|
|
|
|
+ LockMarginValue *float64 `protobuf:"fixed64,6,opt,name=LockMarginValue" json:"LockMarginValue,omitempty"` // 锁仓保证金
|
|
|
|
|
+ RealMarginValue *float64 `protobuf:"fixed64,7,opt,name=RealMarginValue" json:"RealMarginValue,omitempty"` // 实付比例
|
|
|
|
|
+ RealMarginAlgorithm *uint32 `protobuf:"varint,8,opt,name=RealMarginAlgorithm" json:"RealMarginAlgorithm,omitempty"` // 实付保证金计算方式
|
|
|
|
|
+ IsDefault *uint32 `protobuf:"varint,9,opt,name=IsDefault" json:"IsDefault,omitempty"` // 是否默认标志位
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) Reset() {
|
|
|
|
|
+ *x = GoodsMarginCfgStruct{}
|
|
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
|
|
+ mi := &file_mtp2_proto_msgTypes[6]
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) String() string {
|
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (*GoodsMarginCfgStruct) ProtoMessage() {}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) ProtoReflect() protoreflect.Message {
|
|
|
|
|
+ mi := &file_mtp2_proto_msgTypes[6]
|
|
|
|
|
+ if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+ return ms
|
|
|
|
|
+ }
|
|
|
|
|
+ return mi.MessageOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// Deprecated: Use GoodsMarginCfgStruct.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*GoodsMarginCfgStruct) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_mtp2_proto_rawDescGZIP(), []int{6}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetGoodsID() uint32 {
|
|
|
|
|
+ if x != nil && x.GoodsID != nil {
|
|
|
|
|
+ return *x.GoodsID
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetCustomerTypeID() uint32 {
|
|
|
|
|
+ if x != nil && x.CustomerTypeID != nil {
|
|
|
|
|
+ return *x.CustomerTypeID
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetMarginAlgorithm() uint32 {
|
|
|
|
|
+ if x != nil && x.MarginAlgorithm != nil {
|
|
|
|
|
+ return *x.MarginAlgorithm
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetMarketMarginValue() float64 {
|
|
|
|
|
+ if x != nil && x.MarketMarginValue != nil {
|
|
|
|
|
+ return *x.MarketMarginValue
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetReckonMarginValue() float64 {
|
|
|
|
|
+ if x != nil && x.ReckonMarginValue != nil {
|
|
|
|
|
+ return *x.ReckonMarginValue
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetLockMarginValue() float64 {
|
|
|
|
|
+ if x != nil && x.LockMarginValue != nil {
|
|
|
|
|
+ return *x.LockMarginValue
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetRealMarginValue() float64 {
|
|
|
|
|
+ if x != nil && x.RealMarginValue != nil {
|
|
|
|
|
+ return *x.RealMarginValue
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetRealMarginAlgorithm() uint32 {
|
|
|
|
|
+ if x != nil && x.RealMarginAlgorithm != nil {
|
|
|
|
|
+ return *x.RealMarginAlgorithm
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *GoodsMarginCfgStruct) GetIsDefault() uint32 {
|
|
|
|
|
+ if x != nil && x.IsDefault != nil {
|
|
|
|
|
+ return *x.IsDefault
|
|
|
|
|
+ }
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
var File_mtp2_proto protoreflect.FileDescriptor
|
|
var File_mtp2_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
var file_mtp2_proto_rawDesc = []byte{
|
|
var file_mtp2_proto_rawDesc = []byte{
|
|
@@ -1098,7 +1210,32 @@ var file_mtp2_proto_rawDesc = []byte{
|
|
|
0x20, 0x01, 0x28, 0x01, 0x52, 0x0e, 0x4e, 0x65, 0x65, 0x64, 0x48, 0x65, 0x64, 0x67, 0x65, 0x52,
|
|
0x20, 0x01, 0x28, 0x01, 0x52, 0x0e, 0x4e, 0x65, 0x65, 0x64, 0x48, 0x65, 0x64, 0x67, 0x65, 0x52,
|
|
|
0x61, 0x74, 0x69, 0x6f, 0x12, 0x28, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,
|
|
0x61, 0x74, 0x69, 0x6f, 0x12, 0x28, 0x0a, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,
|
|
|
0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x61,
|
|
0x6d, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x61,
|
|
|
- 0x74, 0x65, 0x52, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65,
|
|
|
|
|
|
|
+ 0x74, 0x65, 0x52, 0x0a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x82,
|
|
|
|
|
+ 0x03, 0x0a, 0x14, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x43, 0x66,
|
|
|
|
|
+ 0x67, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73,
|
|
|
|
|
+ 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49,
|
|
|
|
|
+ 0x44, 0x12, 0x26, 0x0a, 0x0e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x54, 0x79, 0x70,
|
|
|
|
|
+ 0x65, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x43, 0x75, 0x73, 0x74, 0x6f,
|
|
|
|
|
+ 0x6d, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x49, 0x44, 0x12, 0x28, 0x0a, 0x0f, 0x4d, 0x61, 0x72,
|
|
|
|
|
+ 0x67, 0x69, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
|
+ 0x28, 0x0d, 0x52, 0x0f, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69,
|
|
|
|
|
+ 0x74, 0x68, 0x6d, 0x12, 0x2c, 0x0a, 0x11, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x72,
|
|
|
|
|
+ 0x67, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11,
|
|
|
|
|
+ 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x75,
|
|
|
|
|
+ 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x52, 0x65, 0x63, 0x6b, 0x6f, 0x6e, 0x4d, 0x61, 0x72, 0x67, 0x69,
|
|
|
|
|
+ 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11, 0x52, 0x65,
|
|
|
|
|
+ 0x63, 0x6b, 0x6f, 0x6e, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
|
|
|
|
|
+ 0x28, 0x0a, 0x0f, 0x4c, 0x6f, 0x63, 0x6b, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x56, 0x61, 0x6c,
|
|
|
|
|
+ 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0f, 0x4c, 0x6f, 0x63, 0x6b, 0x4d, 0x61,
|
|
|
|
|
+ 0x72, 0x67, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x52, 0x65, 0x61,
|
|
|
|
|
+ 0x6c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01,
|
|
|
|
|
+ 0x28, 0x01, 0x52, 0x0f, 0x52, 0x65, 0x61, 0x6c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x56, 0x61,
|
|
|
|
|
+ 0x6c, 0x75, 0x65, 0x12, 0x30, 0x0a, 0x13, 0x52, 0x65, 0x61, 0x6c, 0x4d, 0x61, 0x72, 0x67, 0x69,
|
|
|
|
|
+ 0x6e, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d,
|
|
|
|
|
+ 0x52, 0x13, 0x52, 0x65, 0x61, 0x6c, 0x4d, 0x61, 0x72, 0x67, 0x69, 0x6e, 0x41, 0x6c, 0x67, 0x6f,
|
|
|
|
|
+ 0x72, 0x69, 0x74, 0x68, 0x6d, 0x12, 0x1c, 0x0a, 0x09, 0x49, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75,
|
|
|
|
|
+ 0x6c, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x49, 0x73, 0x44, 0x65, 0x66, 0x61,
|
|
|
|
|
+ 0x75, 0x6c, 0x74,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -1113,7 +1250,7 @@ func file_mtp2_proto_rawDescGZIP() []byte {
|
|
|
return file_mtp2_proto_rawDescData
|
|
return file_mtp2_proto_rawDescData
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
|
|
|
|
|
+var file_mtp2_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
|
|
var file_mtp2_proto_goTypes = []interface{}{
|
|
var file_mtp2_proto_goTypes = []interface{}{
|
|
|
(*TradeRule)(nil), // 0: pb.TradeRule
|
|
(*TradeRule)(nil), // 0: pb.TradeRule
|
|
|
(*TradeRuleInfoStruct)(nil), // 1: pb.TradeRuleInfoStruct
|
|
(*TradeRuleInfoStruct)(nil), // 1: pb.TradeRuleInfoStruct
|
|
@@ -1121,6 +1258,7 @@ var file_mtp2_proto_goTypes = []interface{}{
|
|
|
(*Erms2ArbitrageStrategy)(nil), // 3: pb.Erms2ArbitrageStrategy
|
|
(*Erms2ArbitrageStrategy)(nil), // 3: pb.Erms2ArbitrageStrategy
|
|
|
(*ErmcpAreaSpot)(nil), // 4: pb.ErmcpAreaSpot
|
|
(*ErmcpAreaSpot)(nil), // 4: pb.ErmcpAreaSpot
|
|
|
(*ErmcpAreaExposure)(nil), // 5: pb.ErmcpAreaExposure
|
|
(*ErmcpAreaExposure)(nil), // 5: pb.ErmcpAreaExposure
|
|
|
|
|
+ (*GoodsMarginCfgStruct)(nil), // 6: pb.GoodsMarginCfgStruct
|
|
|
}
|
|
}
|
|
|
var file_mtp2_proto_depIdxs = []int32{
|
|
var file_mtp2_proto_depIdxs = []int32{
|
|
|
0, // 0: pb.TradeRuleInfoStruct.TradeRules:type_name -> pb.TradeRule
|
|
0, // 0: pb.TradeRuleInfoStruct.TradeRules:type_name -> pb.TradeRule
|
|
@@ -1212,6 +1350,18 @@ func file_mtp2_proto_init() {
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ file_mtp2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
+ switch v := v.(*GoodsMarginCfgStruct); i {
|
|
|
|
|
+ case 0:
|
|
|
|
|
+ return &v.state
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ return &v.sizeCache
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ return &v.unknownFields
|
|
|
|
|
+ default:
|
|
|
|
|
+ return nil
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
type x struct{}
|
|
type x struct{}
|
|
|
out := protoimpl.TypeBuilder{
|
|
out := protoimpl.TypeBuilder{
|
|
@@ -1219,7 +1369,7 @@ func file_mtp2_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_mtp2_proto_rawDesc,
|
|
RawDescriptor: file_mtp2_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
NumEnums: 0,
|
|
|
- NumMessages: 6,
|
|
|
|
|
|
|
+ NumMessages: 7,
|
|
|
NumExtensions: 0,
|
|
NumExtensions: 0,
|
|
|
NumServices: 0,
|
|
NumServices: 0,
|
|
|
},
|
|
},
|