async def conversionrate(self, currency1, currency2):
    'Function to convert different currencies'
    params = {'base': currency1, 'symbols': currency2}
    CONVERSIONRATES = 'https://api.exchangeratesapi.io/latest'
    try:
        async with aiohttp.ClientSession() as session:
            async with session.get(CONVERSIONRATES, params=params) as resp:
                data = (await resp.json())
        conversion = data['rates'][currency2]
        return conversion
    except Exception as e:
        print(e)
        return None
Function to convert different currencies
async def conversionrate(self, currency1, currency2):
    
    params = {'base': currency1, 'symbols': currency2}
    CONVERSIONRATES = 'https://api.exchangeratesapi.io/latest'
    try:
        async with aiohttp.ClientSession() as session:
            async with session.get(CONVERSIONRATES, params=params) as resp:
                data = (await resp.json())
        conversion = data['rates'][currency2]
        return conversion
    except Exception as e:
        print(e)
        return None