DVinyl icon indicating copy to clipboard operation
DVinyl copied to clipboard

[Feature]: Price estimate for board games, from the BoardGameGeek marketplace

Open Dinth opened this issue 1 week ago • 1 comments

Before suggesting

  • [x] I searched the existing issues and did not find a similar request.

What problem would this solve?

Music and the card games have an Estimate button that tells me what the collection is worth. Board games do not, although BoardGameGeek publishes the copies on sale on its marketplace through the same API the board games plugin already uses. I would love to see what my board game shelf would sell for.

How could it work?

The existing Estimate button and window, on board game collections:

  • /thing?marketplace=1 returns, with each game, the copies on sale: an asking price, its currency and the condition of the copy.
  • A game is valued at the median asking price of the listings in the member's own currency. Nothing is converted, as in the rest of the app, so a game with no copy on sale in that currency gets no estimate.
  • Played copies are preferred over sealed ones, since board games have no condition field and a shelf is mostly played copies.
  • Listings are fetched twenty games per call (the most /thing takes) and kept in memory for an hour, because BGG asks applications to keep their calls few, about five seconds apart.
  • It needs nothing new: the same BGG_API_KEY, the existing collectionActions estimate and apiRoutes, no change to the core.

Two limits worth knowing:

  • These are asking prices, not sales. BGG publishes no sold history.
  • Coverage depends on the currency. On my 46 games, 43 get a price in EUR or USD and 34 in GBP.

Alternatives you considered

  • One call to BGG per game, as the other estimates do with their sources. It is simpler code, and BGG answered twelve such calls in a row without complaint, but it goes against their guidance on a large collection.
  • Converting currencies, so that every game gets a price. It would mean an exchange rate source, and the app never converts amounts anywhere else.

Would you like to help build it?

I could open a PR for it

In fact I already did: #240. I opened it before this issue, which is the wrong way round for CONTRIBUTING. Sorry about that. I am happy to rework it or drop it, depending on what you think here.

Dinth avatar Nov 22 '26 12:11 Dinth

Hey! Thank you for this, and no worries about the order, the PR is really well done :D I like the idea, and the choices you made (no currency conversion, median of asking prices, batching to stay gentle with BGG) all make sense to me, so I'd keep them as they are. I'll go through the PR in detail soon. It won't make it into the next bugfix release since it's a new feature, but it should land in the one after. No promises on timing though ;) Thanks a lot for testing it this carefully!

Kyonew avatar Nov 23 '26 18:11 Kyonew