1、暂存
This commit is contained in:
@ -20,6 +20,7 @@ type TradeSet struct {
|
||||
PriceDigit int `db:"pricecdigit" json:"pricecdigit"` //价格小数点位数
|
||||
Currency string `db:"currency" json:"currency"` //法币
|
||||
Coin string `db:"coin" json:"coin"` //币种
|
||||
Symbol string `db:"symbol" json:"symbol"` //交易对
|
||||
PriceChange float64 `db:"pricechange" json:"pricechange"` //价格波动价位
|
||||
MinBuyVal float64 `db:"minbuyval"` //最小下单金额
|
||||
OpenPrice float64 `db:"openprice"` //开盘价格
|
||||
|
||||
@ -31,3 +31,28 @@ type LinePreOrderPositioinDelReq struct {
|
||||
ApiId int `json:"apiId"` //apiid
|
||||
ExchangeType string `json:"exchangeType"` //交易所类型
|
||||
}
|
||||
|
||||
// 待触发加仓单
|
||||
type AddPositionList struct {
|
||||
Id int `json:"id"` //订单id
|
||||
Pid int `json:"pid"` //父级id
|
||||
MainId int `json:"mainId"` //主单Id
|
||||
ApiId int `json:"apiId"` //触发账户id
|
||||
Symbol string `json:"symbol"` //交易对
|
||||
Price decimal.Decimal `json:"price"` //触发价
|
||||
Side string `json:"side"` //买卖方向
|
||||
SymbolType int `json:"type" comment:"交易对类别 1-现货 2-合约"`
|
||||
OrderSn string `json:"prderSn"`
|
||||
}
|
||||
|
||||
type ReduceListItem struct {
|
||||
Id int `json:"id"`
|
||||
ApiId int `json:"apiId"`
|
||||
MainId int `json:"mainId"`
|
||||
Pid int `json:"pid"`
|
||||
Symbol string `json:"symbol"`
|
||||
Price decimal.Decimal `json:"price"`
|
||||
Side string `json:"side"`
|
||||
Num decimal.Decimal `json:"num"`
|
||||
OrderSn string `json:"orderSn"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user