def get_symbol_name(result):
    """Returns the name used by this symbol based on availability"""
    if 'longName' in result:
        return result['longName']
    elif 'shortName' in result:
        return result['shortName']
    else:
        return result['symbol']