jarvisx17 commited on
Commit
635a1e8
·
verified ·
1 Parent(s): 1ef4925

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -5
main.py CHANGED
@@ -35,11 +35,11 @@ async def read_root(request: Request):
35
 
36
  @app.get('/data')
37
  async def get_data(ticker: str, date: str, qty: int):
38
- # try:
39
- response = data_manager.get_equity_data(ticker, date, qty)
40
- return response
41
- # except:
42
- # return {"Timeout" : "Error"}
43
 
44
  @app.get('/stocks')
45
  async def get_stocks_data():
 
35
 
36
  @app.get('/data')
37
  async def get_data(ticker: str, date: str, qty: int):
38
+ try:
39
+ response = data_manager.get_equity_data(ticker, date, qty)
40
+ return response
41
+ except:
42
+ return {"Timeout" : "Error"}
43
 
44
  @app.get('/stocks')
45
  async def get_stocks_data():