Type/to search

Obtenir l'offre de la devise

Tool
3
Follow
1518
Followers

Utiliser l'API fournie par CoinMarketCap pour obtenir l'offre et la circulation des cryptomonnaies, ce qui peut être utilisé pour calculer la capitalisation boursière 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
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)