Skip to content

Commit

Permalink
refactor: fix TestExchangeInfo
Browse files Browse the repository at this point in the history
Signed-off-by: thanhpp <thanhphanphu18@gmail.com>
  • Loading branch information
thanhpp committed Apr 8, 2024
1 parent e3e26b8 commit 7d0b724
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion v2/exchange_info_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7d0b724

Please sign in to comment.