You are viewing a single comment's thread from:

RE: Personal SteemMonsters cards usage + winratio + DEC | 23rd season

in #steemmonsters5 years ago

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 block 36875825.

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.


..
Playerschneegecko
Battles analyzed417
DEC earned38484
Season23

MONSTERS

Usage%MonsterWLWinratioDEC
34.53%Cocatrice964866.67%14424
33.09%Creeping Ooze885063.77%13941
31.65%Lord Arianthus815161.36%12214
24.94%Swamp Thing663863.46%9950
21.82%Earth Elemental553660.44%8293
21.58%Elven Cutthroat583264.44%8912
16.55%Feral Spirit422760.87%6471
16.07%Spirit of the Forest462168.66%6557
12.47%Crustacean King312159.62%4096
11.03%Brownie311567.39%4745
10.79%Armorsmith311468.89%4729
10.55%Javelin Thrower251956.82%3655
10.07%Centaur301271.43%4327
9.83%Enchanted Pixie221953.66%3246
9.59%Angel of Light291172.50%4681
9.59%Goblin Shaman251562.50%3797
8.63%Serpentine Soldier231363.89%3790
8.39%Silvershield Bard26974.29%4088
8.39%Medusa181751.43%2497
8.39%Silvershield Paladin181751.43%2650
8.15%Gold Dragon221264.71%3168
8.15%Wood Nymph191555.88%2726
7.91%Kobold Miner191457.58%3026
7.67%Elemental Phoenix171553.12%2613
7.19%Cerberus171356.67%2589
7.19%Exploding Dwarf191163.33%3259
6.71%Flame Imp151353.57%2242
6.47%Divine Healer151255.56%2352
6.00%Goblin Sorcerer16964.00%2347
6.00%Pirate Archer141156.00%2025
6.00%Mischievous Mermaid151060.00%2268
6.00%Lord of Darkness141156.00%1873
5.52%Crystal Werewolf15865.22%2257
5.04%Peaceful Giant12957.14%1797
5.04%Skeleton Assassin13861.90%1709
4.80%Magi Sphinx91145.00%1526
4.56%Defender of Truth11857.89%1691
4.56%Hydra91047.37%1533
4.56%Mushroom Seer10952.63%1477
4.32%Fiendish Harpy12666.67%1902
4.32%Highland Archer10855.56%1543
4.32%Naga Warrior12666.67%1597
4.08%Ruler of the Seas10758.82%1600
4.08%Dwarven Wizard61135.29%1075
4.08%Goblin Chef12570.59%2023
3.84%Magi of the Forest8850.00%1332
3.84%Mermaid Healer8850.00%1142
3.60%Cyclops51033.33%525
3.12%Electric Eels11284.62%1506
3.12%Flesh Golem7653.85%1130
3.12%Giant Roc4930.77%647
3.12%Corrupted Pegasus9469.23%1356
2.88%Undead Priest8466.67%1014
2.88%Spineback Turtle7558.33%783
2.64%Stone Golem6554.55%966
2.40%Imp Bowman6460.00%785
2.16%Divine Sorceress7277.78%1030
2.16%Enchanted Defender4544.44%650
2.16%Serpent of the Flame4544.44%866
2.16%Peacebringer3633.33%498
1.92%Sacred Unicorn3537.50%436
1.92%Sea Genie6275.00%765
1.92%Pirate Captain4450.00%386
1.68%Haunted Spirit6185.71%819
1.44%Spineback Wolf4266.67%668
1.44%Water Elemental3350.00%328
1.44%Manticore3350.00%444
1.44%Sabre Shark2433.33%177
1.44%Haunted Spider5183.33%551
1.20%Black Dragon2340.00%232
1.20%Fire Demon3260.00%432
1.20%Raging Impaler2340.00%231
1.20%Silvershield Knight3260.00%499
1.20%Silvershield Warrior1420.00%154
1.20%Prismatic Energy3260.00%258
1.20%Air Elemental1420.00%161
0.72%Fire Beetle30100.00%459
0.72%Skeletal Warrior2166.67%274
0.72%Silvershield Archers30100.00%560
0.72%Minotaur Warrior1233.33%220
0.48%Shin-Lo1150.00%107
0.48%Lightning Dragon20100.00%289
0.48%Frost Giant1150.00%154
0.48%Dragonling Bowman20100.00%212
0.48%Grumpy Dwarf20100.00%337
0.24%Undead Archer10100.00%162
0.24%Red Dragon10100.00%137
0.24%Twisted Jester10100.00%128
0.24%Animated Corpse10100.00%181
0.24%Minotaur Warlord010.00%0
0.24%Molten Ogre010.00%0

SUMMONERS

Usage%SummonerWLWinratioDEC
20.14%Prince Rennyn523261.90%7640
13.43%Plado Emberstorm332358.93%5305
12.23%Tyrus Paladium351668.63%5289
10.31%Selenia Sky291467.44%4129
6.24%Valnamor141253.85%2065
5.28%Xander Foxwood13959.09%1941
5.04%Kiara Lightbringer13861.90%2219
4.32%The Peakrider10855.56%1488
3.84%Crypt Mancer10662.50%1278
3.36%Talia Firestorm7750.00%1171
3.12%Xia Seachan8561.54%883
3.12%Alric Stormbringer6746.15%914
2.88%Lyanna Natura7558.33%1081
1.92%Daria Dragonscale5362.50%731
1.92%Zintar Mortalis5362.50%802
1.44%Jarlax the Undead4266.67%509
0.96%Archmage Arius040.00%0
0.48%Malric Inferno1150.00%203
Sort:  

PS I plan to make a simple website where anyone can check these stats at any time.

Wow that would be awesome! Think all this work consumes a lot of your time?

Loading...

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.029
BTC 65844.70
ETH 3445.75
USDT 1.00
SBD 2.68