Type/to search
8
Follow
1375
Followers
Cómo filtrar el número real de exchanges en una estrategia multi-change
FAQ
Created 2017-07-27 17:30:18  
 0
 1887

Cómo filtrar el número real de exchanges en una estrategia multi-change

Algunos usuarios preguntaron cómo seleccionar la cantidad real de cuentas configuradas de una gran cantidad de intercambios añadidos (en diferentes monedas).

  • Por ejemplo:

    img

    En realidad, hay varias.

  • Prueba de código pequeño

function main(){ var showArray = [] for(var i = 0; i < exchanges.length ; i++){ Log("Name:", exchanges[i].GetName(), "Label:", exchanges[i].GetLabel(), "#FF0000") } Log("筛选") for(var j = 0; j < exchanges.length; j++){ var isFind = false for(var n = 0; n < showArray.length; n++){ if(exchanges[j].GetLabel() == showArray[n].Label && exchanges[j].GetName() == showArray[n].Name){ isFind = true } } if(!isFind){ Log(exchanges[j].GetLabel()) showArray.push({Name : exchanges[j].GetName() , Label : exchanges[j].GetLabel()}) } } Log(showArray) }
  • Resultados de la prueba

    img

Related Recommendations
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)