mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
types: update SupportedExchanges slice with correct types
This commit is contained in:
parent
c4f8b11f98
commit
e11e0c97b8
|
@ -48,7 +48,14 @@ const (
|
||||||
ExchangeBacktest ExchangeName = "backtest"
|
ExchangeBacktest ExchangeName = "backtest"
|
||||||
)
|
)
|
||||||
|
|
||||||
var SupportedExchanges = []ExchangeName{"binance", "max", "ftx", "okex", "kucoin"}
|
var SupportedExchanges = []ExchangeName{
|
||||||
|
ExchangeMax,
|
||||||
|
ExchangeBinance,
|
||||||
|
ExchangeFTX,
|
||||||
|
ExchangeOKEx,
|
||||||
|
ExchangeKucoin,
|
||||||
|
// note: we are not using "backtest"
|
||||||
|
}
|
||||||
|
|
||||||
func ValidExchangeName(a string) (ExchangeName, error) {
|
func ValidExchangeName(a string) (ExchangeName, error) {
|
||||||
switch strings.ToLower(a) {
|
switch strings.ToLower(a) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user