Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -45,6 +45,7 @@ async def get_stocks_data(ticker: str, intervals: int, days: int):
|
|
45 |
async def get_chain(ticker: str):
|
46 |
try:
|
47 |
response, exp = fetcher.fetch_option_chain(ticker).to_dict(orient="records")
|
|
|
48 |
return {"data" : response}
|
49 |
except:
|
50 |
return {"Timeout" : "Error"}
|
|
|
45 |
async def get_chain(ticker: str):
|
46 |
try:
|
47 |
response, exp = fetcher.fetch_option_chain(ticker).to_dict(orient="records")
|
48 |
+
print(response, exp)
|
49 |
return {"data" : response}
|
50 |
except:
|
51 |
return {"Timeout" : "Error"}
|