mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +00:00
* starting public endpoints * Adding public endpoints * added public spot market endpoints * websocket subscriptions updates * websocket push data handlers completing * linter fix * Added funding private endpoints * Adding authenticated account endpoints * Added fiat and OTC-RFQ authenticated endpoints * trading authenticated endpoints * completing trade endpoints and add public wrapper endpoints * Authenticated wrapper functions and corresponding unit test * Adding authenticated websocket endpoint and fixing wrapper functions * Documentation and exchange websocket update * update websocket orderbook checksum handling * linter issues fix and unit test update * remove invalid orderbook endpoint and unit test * Documentation, handlers, and model types update * minot fix * Minor fixes * Updating unit tests and added missing endpoints * Add missing credential check * Minor unit test fixes * fix minor linter issue * add snaphot test unit test * Fix on update checksum and documentation update * update exchange, add UpdateOrderExecutionLimits, and update documentation * Minor fix on tickers fetching * Minor websocket fix and smaill unit tests * Minor websocket and naming fixes * uncomment default channels * Fix type and unit test issues * websocket channels and data handling update * Update Advanced-Algo websocket handling and minor fixes * documentation and minor code fixes * Fix name changes * documentation contribution update * intervalToString method update * fix exchange_wrapper_standard tests * Fix minor issues based on exchange_wrapper_standards_test * Fix wrapper extended candlestick check * websocket orders fetching error check method update * Exchange name check and change * docs: Add missing contributors --------- Co-authored-by: Adrian Gallagher <adrian.gallagher@thrasher.io>
44 lines
644 B
Go
44 lines
644 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",
|
|
"bittrex",
|
|
"btc markets",
|
|
"btse",
|
|
"bybit",
|
|
"coinbasepro",
|
|
"coinut",
|
|
"exmo",
|
|
"gateio",
|
|
"gemini",
|
|
"hitbtc",
|
|
"huobi",
|
|
"itbit",
|
|
"kraken",
|
|
"lbank",
|
|
"okcoin",
|
|
"okx",
|
|
"poloniex",
|
|
"yobit",
|
|
"zb",
|
|
}
|