From a074f8c57acf82ffbd7137a759d105432f7000ff Mon Sep 17 00:00:00 2001 From: Edwin Date: Thu, 16 Nov 2023 14:00:59 +0800 Subject: [PATCH] pkg/types: support bitget, bybit on exhcange unmrashal --- pkg/types/exchange.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/types/exchange.go b/pkg/types/exchange.go index 70e3c1379..06491224f 100644 --- a/pkg/types/exchange.go +++ b/pkg/types/exchange.go @@ -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 {