LBI subscription - Jan 1 to Jan 21st . DATA and CHARTS with Code inside.

avatar

Good morning to all . First of all , LeoFinance is faster and smoother now because of the Lightning DB.

More - https://twitter.com/financeleo/status/1352816970744389633?s=21

Coming to the main point of this post - LBI . I have always been on a dual mind after the airdrop announcement whether to buy more LBI or stake the LEO , finally I decided to split it in half and buy 50% LBI and 50% LEO . Now let us take a look at how much LBI was subscribed from Jan 1st to Jan 21st .

First things first - For those who isn't interested in codes - This is the amount of LBI subscribed everyday from Jan 1st to Jan 21st

DateAmount of LBI subscribed
2021-01-01839.21
2021-01-02326.846
2021-01-031205.034
2021-01-047.611
2021-01-051921.615
2021-01-06316.585
2021-01-0731.483
2021-01-08600.41
2021-01-093421.695
2021-01-11233.135
2021-01-121552.322
2021-01-1335.578
2021-01-1474.237
2021-01-1541.956
2021-01-16808.33
2021-01-17354.832
2021-01-1817.742
2021-01-192104.872
2021-01-20709.805
2021-01-21195.864

image.png

Constant raise and drop . Somedays it is less than 100 and somedays more than 1k . So to get better picture let's see Mean LBI sent by @lbi-token .

DateMean LBI sent from @lbi-token
2021-01-0164.555
2021-01-02108.949
2021-01-0348.201
2021-01-047.611
2021-01-0591.505
2021-01-0631.659
2021-01-077.871
2021-01-08120.082
2021-01-09213.856
2021-01-1115.542
2021-01-1281.701
2021-01-1311.859
2021-01-146.186
2021-01-158.391
2021-01-1644.907
2021-01-1725.345
2021-01-184.436
2021-01-1987.703
2021-01-2078.867
2021-01-2119.586


image.png

It is safe to say by looking at above charts that NO LBI SUBSCRIPTION HASN'T STOPPED . Nowhere near stopping the subscription , users are actively subscribing.

Coming to the code - I have downloaded all the Hive-Engine Data using Hive-Engine API and kept it in a shelve ( key,value pair )

import shelve 
import pandas as pd
import json
from datetime import datetime as dt

s=shelve.open('Blocks\Blockchain')# This is where I have kept the data .

df=pd.DataFrame.from_dict(s.items()) # Transferring it into Dataframe 
df.columns=['Blocks','Transactions'] # Changing the column names

The above is of less importance , we will get into the main part in the following section , anyway the table looks like this -


image.png

lbi_transfer_list=[]
for i in range(0,len(df)):
    if(df['Transactions'][i]['Transaction']['action']=='transfer'): # Taking only transfer data
        json_lbi_data=json.loads(df['Transactions'][i]['Transaction']['logs']) # Taking logs of that particular transaction
        if 'events' in json_lbi_data:
            if(json_lbi_data['events'][0]['data']['from']=='lbi-token' and json_lbi_data['events'][0]['data']['symbol']=='LBI'): # Two conditions must be met - 1. It must be transferred from @lbi-token account and 2. Symbol must be LBI
                print(json_lbi_data['events'][0]['data']['from'],json_lbi_data['events'][0]['data']['to'],json_lbi_data['events'][0]['data']['quantity'],pd.to_datetime(df['Transactions'][i]['Date']).date()) # Printing the result
                lbi_transfer_list.append([json_lbi_data['events'][0]['data']['from'],json_lbi_data['events'][0]['data']['to'],json_lbi_data['events'][0]['data']['quantity'],pd.to_datetime(df['Transactions'][i]['Date']).date()]) # Storing it in the list

The output looks something like this -


image.png

Now to get a better picture let us put it in DataFrame -

df_lbi = pd.DataFrame(lbi_transfer_list)
df_lbi.columns=['From','To','Quantity','Date']
df_lbi

The table looks like -


image.png

df_sum=df_lbi.groupby(by=['Date']).sum() # Groupby function on Date column.

image.png

Then I just put this in chart using matplotlib in python .

Now I can gather info for particular user too like this -

df_lbi[df_lbi['To']=='taskmaster4450le']

image.png

This is for @taskmaster4450le . To get sum -

df_lbi[df_lbi['To']=='taskmaster4450le']['Quantity'].sum()

Output - 2500 LBI .

If you want LBI data from Jan 1 to Jan 21 for your account , just comment here I will get it for you :)


Regards,
MR.

Posted Using LeoFinance Beta



0
0
0.000
9 comments
avatar

I would like to see my data. I don't have much but I have managed to finally get 20 LBI today.

Posted Using LeoFinance Beta

0
0
0.000
avatar

Hey , from Jan 1 to Jan 21 this is your data :) -

image.png

Total between those dates = 15.053

Posted Using LeoFinance Beta

0
0
0.000
avatar

Thanks. I was also testing to see whether the 5 LBI prize I got from the weekly contest counted. Technically I got 20.053 but I only sent 15.053 LEO during the period.

0
0
0.000
avatar

This is only for subscription . The 5 LBI you won is already subscribed by the user who sent you so it won't be included here .

0
0
0.000
avatar

It would be interesting to see the charts on the profits made with the purchase of the LBI token. I would love to see my purchase and whether I'm making any profits or not. Had I kept the liquid LEO would that been good and converted to HIVE when it was 1 LEO for 4 HIVE. Nice work overall. cheers

0
0
0.000
avatar

Oh that would be interesting to see. Will try to see if I can gather the data like when people made the purchase of LBI and what was the worth of LEO then .

Posted Using LeoFinance Beta

0
0
0.000
avatar

Interesting stats here. I haven't used Python. Maybe I have to look at that direction.

Posted Using LeoFinance Beta

0
0
0.000
avatar

Thank you and sure , if you need any help with Python let me know I will help as much as I can.

Posted Using LeoFinance Beta

0
0
0.000