New Blocktivity Bitshares HUG functionality!

in bitshares •  11 months ago 

If you've never visited Blocktivity before then you're missing out! It's a website which tracks the real activity within blockchains, specifically the number of operations over time. This is an excellent indicator of cryptocurrency usage & it's highly surprising to see that cryptocurrencies with huge marketcaps are almost unused compared to leading graphene cryptocurrencies.

So what's new? I've created a script for scraping blocktivity using Python and BeautifulSoup4 which outputs the current blocktivity table to JSON.

I've further integrated this new function into the Bitshares HUG REST API allowing you to easily retrieve this information without setting up a Python development environment locally. Try it out! It takes less than a second to retrieve fresh data from blocktivity & will cache a local copy for a short period of time to dramatically reduce the time to respond with identical data.

Any questions? Post a reply below!

Best regards,
CM.


Example JSON output:



{
  "result": {
    "timestamp": 1533206838,
    "blocktivity_summary": [
      {
        "rank": "1",
        "ticker": "EOS",
        "name": "EOS",
        "activity": "7,882,938",
        "average_7d": "7,061,048",
        "record": "9,441,232",
        "market_cap": "$ 6.4 B",
        "AVI": "698",
        "CUI": "0.65%"
      },
      {
        "rank": "2",
        "ticker": "BTS",
        "name": "BitShares",
        "activity": "4,677,383",
        "average_7d": "4,680,029",
        "record": "6,112,075",
        "market_cap": "$ 0.431 B",
        "AVI": "6,150",
        "CUI": "0.39%"
      },
      {
        "rank": "3",
        "ticker": "STEEM",
        "name": "Steem",
        "activity": "1,466,320",
        "average_7d": "1,398,934",
        "record": "2,522,380",
        "market_cap": "$ 0.329 B",
        "AVI": "2,522",
        "CUI": "0.12%"
      },
      {
        "rank": "4",
        "ticker": "ETH",
        "name": "Ethereum",
        "activity": "759,340",
        "average_7d": "744,625",
        "record": "1,372,918",
        "market_cap": "$ 42 B",
        "AVI": "10",
        "CUI": " 100% blockchain capacity + 36,580 Unconfirmed Transactions"
      },
      {
        "rank": "5",
        "ticker": "BCH",
        "name": "BitcoinCash",
        "activity": "712,027",
        "average_7d": "154,081",
        "record": "712,027",
        "market_cap": "$ 13 B",
        "AVI": "31",
        "CUI": "29.43%"
      },
      {
        "rank": "6",
        "ticker": "BTC",
        "name": "Bitcoin",
        "activity": "230,905",
        "average_7d": "225,685",
        "record": "497,349",
        "market_cap": "$ 131 B",
        "AVI": "1.0",
        "CUI": "48.59%"
      },
      {
        "rank": "7",
        "ticker": "KMD",
        "name": "Komodo",
        "activity": "74,558",
        "average_7d": "58,468",
        "record": "74,558",
        "market_cap": "$ 0.150 B",
        "AVI": "282",
        "CUI": "0.00%"
      },
      {
        "rank": "8",
        "ticker": "ETC",
        "name": "EthereumClassic",
        "activity": "46,727",
        "average_7d": "53,248",
        "record": "106,666",
        "market_cap": "$ 1.6 B",
        "AVI": "17",
        "CUI": "2.70%"
      },
      {
        "rank": "9",
        "ticker": "GOLOS",
        "name": "Golos",
        "activity": "33,670",
        "average_7d": "34,962",
        "record": "336,089",
        "market_cap": "$ 0.007 B",
        "AVI": "2,739",
        "CUI": "0.00%"
      },
      {
        "rank": "10",
        "ticker": "LTC",
        "name": "Litecoin",
        "activity": "24,888",
        "average_7d": "24,644",
        "record": "226,968",
        "market_cap": "$ 4.5 B",
        "AVI": "3",
        "CUI": "1.03%"
      },
      {
        "rank": "11",
        "ticker": "DOGE",
        "name": "Dogecoin",
        "activity": "21,562",
        "average_7d": "22,572",
        "record": "88,928",
        "market_cap": "$ 0.346 B",
        "AVI": "35",
        "CUI": "0.76%"
      },
      {
        "rank": "12",
        "ticker": "DASH",
        "name": "Dash",
        "activity": "6,146",
        "average_7d": "8,578",
        "record": "593,191",
        "market_cap": "$ 1.7 B",
        "AVI": "2",
        "CUI": "0.51%"
      },
      {
        "rank": "13",
        "ticker": "SCR",
        "name": "Scorum",
        "activity": "5,759",
        "average_7d": "5,911",
        "record": "6,683",
        "market_cap": "$ 0.001 B",
        "AVI": "3,021",
        "CUI": "0.00%"
      },
      {
        "rank": "14",
        "ticker": "XMR",
        "name": "Monero",
        "activity": "4,124",
        "average_7d": "4,146",
        "record": "10,914",
        "market_cap": "$ 2.0 B",
        "AVI": "1",
        "CUI": "0.05%"
      },
      {
        "rank": "15",
        "ticker": "ZEC",
        "name": "Zcash",
        "activity": "4,074",
        "average_7d": "4,372",
        "record": "19,054",
        "market_cap": "$ 0.876 B",
        "AVI": "3",
        "CUI": "0.67%"
      }
    ]
  },
  "valid_key": true,
  "took": 0.50946
}
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

This is a really cool project that let us find out the real value of cryptocurrencies. Keep up the great work :)