can't call 1000 ltps quote

QXB643
I can use the quote ltp call function with 700 tickers but when it comes to 1000 tickers (max limit as per the API document) this error shows up:

DataException: Unknown Content-Type (text/html) with response: (b'

400 Bad request

\nYour browser sent an invalid request.\n\n')

has the ticker limit changed? if so, what is the maximum number of tickers allowed?
  • sujith
    You can read the Quotes API documentation to know the number of tokens allowed for an API call.
  • QXB643
    "This API returns the LTPs of up to 1000 instruments in one go." THIS IS WHAT THE API DOCUMENTATION SAYS BUT I CAN'T CALL MORE THAN 700 LTPS
  • sujith
    Ah, I thought Quote API. Let me check with team about the LTP API.
  • sujith
    It is happening because of the large url length. We have asked the team to fix it. In the meanwhile, the ideal solution is to use instrument token as the params for request to squeeze in more instruments or slice the request.
Sign In or Register to comment.