Type/to search

Nhận nguồn cung tiền tệ

Tool
3
Follow
1504
Followers

Sử dụng giao diện API cung cấp bởi coinmarketcap để thu thập lượng cung cấp và lưu hành đồng tiền, có thể được sử dụng để tính toán tổng giá trị thị trường

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)