STEEM POWER retention ratio of top 50 witnesses

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/steem-power-retention-ratio-of-top-50-witnesses Hello, this is @joviansummer(witness: @jswit). Some time ago there was a bit of discussion on discord witness chanel about witnesses' power-down/cashing-out. So out of curiosity I just checked current ratio of witnesses' own STEEM POWER(VESTS) and all-time producer reward(VESTS). The ratio is calculated by the following simple formula: ratio(%) = account's own SP(MV) / all-time producer reward SP(MV) * 100% Ratio value less than 100% indicates power-down. If witness does additional power-up or gets other types of reward(e.g., curation reward), the ratio may exceed 100%. This does not take witness' other accounts into consideration. All-time producer reward data is from @steemchiller's SDS API. Here is the result: rank account own_sp prod_sp ratio 1 justyy 2188.411MV 1284.2MV 170.41% 2 steemchiller 982.134MV 124...

파이썬(steem-python)에서 스팀잇 계정 정보 확인

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/rvj35-steem-python


steem-python에서 특정 스팀id에 대한 전반적인 정보를 확인하는 방법입니다. 예시만 보면 금방 알 수 있습니다. joviansummer의 계정 정보를 가져와 봅니다.

from steem import Steem

steem_id = 'joviansummer'
s = Steem()
user_info = s.get_account(steem_id)

위와 같이 하면 변수 user_info에 각종 정보가 딕셔너리(dict) 형식으로 할당됩니다. 전체 내용을 출력하거나 키(key)를 확인해서 어떤 항목이 있는지 알 수 있습니다.

# user_info 출력
print(user_info)

# 키(key)만 출력
for key in user_info:
  print(key)

키(key)를 알아냈으면 이제 필요한 값을 출력해 볼 수 있습니다.

# 현재 보유중인 스팀
print(user_info['balance'])
# 현재 보유중인 SBD
print(user_info['sbd_balance'])

현재 보유중인 스팀파워는 "vest"라는 단위의 수치로 확인할 수 있습니다.

# 스팀파워(단위: vest)
print(user_info['vesting_shares'])

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기