mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
1) Although gRPC does server side validation currently, validate basic things on gctcli before relaying the request to the gRPC server 2) Make pair format consistent for the exchange sycner 3) Fix OKEX ticker failure due to thinking futures info is authenticated 4) Start filling out config tests 5) Extend timeout for golangci config so that AppVeyor has time to complete (Travis is fine) 6) Add IsSupported exchange func for easy lookup
46 lines
688 B
Go
46 lines
688 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{
|
|
"anx",
|
|
"binance",
|
|
"bitfinex",
|
|
"bitflyer",
|
|
"bithumb",
|
|
"bitmex",
|
|
"bitstamp",
|
|
"bittrex",
|
|
"btc markets",
|
|
"btse",
|
|
"coinbasepro",
|
|
"coinut",
|
|
"exmo",
|
|
"gateio",
|
|
"gemini",
|
|
"hitbtc",
|
|
"huobi",
|
|
"huobihadax",
|
|
"itbit",
|
|
"kraken",
|
|
"lakebtc",
|
|
"lbank",
|
|
"localbitcoins",
|
|
"okcoin international",
|
|
"okex",
|
|
"poloniex",
|
|
"yobit",
|
|
"zb",
|
|
}
|