It is KOLMafia's policy to avoid functionality to make it easier to write mallbots. mall_price is the only function available for getting prices from the mall, it gets the price of the 5th item available and only updates once per session.
No, mafia purchases the cheapest item in the mall. It's got more information that it is willing to share, but it will use that information on your behalf when it purchases.