mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
* Remove LakeBTC exchange * Remove more LakeBTC remnants * Update LBank comment * go mod tiderinos * Remove LakeBTC from backup.json file
45 lines
674 B
Go
45 lines
674 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",
|
|
"bitfinex",
|
|
"bitflyer",
|
|
"bithumb",
|
|
"bitmex",
|
|
"bitstamp",
|
|
"bittrex",
|
|
"btc markets",
|
|
"btse",
|
|
"coinbasepro",
|
|
"coinbene",
|
|
"coinut",
|
|
"exmo",
|
|
"ftx",
|
|
"gateio",
|
|
"gemini",
|
|
"hitbtc",
|
|
"huobi",
|
|
"itbit",
|
|
"kraken",
|
|
"lbank",
|
|
"localbitcoins",
|
|
"okcoin international",
|
|
"okex",
|
|
"poloniex",
|
|
"yobit",
|
|
"zb",
|
|
}
|