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