Commit 2c3466b7 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 407f080e
const fs = require('fs')
let moment = require('moment-timezone')
let _ = require('lodash')
const uuid=require('uniqid')
let pairs=''
let res
init()
......@@ -22,6 +23,7 @@ async function init() {
t = t.split('_')
let lp = t[4]
com[i].lp=lp
com[i].uniq=uuid.time()+'_'+com[i].platform.split(' ')[6]+'_'+(parseFloat(com[i].platform.split(' ')[7])*-1)
}
com=_.uniqBy(com, 'lp');
......@@ -42,7 +44,7 @@ async function init() {
let pair = t[3].replace('USDT', '').replace('USD', '')
pairs=pair
let p=t[t.length-1].split('.')
p=p[0].split(pairs)[1]
p=p[0].split(pairs)[0]
let lp = t[4]
let f=found(pair, lp)
f.period=p
......
......@@ -3,10 +3,8 @@
// for (let i=0;i<t.length;i++)
// console.log(i,t[i])
let t='2022.05.24 15:26:00.000'
t=t.split(':')
let date=t[0]+':'+t[1]
console.log(date)
let t='dynamic param:1.0 base:100 target:1000 targetPercentage:false RunupZeroDrawDown -1.5'
console.log(t.split(' '))
// let t='last.json-220217122835_O1_BNC_ETHUSDT_Lp3191_1ETH1.csv'
......
const uuid=require('uniqid')
console.log(uuid.time())
\ No newline at end of file
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