package dto

import "github.com/shopspring/decimal"

type LineOrderReduceStrategyResp struct {
	MainId  int                               `json:"mainId" comment:"主单id"`
	OrderId int                               `json:"orderId" comment:"减仓单id"`
	Symbol  string                            `json:"symbol"`
	Side    string                            `json:"side" comment:"BUY SELL"`
	Items   []LineOrderReduceStrategyRespItem `json:"items"`
}

// 减仓节点
type LineOrderReduceStrategyRespItem struct {
	Price        decimal.Decimal `json:"p" comment:"下单价"`
	Num          decimal.Decimal `json:"n" comment:"下单数量"`
	TriggerPrice decimal.Decimal `json:"t" comment:"触发价"`
	LossPercent  decimal.Decimal `json:"l" comment:"亏损百分比"`
	OrderType    string          `json:"o" comment:"订单类型 LIMIT-限价 MARKET-市价"`
	Actived      bool            `json:"a" comment:"是否触发 "`
}
