vegaprotocol / vega

A Go implementation of the Vega Protocol, a protocol for creating and trading derivatives on a fully decentralised network.
https://vega.xyz
GNU Affero General Public License v3.0
37 stars 21 forks source link

[API]: Show initial score on live scores API #11663

Open JonRay15 opened 1 week ago

JonRay15 commented 1 week ago

Summary

The live score API below at the end of an epooch gives each team's final score for that epoch.

https://api.n00.testnet.vega.rocks/api/v2/games/team-scores?filter.gameIds=ffe85b4cc20baa4f869cf89f8a36a1f3f6eceecf1c400d6f3c11189d58a01503

But it then is not updated again until the next refresh ... which means if you uery it for the CURRENT epoch you get no info so the FE is showing "no data".

Ideally the Core would also publish a starting score for the next epoch, which obviously will be zero for everyone but would only show eligible parties. This would mean the FE could show the correct thing.

JonRay15 commented 1 week ago

Is it even possible to do this?

My fear is to determine the list of "eligible parties" the only thing we'll really be able to do is look at ALL TEAMS which is not practical.

Maybe a workaround would be to do all parties present in epoch n-1 and show those parties with a score of zero to start the epooch?