text_html_output_1.png
from kaggle_secrets import UserSecretsClient

import requests

import requests
from kaggle_secrets import UserSecretsClient
user_secrets = UserSecretsClient()
IEX_CLOUD_API_TOKEN = 'Tpk_ddf77a77f6e7464390bb2adc85a2be11'
secret_value_0 = user_secrets.get_secret('IEX_CLOUD_API_TOKEN')
symbol = 'AAPL'
api_url = f'https://sandbox.iexapis.com/stable/stock/{symbol}/quote?token={IEX_CLOUD_API_TOKEN}'
data = requests.get(api_url).json()
data