To receive the real time data you need to send the correct symbol name to the websocket server. The symbol name curated with exchange, segment & other info can be downloaded anytime as per your need by calling
https://qbase1.vbiz.in/directrt/gettickers/
the call would return list of tickers that can be subscribed for real time data.
required parameters
loginid : A valid login ID with active subscription.
product : product name which you have subscribed for.
accesstoken : received upon successful authentication.
Sample response:
NSE_INDICES_NIFTY,
NSE_INDICES_BANKNIFTY,
NSE_STOCK_BALRAMCHIN,
NSE_FUTIDX_NIFTY_31MAR2022,
NSE_OPTIDX_NIFTY_31MAR2022_21000_CE,
NSE_OPTIDX_NIFTY_31MAR2022_21000_PE,
MCX_FUTCOM_ALUMINIUM_29APR2022,
NSE_FUTCUR_USDINR_11MAR2022,…..
NOTE: The symbol names mentioned above are only for indicative purpose. Please use the symbol names that are download from gettickers call.
You can then subscribe to any tickers from the list downloaded.
Powered by BetterDocs
Response from the API of get tickers is exactly in what format? Is it CSV or JSON or Plaintext?
Hi Anuj, You can get response in both the formats, that is CSV or JSON. Both are available. At the time of subscribing for the symbol you append .CSV for receiving the data in CSV format. In the same way, you can append .JSON for receiving the data in JSON format. This is completely optional you can receive both JSON & CSV for the same symbol or you can opt to receive different formats for different symbols.
You must be logged in to post a comment.