1、减仓后减仓
This commit is contained in:
@ -57,14 +57,15 @@ func (s *LineSystemSettingInsertReq) GetId() interface{} {
|
||||
}
|
||||
|
||||
type LineSystemSettingUpdateReq struct {
|
||||
Id int `uri:"id" comment:"id"` // id
|
||||
Time int64 `json:"time" comment:"导入:挂单时长达到时间后失效"`
|
||||
BatchTime int64 `json:"batchTime" comment:"批量:挂单时长达到时间后失效"`
|
||||
ProfitRate string `json:"profitRate" comment:"平仓盈利比例"`
|
||||
CoverOrderTypeBRate string `json:"coverOrderTypeBRate" comment:"b账户限价补单的买入百分比"`
|
||||
StopLossPremium decimal.Decimal `json:"stopLossPremium" comment:"限价止损溢价"`
|
||||
AddPositionPremium decimal.Decimal `json:"addPositionPremium" comment:"限价加仓溢价"`
|
||||
ReducePremium decimal.Decimal `json:"reducePremium" comment:"限价减仓溢价"`
|
||||
Id int `uri:"id" comment:"id"` // id
|
||||
Time int64 `json:"time" comment:"导入:挂单时长达到时间后失效"`
|
||||
BatchTime int64 `json:"batchTime" comment:"批量:挂单时长达到时间后失效"`
|
||||
ProfitRate string `json:"profitRate" comment:"平仓盈利比例"`
|
||||
CoverOrderTypeBRate string `json:"coverOrderTypeBRate" comment:"b账户限价补单的买入百分比"`
|
||||
StopLossPremium decimal.Decimal `json:"stopLossPremium" comment:"限价止损溢价"`
|
||||
AddPositionPremium decimal.Decimal `json:"addPositionPremium" comment:"限价加仓溢价"`
|
||||
ReducePremium decimal.Decimal `json:"reducePremium" comment:"限价减仓溢价"`
|
||||
ReduceEarlyTriggerPercent decimal.Decimal `json:"reduceEarlyTriggerPercent" comment:"减仓提前触发百分比"`
|
||||
common.ControlBy
|
||||
}
|
||||
|
||||
@ -79,6 +80,7 @@ func (s *LineSystemSettingUpdateReq) Generate(model *models.LineSystemSetting) {
|
||||
model.StopLossPremium = s.StopLossPremium
|
||||
model.AddPositionPremium = s.AddPositionPremium
|
||||
model.ReducePremium = s.ReducePremium
|
||||
model.ReduceEarlyTriggerPercent = s.ReduceEarlyTriggerPercent
|
||||
model.UpdateBy = s.UpdateBy // 添加这而,需要记录是被谁更新的
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user