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/mjeae-steem-python


steem-python으로 업보팅을 하는 코드입니다. 오토보팅 서비스와 업보팅 서비스에서 사용중인 코드인데 정리해 둡니다.

업보팅을 수행하려면 포스트 식별자(id)를 알아야 합니다. 예를 들어 제가 어제 올린 글의 주소는 아래와 같습니다.

https://steemit.com/hive-141029/@joviansummer/jsup-templar-kr-id

여기서 포스트 식별자는 스팀 ID부터 시작해서 이어지는 뒷부분, 즉 아래와 같습니다.

joviansummer/jsup-templar-kr-id

예를 들어 jsup 계정으로 이 포스트에 보팅 비중 99.55%로 업보팅을 하는 상황이라면, 아래와 같이 코드가 구성됩니다. 당연히 업보팅을 하기 위해 포스팅키도 필요합니다.

from steem import Steem

# 보팅하는 id: jsup
VOTER_ID = 'jsup'
# jsup의 포스팅키: abcd라고 가정
POSTING_KEY = 'abcd'

# 포스트 식별자: joviansummer/jsup-templar-kr-id 
POST_ID = 'joviansummer/jsup-templar-kr-id'

# 보팅 비중: 99.55%
VOTE_WEIGHT = '99.55'

# 업보팅 수행 
user = Steem(keys=[POSTING_KEY])
user.commit.vote(POST_ID, float(VOTE_WEIGHT), VOTER_ID)

업보팅 코드 자체는 매우 간단한 것을 볼 수 있습니다. 실제로 코딩을 할 때는 업보팅 자체보다 보팅 비중 계산, 포스트 식별자 확인, 예외 처리 등 다른 부분이 훨씬 작업이 복잡합니다.

Comments

Popular posts from this blog

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

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

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