jarvisx17 commited on
Commit
2979cbb
·
verified ·
1 Parent(s): 469744b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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).tail(1).to_dict(orient="records")[0]
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: