exchange: remove subAccount var

This commit is contained in:
c9s 2023-05-16 19:26:05 +08:00
parent ad502f67e9
commit 70ed672e6f
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -31,6 +31,9 @@ func New(n types.ExchangeName, key, secret, passphrase string) (types.Exchange,
case types.ExchangeKucoin: case types.ExchangeKucoin:
return kucoin.New(key, secret, passphrase), nil return kucoin.New(key, secret, passphrase), nil
// case types.ExchangeBitget:
// return bitget.New(key, secret, passphrase), nil
default: default:
return nil, fmt.Errorf("unsupported exchange: %v", n) return nil, fmt.Errorf("unsupported exchange: %v", n)
@ -53,6 +56,5 @@ func NewWithEnvVarPrefix(n types.ExchangeName, varPrefix string) (types.Exchange
} }
passphrase := os.Getenv(varPrefix + "_API_PASSPHRASE") passphrase := os.Getenv(varPrefix + "_API_PASSPHRASE")
subAccount := os.Getenv(varPrefix + "_SUBACCOUNT")
return New(n, key, secret, passphrase) return New(n, key, secret, passphrase)
} }