Also adjusted settings to new Binance API
parent
18711f385e
commit
017a7a86e1
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
// Function to fetch data from API
|
||||
const fetchData = (callback) => {
|
||||
const url = `https://api.binance.com/api/v3/ticker/24hr?symbol=${token.toUpperCase()}USDT`;
|
||||
const url = `https://api.binance.com/api/v3/ticker/24hr?symbol=${token}USDT`;
|
||||
|
||||
Bangle.http(url, { method: 'GET' })
|
||||
.then(cmcResult => {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ "id": "coin_info",
|
||||
"name": "Crypto-Coins Info",
|
||||
"shortName":"Coins Info",
|
||||
"version": "0.04.27",
|
||||
"version": "0.04.28",
|
||||
"description": "Crypto-Coins Infos with the help of the Coinmarketcap API",
|
||||
"icon": "app.png",
|
||||
"tags": "clkinfo",
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
// Default settings with sorted tokens and load settings
|
||||
let settings = Object.assign({
|
||||
// TODO: MZw - retrieve from upload-storage
|
||||
tokens: ['bitcoin', 'ethereum', 'tether'],
|
||||
tokenSelected: ['bitcoin'],
|
||||
tokens: ['BTC', 'ETH', 'STORJ'],
|
||||
tokenSelected: ['BTC'],
|
||||
getRateMin: 60
|
||||
}, storage.readJSON(SETTINGS_FILE, 1) || {});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue