How to use the ccxt.binance function in ccxt

To help you get started, we’ve selected a few ccxt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github magic8bot / magic8bot / legacy / exchanges / binance / index.ts View on Github external
function publicClient() {
    if (!publicClientCon) publicClientCon = new ccxt.binance({ apiKey: '', secret: '' })
    return publicClientCon
  }
github magic8bot / magic8bot / legacy / exchanges / binance / index.ts View on Github external
function authedClient() {
    if (!authedClientCon) {
      if (!conf.binance || !conf.binance.key || conf.binance.key === 'YOUR-API-KEY') {
        throw new Error('please configure your Binance credentials in ' + path.resolve(__dirname, 'conf.js'))
      }
      authedClientCon = new ccxt.binance({ apiKey: conf.binance.key, secret: conf.binance.secret })
    }
    return authedClientCon
  }
github cryptocontrol / algo-trading-server / src / exchanges / Binance.ts View on Github external
constructor () {
    const binance = new ccxt.binance()
    super(binance)
  }
github DeviaVir / zenbot / extensions / exchanges / binance / exchange.js View on Github external
function authedClient () {
    if (!authed_client) {
      if (!conf.binance || !conf.binance.key || conf.binance.key === 'YOUR-API-KEY') {
        throw new Error('please configure your Binance credentials in ' + path.resolve(__dirname, 'conf.js'))
      }
      authed_client = new ccxt.binance({ 'apiKey': conf.binance.key, 'secret': conf.binance.secret, 'options': { 'adjustForTimeDifference': true }, enableRateLimit: true })
    }
    return authed_client
  }
github DeviaVir / zenbot / extensions / exchanges / binance / exchange.js View on Github external
function publicClient () {
    if (!public_client) public_client = new ccxt.binance({ 'apiKey': '', 'secret': '', 'options': { 'adjustForTimeDifference': true } })
    return public_client
  }