diff --git a/pkg/bbgo/environment.go b/pkg/bbgo/environment.go index a49aefde2..b397d1002 100644 --- a/pkg/bbgo/environment.go +++ b/pkg/bbgo/environment.go @@ -147,7 +147,7 @@ func (environ *Environment) AddExchangesFromSessionConfig(sessions map[string]Se return fmt.Errorf("exchange %s does not support margin", exchangeName) } - marginExchange.UseIsolatedMargin(sessionConfig.Margin) + marginExchange.UseIsolatedMargin(sessionConfig.IsolatedMarginSymbol) } environ.AddExchange(sessionName, exchange)