Posts

INDEX dividends report - How much dividends was paid out from Jan 1 to Jan 25 + Python codes.

avatar of @amr008
25
@amr008
·
·
0 views
·
3 min read

Good morning to everyone , I am back with another report today of a promising and one of a kind token on Hive - INDEX .

Official site - https://he-index.io/ Official account - @he-index Buy it at - H-E Link

Previously I have talked about what INDEX token is , what all tokens does it hold inside it and how much each token inside the INDEX is worth - you can take a look at it here if you are not sure what INDEX is -

But today I am going to just talk about the dividends that has been paid out by INDEX in the month of Jan ( Jan 1st to Jan 25th ) . Jan 26th to Feb 2nd will be posted in the next post .

Codes

import shelve  
import pandas as pd 
import json 
from datetime import datetime as dt 
s=shelve.open('Blocks\Blockchain') # Where I have stored info from Jan 1 to Jan 25 
 
df=pd.DataFrame.from_dict(s.items()) # Converting to DataFrame 
df.columns=['Blocks','Transactions'] # Renaming columns 
 

I have commented on all necessary codes explaining what it does , let's jump to important codes -

all_drips_list=[] 
for i in range(0,len(df)): 
    if(df['Transactions'][i]['Transaction']['action']=='transfer'): 
        json_index=json.loads(df['Transactions'][i]['Transaction']['logs']) 
        if 'events' in json_index: 
            if(json_index['events'][0]['data']['from']=='he-indexrewards'): 
                all_drips_list.append([json_index['events'][0]['data']['to'],json_index['events'][0]['data']['symbol'],json_index['events'][0]['data']['quantity'],pd.to_datetime(df['Transactions'][i]['Date']).date()])     
 
df_drips= pd.DataFrame(all_drips_list) 
df_drips.columns=['To','Symbol','Quantity','Date'] 
             

Steps =

  1. Search each transaction to see if it is a transfer

  2. If 1 is yes , store the logs in 'json_index'

  3. After 2, search in the logs if the sender is '@he-indexrewards'

  4. If 3 is yes , store the transfer data into a list named 'all_drips_list'

  5. Store that in a DataFrame and rename the columns .

Which all tokens does it pay in?

set(df_drips['Symbol']) 

Output = {'ARCHON', 'BEE', 'HUSTLER', 'LEO', 'NEOXAG', 'PAL', 'SIM', 'STEM', 'WEED'}

Totally 9 tokens as of now :) but I don't think HUSTLER is one of the tokens inside INDEX , I believe they received HUSTLER from a user ( which they didn't expect lol) and paid it out , am I wrong @jongolson @blainjones ?

Total Payout to all users for the period Jan 1 to Jan 25 .

TokenAmount
ARCHON17.1820
BEE2.6980
HUSTLER1999.9920
LEO0.9140
NEOXAG6.5090
PAL27.0330
SIM604.5910
STEM95.3900
WEED0.5400

This is actually pretty good , why? because INDEX is just 2 months old as of tomorrow . It is young but paying good dividends according to me .

Date wise dividend payout

SIM

More of less it has remained constant - the only increase is on 14th but it seems to be because of the fact that 13th no SIM was paid out.

WEED

We don't see it being paid out all the days because it is still in low amounts .

NEOXAG

STEM

Note: Don't consider the 26th because not all the transaction from that date is available in the data I have taken

LEO

BEE

ARCHON

For certain tokens the dividends has been stable but not for all . We have to remember that INDEX is one of a kind and is still in early stages . We are already seeing increased payouts compared to December so going forward it can only provide better results :)


User data

I can extract dividends for a particular user - like -

df_drips_user=df_drips[df_drips['To']=='jongolson'] 
df_drips_user.groupby(by='Symbol').sum() 

Output -

If you want yours - let me know in the comments .


Follow me on noise.cash where I promote LEO / HIVE - https://noise.cash/u/AMR Follow me on twitter where I don't know what I am doing - https://twitter.com/NaveshSapad


Credits:@mariosfame


Regards,
MR.

Posted Using LeoFinance Beta