Commit cf5c8267 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent f1fe7c55
......@@ -11,7 +11,7 @@ async function parse(directory, name, configs, risk, pfTrade, side, riskFreeLeve
return new Promise(function (resolve, reject) {
let arr = []
// console.log(name)
fs.createReadStream(directory + '/' + name)
fs.createReadStream('work/'+directory + '/' + name)
.pipe(csv.parse({headers: true}))
.on('error', error => reject(error))
.on('data', row => arr.push(row))
......
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