Moved the function to get auctions from a snapshot out of the api and into a utility function.