Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -98,7 +98,7 @@ async def get_stocks_data(ticker: str = Query(..., description="Enter your stock
|
|
98 |
@app.get('/signal', response_model=SIGNAL, responses={200: {"description": "Successful response", "content": {"application/json": {"example": signal_response_example}}}})
|
99 |
async def get_stock_signal(index: str = Query(..., description="Enter your index name from [nifty, nifty-bank]", example='nifty')):
|
100 |
try:
|
101 |
-
response = fetcher.realtime_signal(index)
|
102 |
if response:
|
103 |
return {"data" : response}
|
104 |
else:
|
|
|
98 |
@app.get('/signal', response_model=SIGNAL, responses={200: {"description": "Successful response", "content": {"application/json": {"example": signal_response_example}}}})
|
99 |
async def get_stock_signal(index: str = Query(..., description="Enter your index name from [nifty, nifty-bank]", example='nifty')):
|
100 |
try:
|
101 |
+
response = fetcher.realtime_signal(index)
|
102 |
if response:
|
103 |
return {"data" : response}
|
104 |
else:
|