I rec’d Notice Board - FYERS this link that simply says Action Required: cmd Field in API to be Deprecated
I would like to hear proper reasoning behind this move.
I have been a long time user, active forum member and have been assisting in API feedback as well.
I use both Data and Order socket streams and APIs since V2, having seen a lot of development too. In a few words, quote API is not streaming and therefore current minute data is very useful, I still use it when Data socket issues arise. Removing it renders quote API as a lame endpoint.
Hi @chirag , This change is part of our internal enhancements. We will be shortly sharing the required work around to continue receiving the same OHLCV response for the current minute post cmd field deprecation post March 28th. will keep you posted on this.
If I am understanding correctly regarding what you are looking for, @chirag you can poll History API to get minute level OHLCV data in case of Socket failure. I believe it gives current live data only.
This will not work efficiently because Quote API supports 50 symbols simultaneously, so one can in lesser number of requests within API limit achieve data fetch.
I have been here long enough to understand many things, infact when Pankaj Fyers staff was active here, I am of the opinion of NOT using the history API for RTD. Kindly read my old posts.
The Quote API in its current format would actually serve as a near RTD solution for those not implementing the heavier WS method.
The CMD is also part of many other broker api endpoints.
We will be shortly sharing the required work around to continue receiving the same OHLCV response for the current minute post cmd field deprecation post March 28th. will keep you posted on this.
I am more interested in knowing what you have here?
We have taken your issue into consideration and discussed it internally. The method you are currently following to plot charts using cmd values is not intended for the purpose, and we have to discontinue the same since seconds charts are rolled out and the current minute is no longer the smallest timeframe. You can subscribe to our quotes data socket API’s to receive continuous tick data (LTP), and you can use the same for plotting candles. Any issues regarding the data sockets will be fixed and will be ensured you are not facing any issues receiving data from the same
Thanks for the reply, as i wrote above, I’ve branched my code to adapt to non-CMD response and that requires to store Volume and track it. Also, the High/Low needs to be monitored for spikes and make candles accordingly.
I will test it and share,
but even having or not having seconds chart seems not relevant to the issue. If for example, i am polling once a minute to ensure API limit is not hit, CMD serves the purpose. You cant use Quote API for seconds charts, it needs websocket stream only. anyway, i leave it here although every scenario should be considered. Quote API serves two purposes, backup when WS is down and an alternate light-weight near realtime data API for app when internet is limited etc