pkg/types: support bitget, bybit on exhcange unmrashal

This commit is contained in:
Edwin 2023-11-16 14:00:59 +08:00
parent 5eb1ddb49a
commit a074f8c57a

View File

@ -26,13 +26,13 @@ func (n *ExchangeName) UnmarshalJSON(data []byte) error {
}
switch s {
case "max", "binance", "okex", "kucoin":
case "binance", "bitget", "bybit", "max", "okex", "kucoin":
*n = ExchangeName(s)
return nil
}
return fmt.Errorf("unknown or unsupported exchange name: %s, valid names are: max, binance, okex, kucoin", s)
return fmt.Errorf("unknown or unsupported exchange name: %s, valid names are: binance, bitget, bybit, max, okex, kucoin", s)
}
func (n ExchangeName) String() string {