mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
pkg/types: support bitget, bybit on exhcange unmrashal
This commit is contained in:
parent
5eb1ddb49a
commit
a074f8c57a
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user