
The Lua API will see things as it finds them, and by the time it runs through, the earliest items which are expiring first might not be available, even though your cached data thinks they exist.

You can use the in game Lua API to cache your data, but then you're depending on it to have every item, which isn't possible.

It also is updated about once per hour, assuming Blizzard's web auction house API is working. The web API cannot be accessed in the game, as noted.
