mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-18 09:54:35 +08:00
Unify agent routing and tighten exchange config
This commit is contained in:
@@ -1295,6 +1295,9 @@ func (a *Agent) loadTraderOptions(storeUserID string) []traderSkillOption {
|
||||
exchangeNames := map[string]string{}
|
||||
if exchanges, err := a.store.Exchange().List(storeUserID); err == nil {
|
||||
for _, exchange := range exchanges {
|
||||
if !store.IsVisibleExchange(exchange) {
|
||||
continue
|
||||
}
|
||||
name := strings.TrimSpace(exchange.AccountName)
|
||||
if name == "" {
|
||||
name = strings.TrimSpace(exchange.ExchangeType)
|
||||
|
||||
Reference in New Issue
Block a user