Commit 145bd187 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent c9431046
...@@ -96,7 +96,7 @@ async function check() { ...@@ -96,7 +96,7 @@ async function check() {
let stats = await fs.statSync('allFiles/' + files[i]) let stats = await fs.statSync('allFiles/' + files[i])
if (stats.size < 5000) { if (stats.size < 5000) {
await fs.unlinkSync('allFiles/' + files[i]) // await fs.unlinkSync('allFiles/' + files[i])
continue continue
} }
// console.log(stats.size) // console.log(stats.size)
...@@ -155,7 +155,7 @@ async function copyAllFiles() ...@@ -155,7 +155,7 @@ async function copyAllFiles()
let stats = await fs.statSync('files/'+dirFiles[f]+'/' + files[i]) let stats = await fs.statSync('files/'+dirFiles[f]+'/' + files[i])
if (stats.size < 1000) { if (stats.size < 1000) {
await fs.unlinkSync('files/'+dirFiles[f]+'/' + files[i]) // await fs.unlinkSync('files/'+dirFiles[f]+'/' + files[i])
continue continue
} }
......
...@@ -31,14 +31,30 @@ async function test () { ...@@ -31,14 +31,30 @@ async function test () {
// let d = await exchange.createMarketOrder('BTCUSDT', 'Buy', 0.001, 0) // let d = await exchange.createMarketOrder('BTCUSDT', 'Buy', 0.001, 0)
// console.log(d) // console.log(d)
const exchange = new ccxt.bybit ({ const exchange = new ccxt.bybit ({
apiKey: "OpMZ5chXF11tVYRFCI", apiKey: "fFjDtjCOo4hbHXfiBw",
secret: "iZrJsWz3CvgwrkwgfmgbX2Zz1tUxrpLtfvqS", secret: "QmnaE2Zt6NbEHeixCm55sdjnDq1ZwkWvXDh1",
enableRateLimit: true, enableRateLimit: true,
}) })
exchange.urls['api'] = exchange.urls['test']; // exchange.urls['api'] = exchange.urls['test'];
let d=await exchange.fetchBalance() // let s=await exchange.fetchOpenOrders('BTC/USDT:USDT')
console.log(d.info.result.USDT.equity) // console.log(s)
let d=await exchange.fetchPositions()
let arr=[]
for (let i=0;i<d.length;i++)
{
if (d[i].info.symbol ==='BTCUSDT')
arr.push(d[i])
}
console.log(arr)
// console.log(d.length)
// console.log(d)
// for (let i=0;i<d.le)
// console.log(exchange.orders)
// console.log(d)
// console.log(d.info.result.USDT.equity)
// console.log(exchange.symbols) // console.log(exchange.symbols)
// let d=await exchange.symbols('BTC/USDT') // let d=await exchange.symbols('BTC/USDT')
// console.log(d) // console.log(d)
......
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