How to use the ccxt.hitbtc2 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 / hitbtc / index.ts View on Github external
function publicClient() {
    if (!public_client) public_client = new ccxt.hitbtc2({ apiKey: '', secret: '' })
    return public_client
  }
github magic8bot / magic8bot / legacy / exchanges / hitbtc / index.ts View on Github external
function authedClient() {
    if (!authed_client) {
      if (!conf.hitbtc || !conf.hitbtc.key || (!conf.hitbtc.key as any) === 'YOUR-API-KEY') {
        throw new Error('please configure your HitBTC credentials in ' + path.resolve(__dirname, 'conf.js'))
      }
      authed_client = new ccxt.hitbtc2({ apiKey: conf.hitbtc.key, secret: conf.hitbtc.secret })
    }
    return authed_client
  }
github DeviaVir / zenbot / extensions / exchanges / hitbtc / exchange.js View on Github external
function publicClient () {
    if (!public_client) public_client = new ccxt.hitbtc2({ 'apiKey': '', 'secret': '' })
    return public_client
  }
github DeviaVir / zenbot / extensions / exchanges / hitbtc / exchange.js View on Github external
function authedClient() {
    if (!authed_client) {
      if (!conf.hitbtc || !conf.hitbtc.key || !conf.hitbtc.key === 'YOUR-API-KEY') {
        throw new Error('please configure your HitBTC credentials in ' + path.resolve(__dirname, 'conf.js'))
      }
      authed_client = new ccxt.hitbtc2({ 'apiKey': conf.hitbtc.key, 'secret': conf.hitbtc.secret })
    }
    return authed_client
  }