def get_price_as_of(self, stock: Commodity, on_date: datetime):
        """ Gets the latest price on or before the given date. """
        # return self.get_price_as_of_query(stock, on_date).first()
        prices = PriceDbApplication()
        prices.get_prices_on(on_date.date().isoformat(), stock.namespace, stock.mnemonic)
Gets the latest price on or before the given date.