import requests


def get_price_last(url_base: str, symbol: str) -> str:
    """
    This function is used to get the last price of a determined symbol, the last price is the most recent one.
    Args:
        url_base:
            url_base is the parameter containing the principal URL to call the endpoint.
            There are many kind of url_base, usually one for test and the other for real transaction.
        symbol:
            The symbol you want the most recent price.

    Returns:
        It returns the price in a string format

    """
    url_price_last = "/api/v3/ticker/price"
    price_last = requests.get(url_base + url_price_last, params={"symbol": symbol})
    price_last.raise_for_status()

    return price_last.json()['price']