@icgio/icg-utils 1.7.3 → 1.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/constants/stablecoins.js +1 -1
- package/lib/coingecko-coins-map.js +1188 -1339
- package/lib/coingecko.js +1 -2
- package/package.json +1 -1
package/lib/coingecko.js
CHANGED
|
@@ -108,7 +108,7 @@ let get_coingecko_rates = (cb, pair_or_pairs_or_cur_curs) => {
|
|
|
108
108
|
let get_coingecko_rate = (page, cb) => {
|
|
109
109
|
let url = 'https://api.coingecko.com/api/v3/coins/markets?vs_currency=' + quote_cur.toLowerCase() + '&per_page=' + per_page_nums + '&page=' + page
|
|
110
110
|
needle.get(url, options, (err, res, body) => {
|
|
111
|
-
console.log(body.length)
|
|
111
|
+
console.log('fetching coingecko rate: body length', body.length)
|
|
112
112
|
if (body && body.length > 0) {
|
|
113
113
|
for (let coin of body) {
|
|
114
114
|
let symbol = coin.symbol
|
|
@@ -175,7 +175,6 @@ let get_coingecko_rates = (cb, pair_or_pairs_or_cur_curs) => {
|
|
|
175
175
|
|
|
176
176
|
// https://api.coingecko.com/api/v3/coins/list
|
|
177
177
|
|
|
178
|
-
// const _ = require('lodash')
|
|
179
178
|
// needle.get('https://api.coingecko.com/api/v3/coins/list', (err, res, body) => {
|
|
180
179
|
// let list = body
|
|
181
180
|
|