Skip to content

Commit

Permalink
minor edit
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Dec 23, 2017
1 parent aff776c commit 1e6a225
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/js/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,9 @@ const exchange = new (ccxt)[exchangeId] ({ verbose })
const keysGlobal = path.resolve ('keys.json')
const keysLocal = path.resolve ('keys.local.json')

log.red (keysGlobal)
log.red (keysLocal)

process.exit ()

let globalKeysFile = fs.existsSync (keysGlobal) ? keysGlobal : false
let localKeysFile = fs.existsSync (keysLocal) ? keysLocal : globalKeysFile
let settings = localKeysFile ? (require ('../../' + localKeysFile)[exchangeId] || {}) : {}
let settings = localKeysFile ? (require (localKeysFile)[exchangeId] || {}) : {}

Object.assign (exchange, settings)

Expand Down

0 comments on commit 1e6a225

Please sign in to comment.