Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,13 +39,14 @@ def get_stock_price(symbol: str) -> float:
|
|
39 |
Args:
|
40 |
symbol: A string representing the valid stock symbol (eg., 'meta' or 'aapl').
|
41 |
"""
|
|
|
42 |
# api_url = 'https://api.api-ninjas.com/v1/stockprice?ticker={}'.format(symbol)
|
43 |
# response = requests.get(api_url, headers={'X-Api-Key': 'tLxWjj6xXdYXkyajGKBdKQ==ncmATTD1rqr2s2Hb'})
|
44 |
# if response.status_code == requests.codes.ok:
|
45 |
# return (response.json()['price'])
|
46 |
# else:
|
47 |
# return ("Error:", response.status_code, response.text)
|
48 |
-
|
49 |
|
50 |
final_answer = FinalAnswerTool()
|
51 |
|
|
|
39 |
Args:
|
40 |
symbol: A string representing the valid stock symbol (eg., 'meta' or 'aapl').
|
41 |
"""
|
42 |
+
return None
|
43 |
# api_url = 'https://api.api-ninjas.com/v1/stockprice?ticker={}'.format(symbol)
|
44 |
# response = requests.get(api_url, headers={'X-Api-Key': 'tLxWjj6xXdYXkyajGKBdKQ==ncmATTD1rqr2s2Hb'})
|
45 |
# if response.status_code == requests.codes.ok:
|
46 |
# return (response.json()['price'])
|
47 |
# else:
|
48 |
# return ("Error:", response.status_code, response.text)
|
49 |
+
|
50 |
|
51 |
final_answer = FinalAnswerTool()
|
52 |
|