mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-11 09:18:08 +00:00
commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
const ccxt = require ('../../../ccxt')
|
||||
|
||||
console.log ('CCXT Pro version:', ccxt.version)
|
||||
|
||||
async function main () {
|
||||
const exchange = new ccxt.pro.gateio ({
|
||||
'apiKey': 'YOUR_API_KEY',
|
||||
'secret': 'YOUR_SECRET',
|
||||
})
|
||||
await exchange.loadMarkets ()
|
||||
exchange.verbose = true
|
||||
while (true) {
|
||||
try {
|
||||
const response = await exchange.watchBalance ()
|
||||
console.log (new Date (), response)
|
||||
} catch (e) {
|
||||
console.log (e.constructor.name, e.message)
|
||||
await exchange.sleep (1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
main ()
|
||||
Reference in New Issue
Block a user