Files
gocryptotrader/exchanges/support.go
2023-02-22 15:23:18 +11:00

44 lines
658 B
Go

package exchange
import "strings"
// IsSupported returns whether or not a specific exchange is supported
func IsSupported(exchangeName string) bool {
for x := range Exchanges {
if strings.EqualFold(exchangeName, Exchanges[x]) {
return true
}
}
return false
}
// Exchanges stores a list of supported exchanges
var Exchanges = []string{
"binanceus",
"binance",
"bitfinex",
"bitflyer",
"bithumb",
"bitmex",
"bitstamp",
"bittrex",
"btc markets",
"btse",
"bybit",
"coinbasepro",
"coinut",
"exmo",
"gateio",
"gemini",
"hitbtc",
"huobi",
"itbit",
"kraken",
"lbank",
"okcoin international",
"okx",
"poloniex",
"yobit",
"zb",
}