| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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)
}) ()(If the page is not being rendered for you, you can refer to the mirror at https://docs.ccxt.com/)
| Back | FazBrowse Home | New Git URL |