mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 00:05:15 +00:00
*: fix lint
This commit is contained in:
parent
50bfd8ee0e
commit
412d0e0558
2
pkg/cache/cache_test.go
vendored
2
pkg/cache/cache_test.go
vendored
|
@ -100,4 +100,4 @@ func Test_loadMarketsFromMem(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
globalMarketMemCache = newMarketMemCache() // reset the global cache
|
globalMarketMemCache = newMarketMemCache() // reset the global cache
|
||||||
}
|
}
|
||||||
|
|
|
@ -524,7 +524,7 @@ func TestTradeEvent_toGlobalTrade(t *testing.T) {
|
||||||
OrderId: fmt.Sprintf("%d", expTrade.OrderID),
|
OrderId: fmt.Sprintf("%d", expTrade.OrderID),
|
||||||
OrderLinkId: "1691419101980",
|
OrderLinkId: "1691419101980",
|
||||||
Category: "spot",
|
Category: "spot",
|
||||||
Symbol: fmt.Sprintf("%s", expTrade.Symbol),
|
Symbol: expTrade.Symbol,
|
||||||
ExecId: fmt.Sprintf("%d", expTrade.ID),
|
ExecId: fmt.Sprintf("%d", expTrade.ID),
|
||||||
ExecPrice: expTrade.Price,
|
ExecPrice: expTrade.Price,
|
||||||
ExecQty: expTrade.Quantity,
|
ExecQty: expTrade.Quantity,
|
||||||
|
|
|
@ -14,7 +14,7 @@ func TestGetMigrationsMap(t *testing.T) {
|
||||||
|
|
||||||
func TestMergeMigrationsMap(t *testing.T) {
|
func TestMergeMigrationsMap(t *testing.T) {
|
||||||
MergeMigrationsMap(map[int64]*rockhopper.Migration{
|
MergeMigrationsMap(map[int64]*rockhopper.Migration{
|
||||||
2: &rockhopper.Migration{},
|
2: {},
|
||||||
3: &rockhopper.Migration{},
|
3: {},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ func TestGetMigrationsMap(t *testing.T) {
|
||||||
|
|
||||||
func TestMergeMigrationsMap(t *testing.T) {
|
func TestMergeMigrationsMap(t *testing.T) {
|
||||||
MergeMigrationsMap(map[int64]*rockhopper.Migration{
|
MergeMigrationsMap(map[int64]*rockhopper.Migration{
|
||||||
2: &rockhopper.Migration{},
|
2: {},
|
||||||
3: &rockhopper.Migration{},
|
3: {},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -484,7 +484,7 @@ func (s *Strategy) executePath(ctx context.Context, session *bbgo.ExchangeSessio
|
||||||
}
|
}
|
||||||
|
|
||||||
func notifyUsdPnL(profit fixedpoint.Value) {
|
func notifyUsdPnL(profit fixedpoint.Value) {
|
||||||
var title = fmt.Sprintf("Triangular Sum PnL ~= ")
|
var title = "Triangular Sum PnL ~= "
|
||||||
title += style.PnLEmojiSimple(profit) + " "
|
title += style.PnLEmojiSimple(profit) + " "
|
||||||
title += style.PnLSignString(profit) + " USD"
|
title += style.PnLSignString(profit) + " USD"
|
||||||
bbgo.Notify(title)
|
bbgo.Notify(title)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user