Also adjusted settings to new Binance API

master
Martin Zwigl 2025-03-08 02:43:41 +01:00
parent 18711f385e
commit 017a7a86e1
3 changed files with 4 additions and 4 deletions

View File

@ -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 => {

View File

@ -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",

View File

@ -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) || {});