@icgio/icg-utils 1.6.24 → 1.6.26
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/index.js +2 -1
- package/lib/coingecko-coins-map.js +7920 -2730
- package/lib/coingecko.js +15 -0
- package/lib/ip.js +3 -0
- package/package.json +2 -1
package/lib/coingecko.js
CHANGED
|
@@ -91,4 +91,19 @@ let get_coingecko_rates = (cb, pair) => {
|
|
|
91
91
|
// console.log(res)
|
|
92
92
|
// })
|
|
93
93
|
|
|
94
|
+
// https://api.coingecko.com/api/v3/coins/list
|
|
95
|
+
|
|
96
|
+
// const _ = require('lodash')
|
|
97
|
+
// needle.get('https://api.coingecko.com/api/v3/coins/list', (err, res, body) => {
|
|
98
|
+
// let list = body
|
|
99
|
+
|
|
100
|
+
// let map = {}
|
|
101
|
+
// for (let line of list) {
|
|
102
|
+
// let cur = line.symbol.toUpperCase()
|
|
103
|
+
// _.set(map, [cur], line.id)
|
|
104
|
+
// }
|
|
105
|
+
|
|
106
|
+
// console.log(JSON.stringify(map, null, 4))
|
|
107
|
+
// })
|
|
108
|
+
|
|
94
109
|
module.exports = get_coingecko_rates
|
package/lib/ip.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@icgio/icg-utils",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.26",
|
|
4
4
|
"description": "Utils package.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
"homepage": "https://github.com/icgio/icg-utils#readme",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"etherscan-api": "^8.1.5",
|
|
24
|
+
"external-ip": "^2.3.1",
|
|
24
25
|
"htmlparser2": "^3.10.1",
|
|
25
26
|
"influx": "^5.6.3",
|
|
26
27
|
"lodash": "^4.17.20",
|