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

      authed_client = new ccxt.therock({ apiKey: conf.therock.key, secret: conf.therock.secret })
    }
    return authed_client
  }
github DeviaVir / zenbot / extensions / exchanges / therock / exchange.js View on Github external
function authedClient() {
    if (!authed_client) {
      if (!conf.therock || !conf.therock.key || !conf.therock.key === 'YOUR-API-KEY') {
        throw new Error('please configure your TheRockTrading credentials in ' + path.resolve(__dirname, 'conf.js'))
      }

      authed_client = new ccxt.therock ({ 'apiKey': conf.therock.key,'secret': conf.therock.secret })
    }
    return authed_client
  }
github magic8bot / magic8bot / legacy / exchanges / therock / index.ts View on Github external
function publicClient() {
    if (!public_client) public_client = new ccxt.therock({ apiKey: '', secret: '' })
    return public_client
  }