CurrencyQuote
Usage
// get EUR / USD cost
var eur_price = CurrencyQuote.fiat.EUR;
var btc_price = CurrencyQuote.crypto.BTC;// 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"
}
}
}
*/Check last updated time
Last updated