Hi there.
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:
napi.stake_get("chunkyricecake")
'51.190740969723066000'
The second is public_user_profile()
which runs like this:
napi.public_user_profile("chunkyricecake")["totalStake"]
'50.014825201822514796'
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):
Questions:
- What does the output of
stake_get()
mean? - Why do the numbers from
stake_get()
andpublic_user_profile()
differ? - 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?
- Once
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.
PRC