Branch: Insight and Other Changes
Disabled Currency Conversion due to outdated bitcoinaverage API support.
Object/.JS = currency-manager.js
Need to support new API:
https://apiv2.bitcoinaverage.com/indices/global/ticker/short?crypto=BTC&fiat=ISK
note this API has a limit of 100 (i think) calls per day, but that should be per IP address so that should be okay.
The JSON looks like :
{
"BTCISK": {
"last": 287027.6976683473,
"timestamp": 1501757982,
"averages": {
"day": 286340.60331558
}
}
}
The problem I had that was the "last" price is now within the "BTCISK" header and the value of "ISK" is in a variable that is not in scope in the inner part of the function.
Furthermore I had issues with the nature of Javascript ".then" "promise" like sync function syntax and the availability of the "currency" variable scope.