types: fix const type declaration

This commit is contained in:
c9s 2022-06-02 11:42:38 +08:00
parent 5527b3c48a
commit c4f8b11f98
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -40,12 +40,12 @@ func (n ExchangeName) String() string {
} }
const ( const (
ExchangeMax = ExchangeName("max") ExchangeMax ExchangeName = "max"
ExchangeBinance = ExchangeName("binance") ExchangeBinance ExchangeName = "binance"
ExchangeFTX = ExchangeName("ftx") ExchangeFTX ExchangeName = "ftx"
ExchangeOKEx = ExchangeName("okex") ExchangeOKEx ExchangeName = "okex"
ExchangeKucoin = ExchangeName("kucoin") ExchangeKucoin ExchangeName = "kucoin"
ExchangeBacktest = ExchangeName("backtest") ExchangeBacktest ExchangeName = "backtest"
) )
var SupportedExchanges = []ExchangeName{"binance", "max", "ftx", "okex", "kucoin"} var SupportedExchanges = []ExchangeName{"binance", "max", "ftx", "okex", "kucoin"}