
Despite having a full-time job, I'm finding what time I can to work on improving SplinterGuide each week (and, especially, weekend...). This past weekend I was looking into getting some basic price data available on SplinterGuide, and would like to share what I have so far.
On the homepage I wanted to display basic information on key tokens in the Splinterlands universe. For SPS and DEC it was very easy as I queried the data from Coingecko's API. I toyed around with making a custom chart with chart.js but struggled a bit, so ended up using the CoinStats price chart widget instead. May look again at chart.js in the future for more flexibility.

At the top I wanted to give an at-a-glance view of the crypto markets, including non-Splinterlands tokens. I thought the marquee widget by CoinMarketCap was quite good so added that in.

Next I wanted to get prices for tokens only listed on Hive, such as Vouchers, various packs, Licenses, GLX, GLGT, and those sweet, sweet PART and SHARD tokens from the new Golem Overlord game from Splex. I struggled to figure out how to query the data from Hive Engine, so I turned to ChatGPT for some coding help. This was essentially my first time asking ChatGPT for help with programming, so I wasn't sure what I was going to get. Let me tell you - I was AMAZED. I wasn't very familiar with how to deal with the JSON RPC 2.0 structure of the Hive Engine API, so I just asked ChatGPT - here's a partial response it gave me, without hesitation.

Mind. Blown. Along the way I found a few things that weren't working quite as expected, so I simply gave ChatGPT the issues I was facing and it would quickly (and very politely I might add...) help resolve the problems. When we both struggled to figure it out, it would add error handling code and suggest other things for me to check. After some back and forth I was able to get the code to work and pull down the price of a specific HE token, after which it was relatively easy to extend it to any other token I wanted.

From this experience resolving a fairly simple programming problem with ChatGPT, I found that ChatGPT is especially powerful when given the right guidance. Guidance needs to be specific, structured, and detailed in order for ChatGPT to get on the right path. I was also amazed by the amount of context it can understand and retain throughout the conversation (e.g. able to reference "the code we wrote earlier where we did XYZ"). Giving it specific instructions (such as "let's run that as a loop instead of 3 if statements" or "put the first 3 statements in a single line of code") saved me tons of time coding as well.
Afterwards, I decided to go add some very basic card price information as well on the Card detail pages, as you can see here:

For this part I also struggled a bit with decoding the JSON initially, and ChatGPT sorted me out. To be honest while I could've figured this out with the help of AI, it would probably have taken me many, many hours of troubleshooting and several weekends of getting back to it. I just don't program full-time so basic things like curl requests and JSON RPCs aren't second nature to me!
Anyways hope you enjoy the new features. There will be many more to come.
Sweet updates, keep it up!
Posted Using LeoFinance Beta
!1UP Good work!
!PGM !PIZZA
What do the league ratings mean on the monsters list? I see the numbers such as 5.5, etc.
Those are the ratings, out of 10, for each card by league. In fact I wrote an article about the methodology for that last week :) https://peakd.com/sps/@bravetofu/splinterguide-card-rating-methodology-or-splinterlands
Hope that helps!
It does, thanks!
You have received a 1UP from @underlock!
@monster-curator, @leo-curator, @vyb-curator, @pob-curator, @neoxag-curator
And they will bring !PIZZA 🍕.
Learn more about our delegation service to earn daily rewards. Join the Cartel on Discord.
$PIZZA slices delivered:
@curation-cartel(7/20) tipped @bravetofu
Excellent addition, I like everything new that has been added, on the other hand, CHAPGPT is super powerful, but it is as you say, you have to use the correct Prompt, this is something that I do not handle much, but, really if they can be of great help. Thanks for sharing.
Do you know you can win a Chaos Legion pack and many other things just by following some simple steps ?? Check out our Latest Daily Showcase and Participate our latest Giveaway. Thanks
Thanks for sharing! - @mango-juice
