From e11e0c97b8c0dd7d2c17e287d0df503b33e55687 Mon Sep 17 00:00:00 2001 From: c9s Date: Thu, 2 Jun 2022 11:43:47 +0800 Subject: [PATCH] types: update SupportedExchanges slice with correct types --- pkg/types/exchange.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/types/exchange.go b/pkg/types/exchange.go index 74a1017d2..b7c1b64f4 100644 --- a/pkg/types/exchange.go +++ b/pkg/types/exchange.go @@ -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) {