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

git pu

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