mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
* exchanges/Bittrex: Remove exchange implementation * Kucoin: Fix TestProcessMarketSnapshot after pair removal update * Kucoin: Fix race due to duplicate setupWS call Unleash your inner Max Verstappen * Kucoin: Actually test spot/margin market snapshot replication
44 lines
643 B
Go
44 lines
643 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{
|
|
"binance",
|
|
"binanceus",
|
|
"bitfinex",
|
|
"bithumb",
|
|
"bitflyer",
|
|
"bitmex",
|
|
"bitstamp",
|
|
"btc markets",
|
|
"btse",
|
|
"bybit",
|
|
"coinbasepro",
|
|
"coinut",
|
|
"exmo",
|
|
"gateio",
|
|
"gemini",
|
|
"hitbtc",
|
|
"huobi",
|
|
"itbit",
|
|
"kraken",
|
|
"kucoin",
|
|
"lbank",
|
|
"okcoin",
|
|
"okx",
|
|
"poloniex",
|
|
"yobit",
|
|
"zb",
|
|
}
|