Skip to content

Commit

Permalink
const|var in export-exchanges.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Oct 29, 2017
1 parent 1255bca commit d1b1e72
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 91 deletions.
180 changes: 90 additions & 90 deletions ccxt.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,97 +45,97 @@ Exchange.ccxtVersion = version

const exchanges = {

// '_1broker': require ('./js/_1broker'),
// '_1btcxe': require ('./js/_1btcxe'),
// 'acx': require ('./js/acx'),
// 'allcoin': require ('./js/allcoin'),
// 'anxpro': require ('./js/anxpro'),
// 'binance': require ('./js/binance'),
// 'bit2c': require ('./js/bit2c'),
// 'bitbay': require ('./js/bitbay'),
// 'bitcoincoid': require ('./js/bitcoincoid'),
// 'bitfinex': require ('./js/bitfinex'),
// 'bitfinex2': require ('./js/bitfinex2'),
// 'bitflyer': require ('./js/bitflyer'),
// 'bithumb': require ('./js/bithumb'),
// 'bitlish': require ('./js/bitlish'),
// 'bitmarket': require ('./js/bitmarket'),
// 'bitmex': require ('./js/bitmex'),
// 'bitso': require ('./js/bitso'),
// 'bitstamp1': require ('./js/bitstamp1'),
// 'bitstamp': require ('./js/bitstamp'),
// 'bittrex': require ('./js/bittrex'),
// 'bl3p': require ('./js/bl3p'),
// 'bleutrade': require ('./js/bleutrade'),
// 'btcbox': require ('./js/btcbox'),
// 'btcchina': require ('./js/btcchina'),
// 'btcx': require ('./js/btcx'),
// 'btcmarkets': require ('./js/btcmarkets'),
// 'btctradeua': require ('./js/btctradeua'),
// 'btcturk': require ('./js/btcturk'),
// 'btcx': require ('./js/btcx'),
// 'bter': require ('./js/bter'),
// 'bxinth': require ('./js/bxinth'),
// 'ccex': require ('./js/ccex'),
// 'cex': require ('./js/cex'),
// 'chbtc': require ('./js/chbtc'),
// 'chilebit': require ('./js/chilebit'),
// 'coincheck': require ('./js/coincheck'),
// 'coinfloor': require ('./js/coinfloor'),
// 'coingi': require ('./js/coingi'),
// 'coinmarketcap': require ('./js/coinmarketcap'),
// 'coinmate': require ('./js/coinmate'),
// 'coinsecure': require ('./js/coinsecure'),
// 'coinspot': require ('./js/coinspot'),
// 'cryptopia': require ('./js/cryptopia'),
// 'dsx': require ('./js/dsx'),
// 'exmo': require ('./js/exmo'),
// 'flowbtc': require ('./js/flowbtc'),
// 'foxbit': require ('./js/foxbit'),
// 'fybse': require ('./js/fybse'),
// 'fybsg': require ('./js/fybsg'),
// 'gatecoin': require ('./js/gatecoin'),
// 'gateio': require ('./js/gateio'),
// 'gdax': require ('./js/gdax'),
// 'gemini': require ('./js/gemini'),
// 'hitbtc': require ('./js/hitbtc'),
// 'hitbtc2': require ('./js/hitbtc2'),
// 'huobi': require ('./js/huobi'),
// 'huobicny': require ('./js/huobicny'),
// 'huobipro': require ('./js/huobipro'),
// 'independentreserve': require ('./js/independentreserve'),
// 'itbit': require ('./js/itbit'),
// 'jubi': require ('./js/jubi'),
// 'kraken': require ('./js/kraken'),
// 'kuna': require ('./js/kuna'),
// 'lakebtc': require ('./js/lakebtc'),
// 'livecoin': require ('./js/livecoin'),
'_1broker': require ('./js/_1broker'),
'_1btcxe': require ('./js/_1btcxe'),
'acx': require ('./js/acx'),
'allcoin': require ('./js/allcoin'),
'anxpro': require ('./js/anxpro'),
'binance': require ('./js/binance'),
'bit2c': require ('./js/bit2c'),
'bitbay': require ('./js/bitbay'),
'bitcoincoid': require ('./js/bitcoincoid'),
'bitfinex': require ('./js/bitfinex'),
'bitfinex2': require ('./js/bitfinex2'),
'bitflyer': require ('./js/bitflyer'),
'bithumb': require ('./js/bithumb'),
'bitlish': require ('./js/bitlish'),
'bitmarket': require ('./js/bitmarket'),
'bitmex': require ('./js/bitmex'),
'bitso': require ('./js/bitso'),
'bitstamp1': require ('./js/bitstamp1'),
'bitstamp': require ('./js/bitstamp'),
'bittrex': require ('./js/bittrex'),
'bl3p': require ('./js/bl3p'),
'bleutrade': require ('./js/bleutrade'),
'btcbox': require ('./js/btcbox'),
'btcchina': require ('./js/btcchina'),
'btcx': require ('./js/btcx'),
'btcmarkets': require ('./js/btcmarkets'),
'btctradeua': require ('./js/btctradeua'),
'btcturk': require ('./js/btcturk'),
'btcx': require ('./js/btcx'),
'bter': require ('./js/bter'),
'bxinth': require ('./js/bxinth'),
'ccex': require ('./js/ccex'),
'cex': require ('./js/cex'),
'chbtc': require ('./js/chbtc'),
'chilebit': require ('./js/chilebit'),
'coincheck': require ('./js/coincheck'),
'coinfloor': require ('./js/coinfloor'),
'coingi': require ('./js/coingi'),
'coinmarketcap': require ('./js/coinmarketcap'),
'coinmate': require ('./js/coinmate'),
'coinsecure': require ('./js/coinsecure'),
'coinspot': require ('./js/coinspot'),
'cryptopia': require ('./js/cryptopia'),
'dsx': require ('./js/dsx'),
'exmo': require ('./js/exmo'),
'flowbtc': require ('./js/flowbtc'),
'foxbit': require ('./js/foxbit'),
'fybse': require ('./js/fybse'),
'fybsg': require ('./js/fybsg'),
'gatecoin': require ('./js/gatecoin'),
'gateio': require ('./js/gateio'),
'gdax': require ('./js/gdax'),
'gemini': require ('./js/gemini'),
'hitbtc': require ('./js/hitbtc'),
'hitbtc2': require ('./js/hitbtc2'),
'huobi': require ('./js/huobi'),
'huobicny': require ('./js/huobicny'),
'huobipro': require ('./js/huobipro'),
'independentreserve': require ('./js/independentreserve'),
'itbit': require ('./js/itbit'),
'jubi': require ('./js/jubi'),
'kraken': require ('./js/kraken'),
'kuna': require ('./js/kuna'),
'lakebtc': require ('./js/lakebtc'),
'livecoin': require ('./js/livecoin'),
'liqui': require ('./js/liqui'),
// 'luno': require ('./js/luno'),
// 'mercado': require ('./js/mercado'),
// 'mixcoins': require ('./js/mixcoins'),
// 'nova': require ('./js/nova'),
// 'okcoincny': require ('./js/okcoincny'),
// 'okcoinusd': require ('./js/okcoinusd'),
// 'okex': require ('./js/okex'),
// 'paymium': require ('./js/paymium'),
// 'poloniex': require ('./js/poloniex'),
// 'quadrigacx': require ('./js/quadrigacx'),
// 'qryptos': require ('./js/qryptos'),
// 'quoine': require ('./js/quoine'),
// 'southxchange': require ('./js/southxchange'),
// 'surbitcoin': require ('./js/surbitcoin'),
// 'tidex': require ('./js/tidex'),
// 'therock': require ('./js/therock'),
// 'urdubit': require ('./js/urdubit'),
// 'vaultoro': require ('./js/vaultoro'),
// 'vbtc': require ('./js/vbtc'),
// 'virwox': require ('./js/virwox'),
// 'wex': require ('./js/wex'),
// 'xbtce': require ('./js/xbtce'),
// 'yobit': require ('./js/yobit'),
// 'yunbi': require ('./js/yunbi'),
// 'zaif': require ('./js/zaif'),
'luno': require ('./js/luno'),
'mercado': require ('./js/mercado'),
'mixcoins': require ('./js/mixcoins'),
'nova': require ('./js/nova'),
'okcoincny': require ('./js/okcoincny'),
'okcoinusd': require ('./js/okcoinusd'),
'okex': require ('./js/okex'),
'paymium': require ('./js/paymium'),
'poloniex': require ('./js/poloniex'),
'quadrigacx': require ('./js/quadrigacx'),
'qryptos': require ('./js/qryptos'),
'quoine': require ('./js/quoine'),
'southxchange': require ('./js/southxchange'),
'surbitcoin': require ('./js/surbitcoin'),
'tidex': require ('./js/tidex'),
'therock': require ('./js/therock'),
'urdubit': require ('./js/urdubit'),
'vaultoro': require ('./js/vaultoro'),
'vbtc': require ('./js/vbtc'),
'virwox': require ('./js/virwox'),
'wex': require ('./js/wex'),
'xbtce': require ('./js/xbtce'),
'yobit': require ('./js/yobit'),
'yunbi': require ('./js/yunbi'),
'zaif': require ('./js/zaif'),
}

//-----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion export-exchanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ try {
log.bright.cyan ('Exporting exchanges → ./ccxt.js'.yellow)

let ccxtjs = fs.readFileSync ('./ccxt.js', 'utf8')
let exchangesMatches = /var exchanges \= \{([^\}]+)\}/g.exec (ccxtjs)
let exchangesMatches = /(const|var)\s+exchanges\s+\=\s+\{([^\}]+)\}/g.exec (ccxtjs)
let idRegex = /\'([^\'\n\s]+)\'/g
let ids = []
let idMatch
Expand Down

0 comments on commit d1b1e72

Please sign in to comment.