gitee.com/quant1x/engine@v1.8.4/trader/account_test.go (about) 1 package trader 2 3 import ( 4 "fmt" 5 "gitee.com/quant1x/engine/config" 6 "testing" 7 ) 8 9 func TestCalculateAvailableFund(t *testing.T) { 10 id := 2 11 tradeRule := config.GetStrategyParameterByCode(uint64(id)) 12 if tradeRule == nil { 13 return 14 } 15 fmt.Println(tradeRule) 16 fund := CalculateAvailableFund(tradeRule) 17 fmt.Println(fund) 18 }