def METHOD_NAME(currency_selected):
    graphics.set_pen(graphics.create_pen(20, 20, 20))
    graphics.clear()
    graphics.set_pen(graphics.create_pen(100, 100, 100))
    graphics.text("Get", 0, 10, scale=1, spacing=1)
    graphics.text("data", 8, 16, scale=1, spacing=1)
    cu.update(graphics)
    gc.collect()
    # open the json file
    print('Requesting URL:')
    print(URL.format(currencies[currency_selected]))
    r = urequests.get(URL.format(currencies[currency_selected]))
    gc.collect()
    # open the json data
    data_obj = r.json()
    print('Data obtained!')
    r.close()
    return data_obj