Type/to search

Obtenez l'approvisionnement en devises

Tool
3
Follow
1504
Followers

Utilisez l'interface API fournie par coinmarketcap pour obtenir la quantité de pièces en circulation et la quantité de pièces en circulation, qui peuvent être utilisées pour calculer la valeur marchande totale

Source
JavaScript
function GetSupply(symbol, max){
    var ids = null
    if(_G('ids')){
        ids = _G('ids')
    }else{
        ids = JSON.parse(HttpQuery('https://api.coinmarketcap.com/v2/listings/')).data
        _G('ids', ids)
    }
    var coinId = null
    for (var i=0; i<ids.length; i++){
        if(ids[i].symbol.toLowerCase() == symbol.toLowerCase() ){
            coinId = ids[i].id
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)