mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
fix position test
This commit is contained in:
parent
d8fad8250c
commit
0530809834
|
@ -23,7 +23,7 @@ func Test_ModifiedQuantity(t *testing.T) {
|
|||
BaseCurrency: "BTC",
|
||||
},
|
||||
}
|
||||
orderExecutor := bbgo.NewGeneralOrderExecutor(nil, "BTCUSDT", "strategy", "strategy-1", pos)
|
||||
orderExecutor := bbgo.NewGeneralOrderExecutor(&bbgo.ExchangeSession{}, "BTCUSDT", "strategy", "strategy-1", pos)
|
||||
riskControl := NewPositionRiskControl(orderExecutor, fixedpoint.NewFromInt(10), fixedpoint.NewFromInt(2))
|
||||
|
||||
cases := []struct {
|
||||
|
|
Loading…
Reference in New Issue
Block a user