Commit 79f46cd1 authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 70e43477
let pair = 'BNBUSDT' let pair = 'XRPUSDT'
let timeframe = '5m' let timeframe = '5m'
const Downloader = require("nodejs-file-downloader"); const Downloader = require("nodejs-file-downloader");
const extract = require('extract-zip') const extract = require('extract-zip')
...@@ -21,11 +21,13 @@ async function run() { ...@@ -21,11 +21,13 @@ async function run() {
} catch (e) { } catch (e) {
} }
let arr=[]
for (let i = 2017; i <= 2022; i++) { for (let i = 2017; i <= 2022; i++) {
await monthlyDownloader(i) arr.push(monthlyDownloader(i))
} }
await Promise.all(arr)
await sleep(4000) await sleep(4000)
console.log('try ReadFiles') console.log('try ReadFiles')
......
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