mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
exchange: remove subAccount var
This commit is contained in:
parent
ad502f67e9
commit
70ed672e6f
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user