def parse_token_data(data, token_name):
    """Reads amount of token from get_data() then return in float.

    Args:
        data: data from get_my_token().
        token_name: Ex. 'TLM'
    Returns:
        amount in float.

    """

    for i in data['tokens']:
        if token_name in i.values():

            return float(i['amount'])

    return float(0)