Commit d4e5bd69 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 7c9510d8
...@@ -18,8 +18,8 @@ const ccxt = require('ccxt') ...@@ -18,8 +18,8 @@ const ccxt = require('ccxt')
const exchange = new ccxt.bybit({ const exchange = new ccxt.bybit({
apiKey: "Tv7DsqvRORcXAmXnyB", apiKey: "K8rhuFv9VEZ6xACJIO",
secret: "Di1ilA21U2T5NLiOj9Gfro6hXbxXM2L7JgNM", secret: "fjMd7QW1OGt2LPL67ZvobOkvSb5SI0mxBjUZ",
enableRateLimit: true, enableRateLimit: true,
}) })
...@@ -43,7 +43,7 @@ async function init() { ...@@ -43,7 +43,7 @@ async function init() {
async function balanceUpdater() { async function balanceUpdater() {
try { try {
let d = await exchange.fetchFreeBalance() let d = await exchange.fetchFreeBalance()
console.log(d)
if (d.USDT !==balance) if (d.USDT !==balance)
{ {
balance = d.USDT balance = d.USDT
...@@ -51,7 +51,7 @@ async function balanceUpdater() { ...@@ -51,7 +51,7 @@ async function balanceUpdater() {
} }
} catch (e) { } catch (e) {
console.log(e)
} }
await sleep(60000) await sleep(60000)
return balanceUpdater() return balanceUpdater()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment