mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
pass isolated margin symbol
This commit is contained in:
parent
f505c0e2c6
commit
f8a9610222
|
@ -147,7 +147,7 @@ func (environ *Environment) AddExchangesFromSessionConfig(sessions map[string]Se
|
||||||
return fmt.Errorf("exchange %s does not support margin", exchangeName)
|
return fmt.Errorf("exchange %s does not support margin", exchangeName)
|
||||||
}
|
}
|
||||||
|
|
||||||
marginExchange.UseIsolatedMargin(sessionConfig.Margin)
|
marginExchange.UseIsolatedMargin(sessionConfig.IsolatedMarginSymbol)
|
||||||
}
|
}
|
||||||
|
|
||||||
environ.AddExchange(sessionName, exchange)
|
environ.AddExchange(sessionName, exchange)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user