diff --git a/v2/exchange_info_service.go b/v2/exchange_info_service.go index 8d10082a..587f5728 100644 --- a/v2/exchange_info_service.go +++ b/v2/exchange_info_service.go @@ -255,7 +255,12 @@ func (s *Symbol) NotionalFilter() *NotionalFilter { f.ApplyMaxToMarket = i.(bool) } if i, ok := filter["avgPriceMins"]; ok { - f.AvgPriceMins = int(i.(float64)) + switch v := i.(type) { + case float64: + f.AvgPriceMins = int(v) + case int: + f.AvgPriceMins = v + } } return f }