Commit 3b6db2da authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent bdb66fcf
...@@ -2,8 +2,8 @@ let _ = require('lodash') ...@@ -2,8 +2,8 @@ let _ = require('lodash')
let fs = require('fs') let fs = require('fs')
let t='btc1&7&5.8&9_btcLp1819RZDD75_2.908100846521906_-1.5056680161943328_RunupZeroDrawDown_7.5' let t='btc1&7&5.8&9_btcLp1819RZDD75_2.908100846521906_-1.5056680161943328_RunupZeroDrawDown_7.5'
// t='0,00:00,Sell,BTCUSDT,22374.3,22133.6,2022.07.25 20:09:00.000,-1.0757878458767458,3.708719378930288,-0.23062174012147219' t='0,00:00,Sell,BTCUSDT,22374.3,22133.6,2022.07.25 20:09:00.000,-1.0757878458767458,3.708719378930288,-0.23062174012147219'
t=t.split('_') t=t.split(',')
for (let i=0;i<t.length;i++) for (let i=0;i<t.length;i++)
console.log(i,t[i]) console.log(i,t[i])
......
...@@ -43,7 +43,7 @@ async function init() { ...@@ -43,7 +43,7 @@ async function init() {
// exchange.urls['api'] = exchange.urls['test']; // exchange.urls['api'] = exchange.urls['test'];
run() run()
balanceUpdater() // balanceUpdater()
} }
...@@ -104,7 +104,7 @@ async function run() { ...@@ -104,7 +104,7 @@ async function run() {
} }
// checker() checker()
console.log(datas) console.log(datas)
} }
...@@ -169,10 +169,9 @@ async function make(name) { ...@@ -169,10 +169,9 @@ async function make(name) {
} }
async function updateVars(name) { async function updateVars(name,lastData) {
let lastFile = await fs.readFileSync(path + name, 'utf8')
lastFile = lastFile.split('\n') // lastData = lastFile[lastFile.length - 2]
let lastData = lastFile[lastFile.length - 2]
let sig = '' let sig = ''
let allData = getAllFromName(name) let allData = getAllFromName(name)
...@@ -377,29 +376,6 @@ async function adder(sig, qty, date, allData,pair) { ...@@ -377,29 +376,6 @@ async function adder(sig, qty, date, allData,pair) {
} }
// console.log(d)
// if (typeof d.id !== "undefined") {
// await sleep(60000)
// try {
// d = await exchange.fetchOrder(d.id, d.info.symbol)
// console.log('Add Suc With id', d.id, sig)
// const [add] = await client
// .multi()
// .set(sig, JSON.stringify({pair: d.info.symbol, side: d.side, qty: d.amount, price: d.average}))
// .exec();
// }
// catch (e)
// {
//
// console.log('Add Suc With id', d.id, sig)
// console.log(sig,'Have Problem Reding Order so try offline')
// const [add] = await client
// .multi()
// .set(sig, JSON.stringify({pair: d.info.symbol, side: d.side, qty: d.amount, price: d.price}))
// .exec();
// }
//
// }
} }
......
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