How to know if API is subscribed with Market data or not

Harsh1993
Hi,
After recent changes that zerodha is given free API
To get live feed we need to purchase Market data

Now while login via API how can we know that live feed is subscribed or not

As we have to manage this scenario where without live feed our program should not get started.

Any API response or any other connection details where we can identify via program that live feed is not coming as we have to subscribed for market data.

@sujith
  • sujith
    You may create Kite Connect app on developers console and use that api_key to use Kite Connect APIs.
  • Harsh1993
    i am aware that i can create a new API

    My question is how can we know that API we have logged in is Free or with Market Data Enabled
  • Harsh1993
    Any API response or any other connection details where we can identify via program that live feed is not coming as we have to subscribed for market data.
  • yogeshs
    I think you can call /quote api.
    This api gives insufficient permissions error for free personal apps api key
  • salim_chisty
    To access live market or historical candle data, you need to subscribe to Kite Connect(paid version). Please ensure you are using the API key and access token associated with the Connect app (paid version) instead of the Personal app (free version).​​
    While creating a new app on the developer account, you'll be given the option to choose between 'Connect' and 'Personal'. Make sure to select 'Connect' and use the API key and Secret key of the Connect in your program.
  • yogeshs
    I have added credits and created new Connect app.
    But while subscribing to KiteTicker using kite connect java sdk, it is giving error "The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 400 Bad Request"
    on line
    tickerProvider.connect();


    I have already double checked, it is using the api key and secret from the Connect app only (paid)
  • salim_chisty
    You may refer to the similar discussion here.
Sign In or Register to comment.