CurrencyQuote
JavaScript library of currency quotes. It is included by default - installation is not required.
It is have currencies and crypto currencies (top 100 list)
Update time:
currencies update time is: once at 1 hour
crypto currencies update time is: once at 5 minutes
Possibly longer update times due to network errors and other errors.
But you can check this.
Usage
Get prices:
// get EUR / USD cost
var eur_price = CurrencyQuote.fiat.EUR;
var btc_price = CurrencyQuote.crypto.BTC;Get crypto details:
// get EUR / USD cost
var btcDetails = CurrencyQuote.crypto.details.BTC;
Bot.inspect(btcDetails)
/* result:
{
"id": 1,
"name": "Bitcoin",
"symbol": "BTC",
"slug": "bitcoin",
"num_market_pairs": 9189,
"date_added": "2013-04-28T00:00:00.000Z",
"tags": [
"mineable",
"pow",
"sha-256",
...
],
"max_supply": 21000000,
"circulating_supply": 18741687,
"total_supply": 18741687,
"platform": null,
"cmc_rank": 1,
"last_updated": "2021-06-24T11:03:02.000Z",
"quote": {
"USD": {
"price": 33330.324732476154,
"volume_24h": 33455787206.23486,
"percent_change_1h": -0.01335238,
"percent_change_24h": -2.7360215,
...
"market_cap": 624666513744.4268,
"last_updated": "2021-06-24T11:03:02.000Z"
}
}
}
*/Convertation:
Check last updated time
Last updated
Was this helpful?