correct request
parent
3631681367
commit
e9f03ab2bc
|
|
@ -131,7 +131,7 @@ function setLoadMsg(x) {
|
||||||
}
|
}
|
||||||
function showDetails() {
|
function showDetails() {
|
||||||
const token = csTokens[ticker];
|
const token = csTokens[ticker];
|
||||||
const url = `https://openapiv1.coinstats.app/coins/${token}/info`;
|
const url = `https://openapiv1.coinstats.app/coins/${token}`;
|
||||||
Bangle.http(url, {
|
Bangle.http(url, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
|
|
@ -142,7 +142,7 @@ function showDetails() {
|
||||||
const tokenInfo = JSON.parse(data.resp);
|
const tokenInfo = JSON.parse(data.resp);
|
||||||
const msg = `
|
const msg = `
|
||||||
Details for ${token.toUpperCase()}\n
|
Details for ${token.toUpperCase()}\n
|
||||||
Name: ${tokenInfo.name}\n
|
// Name: ${tokenInfo.name}\n
|
||||||
Price: ${tokenInfo.price}\n
|
Price: ${tokenInfo.price}\n
|
||||||
Market Cap: ${tokenInfo.marketCap}\n
|
Market Cap: ${tokenInfo.marketCap}\n
|
||||||
// Add more fields as needed
|
// Add more fields as needed
|
||||||
|
|
|
||||||
|
|
@ -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.06.59",
|
"version": "0.06.60",
|
||||||
"description": "Crypto-Coins Infos with the help of the Binance API",
|
"description": "Crypto-Coins Infos with the help of the Binance API",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "clkinfo",
|
"tags": "clkinfo",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue