I'm mucking around with some lua in an attempt to reinvent the wheel, but I have question just the same:
Is there a way (a function) to query auctioneer to find the cheapest current buyout price for an item in the snapshot? So far I can only seem to find GetItemSnapshotMedianBuyout which gives, well, the median.
What I am trying to do is ask Auctioneer to tell me the current best prices for a number of items so that I may calculate a composite price from the snapshot for, say, the components for a Primal Might.
Oh well. That seems too much effort for not enough gain. I was hoping there was already tools in Auctioneer I could simply manipulate to do my bidding rather than having to build them from scratch. But after having boxed about with it for an evenings worth of time, it is obvious that I will never recover the time investment to make what I want, compared to going back to pen and paper.
Hmm, actually there's a function in AucStatistic.lua that does almost exactly what you want - getAuctionWithLowestBuyout(itemKey, ahKey). It's just not exposed in the public interface.
Nifty, thanks! I was searching for "getitemsnapshotlowbuyout" or "...minbuyout" etc, etc. But of course this had to be named just slightly differently. :P
Does there also happen to be a getAuctionWithLowestBid while we're at it? (Rethorical, I will check for myself later now that I know where to look) :)