FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

hybridCJSExample · ccxt/ccxt Wiki · GitHub

hybridCJSExample · ccxt/ccxt Wiki · GitHub
Skip to content

Navigation Menu

hybridCJSExample

github-actions[bot] edited this page Jun 18, 2026 · 3 revisions
const ccxt = require('ccxt');

console.log('--------------------------------------------')
console.log('Yey importing ccxt as a cjs module!!!!!')
console.log('Version:', ccxt.version)
console.log('--------------------------------------------')

const exchange = new ccxt.htx ({
    'apiKey': 'YOUR_API_KEY',
    'secret': 'YOUR_SECRET_KEY',
    'options': {
        'defaultType': 'swap',
    },
})
;(async () => {
const result = await exchange.fetchBalance();
console.log(result)
}) ()

Wiki pages Pages 1,103

Clone this wiki locally

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL