Commit eadd692a authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 3f3c79f2
......@@ -36,8 +36,9 @@ async function test () {
enableRateLimit: true,
})
let d=await exchange.fetchBalance()
console.log(d.info.result.USDT.equity)
console.log(exchange.symbols)
// let d=await exchange.symbols('BTC/USDT')
// console.log(d)
// console.log(d)
//63d101c8-3169-473c-a7ee-53645599474d
// let d=await exchange.fetchOrder('63d101c8-3169-473c-a7ee-53645599474d','BTCUSDT')
......
const ccxt = require ('ccxt')
, HttpsProxyAgent = require ('https-proxy-agent')
const proxy = process.env.http_proxy || 'http://116.202.97.73:3128' // HTTP/HTTPS proxy to connect to
const agent = new HttpsProxyAgent (proxy)
console.log(agent)
const exchange = new ccxt.bybit ({ apiKey:'CdXcABS47I1dKtoCYo',secret:'fGuTC3EbkTtUvLy27ZnpyePBffjcdKs3Z8fB',enableRateLimit: true})
exchange.urls['api'] = exchange.urls['test'];
test()
async function test()
{
let d=await exchange.fetchBalance()
console.log(d)
}
......@@ -213,7 +213,7 @@ async function run() {
for (let i = 0; i < dates.length; i++)
sumAll = sumAll + dates[i].count
console.log(dates)
console.log(arrNew)
// let ss=0
// for (let i=0;i<dates.length;i++)
// ss=ss+dates[i].profit
......
......@@ -152,7 +152,7 @@ async function init() {
// exchange.urls['api'] = exchange.urls['test'];
run()
balanceUpdater()
// 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