Files
gocryptotrader/exchanges/support.go
Adrian Gallagher c785ae73a7 exchanges: Remove FTX implementation and fix minor test issues (#1100)
* exchanges: Start removal of FTX

* Get tests happy again

* okx: improve logic and add basic coverage

* Fix linterino

* Round 2 plus rm useless assignment in test

* Fix exchange_wrapper_issues test error

* Fix nitters

* Address nitters
2023-01-25 16:40:04 +11:00

45 lines
676 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",
"localbitcoins",
"okcoin international",
"okx",
"poloniex",
"yobit",
"zb",
}