Commit 831ae8cc authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 9d01f270
......@@ -19,11 +19,15 @@ async function init() {
for (let i = 0; i < com.length; i++) {
let t = com[i].platform
t = t.split('_')
let p=t[t.length-1].split('.')
p=parseFloat(p[0])
let pair = t[3].replace('USDT', '').replace('USD', '')
pairs=pair
let lp = t[4]
arr.push(found(pair, lp))
let f=found(pair, lp)
f.period=p
arr.push(f)
}
arr=_.uniqBy(arr, 'name');
......
......@@ -7,6 +7,6 @@
let t='last.json-220217122835_O1_BNC_ETHUSDT_Lp3191_1ETH1.csv'
t=t.split('_')
let pair=t[3].replace('USDT','').replace('USD','')
let lp=t[4]
console.log(pair,lp)
let p=t[t.length-1].split('.')
p=parseFloat(p[0])
console.log(p)
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