1
This commit is contained in:
@ -58,7 +58,7 @@ func (s *SpiderListenSymbolInsertReq) Generate(model *models.SpiderListenSymbol)
|
||||
|
||||
model.Coin = strings.ToUpper(s.Coin)
|
||||
model.Currency = strings.ToUpper(s.Currency)
|
||||
model.Symbol = s.Coin + s.Currency
|
||||
model.Symbol = model.Coin + model.Currency
|
||||
model.CreateBy = s.CreateBy // 添加这而,需要记录是被谁创建的
|
||||
}
|
||||
|
||||
@ -94,7 +94,7 @@ func (s *SpiderListenSymbolUpdateReq) Generate(model *models.SpiderListenSymbol)
|
||||
// model.Symbol = s.Symbol
|
||||
model.Coin = strings.ToUpper(s.Coin)
|
||||
model.Currency = strings.ToUpper(s.Currency)
|
||||
model.Symbol = s.Coin + s.Currency
|
||||
model.Symbol = model.Coin + model.Currency
|
||||
model.UpdateBy = s.UpdateBy // 添加这而,需要记录是被谁更新的
|
||||
}
|
||||
|
||||
|
||||
@ -27,8 +27,6 @@ import (
|
||||
"github.com/bytedance/sonic"
|
||||
"gorm.io/driver/mysql"
|
||||
|
||||
"github.com/shopspring/decimal"
|
||||
|
||||
"github.com/go-admin-team/go-admin-core/sdk"
|
||||
"gorm.io/gorm"
|
||||
|
||||
@ -314,8 +312,8 @@ func (t LimitOrderTimeoutDuration) ReFutOrderPlace(db *gorm.DB, order models.Lin
|
||||
Price: utility.StringToDecimal(order.Price),
|
||||
SideType: "MARKET",
|
||||
OpenOrder: 0,
|
||||
Profit: decimal.Decimal{},
|
||||
StopPrice: utility.StringToDecimal(order.Price),
|
||||
Profit: utility.StringToDecimal(order.Price),
|
||||
OrderType: orderType,
|
||||
NewClientOrderId: utility.Int64ToString(newClientOrderId),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user