RE: Personal SteemMonsters cards usage + winratio + DEC | 23rd season
You are viewing a single comment's thread:
great! i'd like to get a report for me, too. How did you create that script?
0
0
0.000
You are viewing a single comment's thread:
great! i'd like to get a report for me, too. How did you create that script?
Basically I do it in two steps. First, I query battle data from Steemmonsters API and save it to my local database.
https://api.steemmonsters.io/transactions/history?limit=1000&types=sm_battle&from_block=36080128
From this API you can query 1000 battles at once, so you need to take care of
from_block
parameter. I start from the latest block, query 1000 battles, remember the lowest block number and in the next iteration start from this new block number (from_block
parameter).Last season started at block
36437549
and ended at block36875825
.This is how the example record looks like:
The field
result
contains the most important data like player names, dec reward, used cards.When all data are in the local database you have to only iterate over all battles and count DEC rewards, and usage / winratio for each player.
PS I plan to make a simple website where anyone can check these stats at any time.
MONSTERS
SUMMONERS
Wow that would be awesome! Think all this work consumes a lot of your time?
Data analysis is my job, so I like to do it even for a game like SteemMonsters :) And if I have these stats for myself, why not share with others.
MONSTERS
SUMMONERS
Great thing you're doing with the analysis. Even although it is your job, think you're making a lot of people happy with it.
What data are you analysing jobwise?