Commit d4e5bd69 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 7c9510d8
......@@ -18,8 +18,8 @@ const ccxt = require('ccxt')
const exchange = new ccxt.bybit({
apiKey: "Tv7DsqvRORcXAmXnyB",
secret: "Di1ilA21U2T5NLiOj9Gfro6hXbxXM2L7JgNM",
apiKey: "K8rhuFv9VEZ6xACJIO",
secret: "fjMd7QW1OGt2LPL67ZvobOkvSb5SI0mxBjUZ",
enableRateLimit: true,
})
......@@ -43,7 +43,7 @@ async function init() {
async function balanceUpdater() {
try {
let d = await exchange.fetchFreeBalance()
console.log(d)
if (d.USDT !==balance)
{
balance = d.USDT
......@@ -51,7 +51,7 @@ async function balanceUpdater() {
}
} catch (e) {
console.log(e)
}
await sleep(60000)
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