Commit eadd692a authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent 3f3c79f2
...@@ -36,8 +36,9 @@ async function test () { ...@@ -36,8 +36,9 @@ async function test () {
enableRateLimit: true, enableRateLimit: true,
}) })
let d=await exchange.fetchBalance() console.log(exchange.symbols)
console.log(d.info.result.USDT.equity) // let d=await exchange.symbols('BTC/USDT')
// console.log(d)
// console.log(d) // console.log(d)
//63d101c8-3169-473c-a7ee-53645599474d //63d101c8-3169-473c-a7ee-53645599474d
// let d=await exchange.fetchOrder('63d101c8-3169-473c-a7ee-53645599474d','BTCUSDT') // 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() { ...@@ -213,7 +213,7 @@ async function run() {
for (let i = 0; i < dates.length; i++) for (let i = 0; i < dates.length; i++)
sumAll = sumAll + dates[i].count sumAll = sumAll + dates[i].count
console.log(dates) console.log(arrNew)
// let ss=0 // let ss=0
// for (let i=0;i<dates.length;i++) // for (let i=0;i<dates.length;i++)
// ss=ss+dates[i].profit // ss=ss+dates[i].profit
......
...@@ -152,7 +152,7 @@ async function init() { ...@@ -152,7 +152,7 @@ async function init() {
// exchange.urls['api'] = exchange.urls['test']; // exchange.urls['api'] = exchange.urls['test'];
run() 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