Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -96,7 +96,7 @@ async def get_stocks_data(ticker: str = Query(..., description="Enter your stock
|
|
96 |
|
97 |
# Get signal data
|
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,
|
100 |
try:
|
101 |
response = fetcher.realtime_signal(index)
|
102 |
if response:
|
|
|
96 |
|
97 |
# Get signal data
|
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, banknifty]", example='nifty')):
|
100 |
try:
|
101 |
response = fetcher.realtime_signal(index)
|
102 |
if response:
|