I’m trying to do some stake-related calculations using numerapi inside python and I’m running into a few issues.
First, there seems to be a bug with
get_stakes() in that it doesn’t operate as advertised (indeed, it crashes). I already posted an issue on github about that one.
I found two other (functioning) API calls that seem to report stake information. The first is
stake_get() and it runs like this:
The second is
public_user_profile() which runs like this:
Note the different values. Which is correct?
The latter number is what’s reported by the numerai UI:
And it’s also what appears as the stake for the current round (250):
- What does the output of
- Why do the numbers from
- Why do neither of these stake measures (nor the value displayed under “NMR Staked” in the UI) reflect the total stake across all the four current rounds?
get_stakes()is fixed, should there really be three ways of getting stake information and if so shouldn’t they all return consistent results?
I realize my post touches on API questions and also on the whole complex business of staking. I’m eager for input from anyone who can help me understand either better!
Thanks so much in advance.