API JSON响应为空

我的目标是使用Flask运行我的Python程序,从Financialmodelingprep.com使用我正在使用的API。我创建了一条路线并定义了文档中所述的功能。我所做的唯一编辑就是将股票代码作为参数传递给函数,以便当我使用股票代码命中端点时,它将在浏览器的JSON对象中显示该代码的数据。

当我运行程序并到达端点时,我在anaconda终端中收到200响应,但浏览器仅显示一个空的JSON响应,如下所示:{}

这是我的代码:

from flask import Flask
try:
    # For Python 3.0 and later
    from urllib.request import urlopen
except ImportError:
    # Fall back to Python 2's urllib2
    from urllib2 import urlopen

import json


#instatiating the Flask Class. "__name__" references the name of the current module being worked with which is hello-world.py
app = Flask(__name__)

# Instaniating a routeRoute
@app.route('/stock/profile/<string:symbol>')
def get_jsonparsed_data(symbol):

    """
    Receive the content of ``url``, parse it as JSON and return the object.

    Parameters
    ----------
    url : str

    Returns
    -------
    dict
    """
    response = urlopen(url)
    data = response.read().decode("utf-8")
    return json.loads(data)

symbol=None
url = "https://financialmodelingprep.com/api/v3/company/profile/{}?apikey=myapikeywashere".format(symbol)