jarvisx17 commited on
Commit
38fff96
·
verified ·
1 Parent(s): d41ed21

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -69,7 +69,7 @@ async def get_stocks_data(ticker: str = Query(..., description="Enter your stock
69
 
70
  # Fetch Stock Chain
71
  @app.get('/chain', response_model=CHAIN, responses={200: {"description": "Successful response", "content": {"application/json": {"example": chain_response_example}}}})
72
- async def get_chain(ticker: str = Query(..., description="Enter your index name from [nifty, banknifty]", example='nifty-bank')):
73
  try:
74
  response, exp, index_ltp = fetcher.fetch_option_chain(ticker)
75
  response = response.to_dict(orient="records")
 
69
 
70
  # Fetch Stock Chain
71
  @app.get('/chain', response_model=CHAIN, responses={200: {"description": "Successful response", "content": {"application/json": {"example": chain_response_example}}}})
72
+ async def get_chain(ticker: str = Query(..., description="Enter your index name from [nifty, banknifty]", example='banknifty')):
73
  try:
74
  response, exp, index_ltp = fetcher.fetch_option_chain(ticker)
75
  response = response.to_dict(orient="records")