Created
April 4, 2020 06:21
-
-
Save YasunoriMATSUOKA/9f926452db492c2071a041bc7fa65040 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ccxt = require('ccxt') | |
const methodsExchangeHas = (exchange) => { | |
const exchangeObject = new ccxt[exchange] | |
const methods = exchangeObject.has | |
return methods | |
} | |
const japanExchanges = [ | |
'bitbank', | |
'bitflyer', | |
'coincheck', | |
'liquid', | |
'zaif' | |
] | |
const japanExchangesMethods = japanExchanges.map((exchange) => { | |
const methods = methodsExchangeHas(exchange) | |
const object = new Object() | |
object[exchange] = methods | |
return object | |
}) | |
console.log(japanExchangesMethods) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment