mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
grid2: fix TestStrategy_checkMinimalQuoteInvestment
This commit is contained in:
parent
b0381fd927
commit
46d1207adb
|
@ -471,7 +471,7 @@ func TestStrategy_checkMinimalQuoteInvestment(t *testing.T) {
|
|||
s.QuoteInvestment = number(10_000)
|
||||
s.GridNum = 10
|
||||
minQuoteInvestment := calculateMinimalQuoteInvestment(s.Market, s.LowerPrice, s.UpperPrice, s.GridNum)
|
||||
assert.Equal(t, "20", minQuoteInvestment.String())
|
||||
assert.Equal(t, "200", minQuoteInvestment.String())
|
||||
|
||||
err := s.checkMinimalQuoteInvestment()
|
||||
assert.NoError(t, err)
|
||||
|
|
Loading…
Reference in New Issue
Block a user