Skip to content

Commit

Permalink
2.2.6 - Fixed CryptoCompare add fiat values / Removed successful upda…
Browse files Browse the repository at this point in the history
…te dialog.
  • Loading branch information
transilvlad committed May 19, 2021
1 parent b177e62 commit 22f5fb3
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ _Please do keep in mind at this point there are a lot of differences between thi
- Version 2.2.1
- Update ATH every time it's lower than 24h high.

- Version 2.2.2-5
- Version 2.2.2-6
- Updated sheet formulas.
- Added error returning to UI.
- Limit error return to a single API.
- Fixed CryptoCompare add fiat values
- Removed successful update dialog.


## Planned updates
Expand Down
2 changes: 1 addition & 1 deletion source/APICryptoCompare.gs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function cryptoCoins(ui, key, fiat, tickers) {
/**
* Gets coin vs fiat exchnage rate from CryptoCompare API for given date.
*/
function cryptoRate(key, fiat, coin, date) {
function cryptoRate(ui, key, fiat, coin, date) {
enableCache();
var json = importJson("https://min-api.cryptocompare.com/data/v2/histohour?api_key=" + key + "&fsym=" + coin + "&tsym=" + fiat + "&toTs=" + (date.getTime() / 1000) + "&limit=1&extraParams=cryptoBooks2","Data.Data.0.close");

Expand Down
2 changes: 0 additions & 2 deletions source/CoinsUpdate.gs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,5 @@ function updateCoins(ui) {
}
}
}

ui.alert('Coins updated!');
}
}
2 changes: 0 additions & 2 deletions source/FiatValues.gs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ function addFiatValues(ui) {
setFiat(ui, sheet, coins, fiat, stable, date, fee_count, fee_coin, "I", "J", "K", i + 1);
}
}

ui.alert('Finished adding FIAT values!');
}

/**
Expand Down
2 changes: 0 additions & 2 deletions source/FluxUpdate.gs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ function updateFlux(ui) {

if((r - 2) == days) break;
}

ui.alert('Flux updated!');
} else {
ui.alert('Flux update failed!');
}
Expand Down

0 comments on commit 22f5fb3

Please sign in to comment.