If Everyone Powered Up And Voted On The Same Post

Words
146
Reading
1 min
Listen
Play
8y

So there you have it; if everyone powered up and voted on the same post, the total vote value at the time of writing is roughly $14000!

Obviously, this will increase with time as the value of STEEM:SBD increases and as the total supply of steem increases.

Bear in mind, this program will need modifying if the value of SBD moves away from the $1 mark again.

# -*- coding: utf-8 -*-
"""
Created on Sun Nov  4 00:00:48 2018

@author: sisygoboom
"""

from beem.steem import Steem
from beem.instance import set_shared_steem_instance
import requests

# declare nodes
nodes = [
        'https://api.steem.house',
        'https://api.steemit.com',
        'https://rpc.buildteam.io',
        'https://steemd.steemitdev.com',
        'https://steemd.steemitstage.com',
        'https://steemd.steemgigs.org'
        ]

# create steem instances
s = Steem(nodes)
set_shared_steem_instance(s)

# get steem data from coin market cap
cmc = requests.get('https://api.coinmarketcap.com/v2/ticker/1230/')
cmc_data = cmc.json()
steem_supply = cmc_data['data']['total_supply']
# power up all steem and calculate value of combined vote
sbd = s.sp_to_sbd(steem_supply)
    
print("$" + str(round(sbd,2)))
If Everyone Powered Up And Voted On The Same Post | Ecency