Skip to content

Commit

Permalink
same order for 24h_change as for price
Browse files Browse the repository at this point in the history
  • Loading branch information
cipig committed Dec 16, 2021
1 parent c2cf0f8 commit 3479e77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions external_services/generic_price_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ func RetrieveSparkline7D(coin string) (*[]float64, string, string) {
func RetrievePercentChange24h(coin string) (string, string, string) {
_, date, change24h, provider := BinanceRetrieveUSDValIfSupported(coin)
if change24h == "0" {
change24h, date, provider = CoingeckoGetChange24h(coin)
change24h, date, provider = NomicsGetChange24h(coin)
}

if change24h == "0" {
change24h, date, provider = NomicsGetChange24h(coin)
change24h, date, provider = CoingeckoGetChange24h(coin)
}

if change24h == "0" {
Expand Down

0 comments on commit 3479e77

Please sign in to comment.