This commit is contained in:
discountry
2025-10-03 15:28:16 +08:00
parent d5c4b04746
commit fcb83bd16b
925 changed files with 165721 additions and 4 deletions
+26
View File
@@ -0,0 +1,26 @@
// ----------------------------------------------------------------------------
import ccxt from '../../js/ccxt.js';
import ololog from 'ololog'
// ----------------------------------------------------------------------------
const log = ololog.configure.handleNodeErrors (), asTable = require("as-table").configure({ delimiter: " | " });
// ----------------------------------------------------------------------------
(async () => {
const exchange = new ccxt.coinbase ({
verbose: process.argv.includes ('--verbose'),
timeout: 60000,
apiKey: process.env.KEY,
secret: process.env.SECRET
});
const balance = await exchange.fetchBalance ()
log.green (balance)
})()