Do we support Batch requests instead of individual api calls to fetch option chain?
this will reduce my api calls
is that possible?
Hi @the_singh,
We offer a market data WebSocket that supports subscription in option_greeks
mode, providing option chain data for the instruments you subscribe to. For more details, please refer to the API documentation for the V3 WebSocket:
API Documentation
Utilizing this WebSocket can help reduce multiple API calls, as batch API calls are not supported.
For a streamlined implementation of WebSockets, you may refer to the streamer functionalities available in various SDKs:
Thanks!
can you help me with sample code for the same?
@Ketan
Example codes for streamer functions are available in the GitHub documentation. You can refer to this Python example: Upstox Python Streamer Functions.
If you have any further questions regarding these examples, please feel free to reach out. We would be happy to assist you.
Thank you!