Rewards API rework
complete
mrq02
Currently it is possible to use math to determine a user's rewards for the current/pending week, but if there's an error with an API call, it can skew the results. Therefore it would be better if we could get this information directly from Rally with a JIT call instead; ideally one that basically just took a coinsymbol and wallet_id and returned all the data from the Rewards tab on the website. Also there is currently no way to get the Avg. Balance this week nor the Avg. Balance last 4 weeks. Really as it stands the existing Rewards APIs aren't as useful with v2 of rewards and could probably use a thorough rework.
Russell Spence
complete
Russell Spence
in progress
Russell Spence
under review
I'm going to take this. Not yet spec'd out or in a ticket yet.
Russell Spence
Something I definitely should have asked last week - what would this be used for? I'm not understanding the use case.
mrq02
Russell Spence: Rallybook.io is currently already using this data so people can track their pending rewards and chart rewards history, things like that. But it's often incorrect because it's using the old rewards API and trying to figure it out using math (e.g. you hold x% of coin, that coin is getting y% of the rewards pool, therefore you should get approximately z rewards this week). But as a general rule, there shouldn't be data on the website that
can't
be obtained via API. Because that creates a reason to build a web scraper, which no one wants.Alex Phelps
@Russell Spence will provide updates soon
Skot Leach
Russell Spence
J
Jennifer Tran
Agree with this! I "guess" how many rewards I can get. I think being able to get an estimate for how many rewards you can get can encourage more users to purchase more coins if they have a goal to get x rewards each week.