import requests


def get_decimal_max(api_url: str, currency: str) -> int:
    """Get the maximum amount of decimals permitted for a currency

    Args:
    api_url: The API URL for the Gemini Exchange
    currency: The cryptocurrency the bot is monitoring

    Returns:
    tick_size: An integer of decimal places permitted
    """
    # Instantiate Gemini and query the price
    api_query = "/v1/symbols/details/%s" % (currency + "usd").lower()
    symbol_details = requests.get(api_url + api_query).json()
    tick_size = str(symbol_details.get('tick_size'))[3:]
    return int(tick_size)