types: update SupportedExchanges slice with correct types

This commit is contained in:
c9s 2022-06-02 11:43:47 +08:00
parent c4f8b11f98
commit e11e0c97b8
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -48,7 +48,14 @@ const (
ExchangeBacktest ExchangeName = "backtest"
)
var SupportedExchanges = []ExchangeName{"binance", "max", "ftx", "okex", "kucoin"}
var SupportedExchanges = []ExchangeName{
ExchangeMax,
ExchangeBinance,
ExchangeFTX,
ExchangeOKEx,
ExchangeKucoin,
// note: we are not using "backtest"
}
func ValidExchangeName(a string) (ExchangeName, error) {
switch strings.ToLower(a) {