Skip to content

Read purse and inventories from the v2 Hypixel profile layout - #23

Merged
Pankraz01 merged 1 commit into
mainfrom
fix/hypixel-v2-member-fields
Sep 13, 2026
Merged

Pankraz01 merged 1 commit into
mainfrom
fix/hypixel-v2-member-fields

Conversation

@Pankraz01

Copy link
Copy Markdown
Contributor

Summary

  • _coin_purse reads members.<uuid>.currencies.coin_purse (v2 profile layout) and falls back to the legacy member-root coin_purse
  • _inventory looks under members.<uuid>.inventory first, then at the member root
  • Effect: /api/v1/players no longer reports purse, armor, equipment as unavailable for every player, and /api/v1/player-finance can compute knownTotal again (MarketGuard's Player HUD showed Bank + purse: n/a and no net worth because of this)

Test plan

  • python -m pytest -q — 130 passed; profile fixture switched to the v2 layout, new unit test covers v2 + legacy for both helpers
  • after deploy: QUERY /api/v1/players for a player with the SkyBlock API enabled returns a numeric profile.wealth.purse and non-empty armor

🤖 Generated with Claude Code

…ile layout

Hypixel's v2 profile payload keeps the coin purse under members.<uuid>.currencies
and the inventories under members.<uuid>.inventory. The player and finance
services still read the legacy member-root fields, so every player reported
purse, armor and equipment as unavailable and the finance known total was
never computed. Both helpers now prefer the v2 layout and fall back to the
legacy keys.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Pankraz01
Pankraz01 merged commit f05bbc7 into main Sep 13, 2026
1 check passed
@Pankraz01
Pankraz01 deleted the fix/hypixel-v2-member-fields branch September 13, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant