Skip to content

Commit

Permalink
Merge pull request #29 from cipig/fix
Browse files Browse the repository at this point in the history
same order for 24h_change as for price
  • Loading branch information
Milerius authored Dec 16, 2021
2 parents c2cf0f8 + 3479e77 commit 75148ba
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 75148ba

Please sign in to comment.