<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[WebSocketV2 fetchData function response]]></title><description><![CDATA[<p dir="auto">While fetching data using</p>
<p dir="auto">let json_req = {<br />
correlationID: "abcde12345",<br />
action: 1,<br />
mode: 3,<br />
exchangeType: data.exchanger === "NFO" ? 2 : 4,<br />
tokens: marketToken[data.index],<br />
};</p>
<p dir="auto">WebSocketV2response.fetchData(json_req);</p>
<p dir="auto">WebSocketV2response.on("tick", async (response) =&gt; {<br />
});</p>
<p dir="auto">when i provide 1 then i get data continuously but when i provide 0 then i receive pong as a data.</p>
<p dir="auto">I want to receive data once for single request or continuously after few seconds or minutes but while providing 1 it is giving me the same data continuously for what i have requested without any latency because of which i am unable to compute on present data , it's get changes so fast , computing on present data is not possible.</p>
<p dir="auto">How can i receive data with some latency so that i can computing on present value of data and again i request or by itself it sends data after few seconds or minutes it should fetch data using fetchData function ?</p>
<p dir="auto">THANK YOU</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/topic/4459/websocketv2-fetchdata-function-response</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:00:43 GMT</lastBuildDate><atom:link href="https://smartapi.angelone.in/smartapi/forum/topic/4459.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Mar 2024 08:20:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WebSocketV2 fetchData function response on Tue, 26 Mar 2024 05:42:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://smartapi.angelone.in/smartapi/forum/uid/22768">@Moderator_2</a><br />
Nothing is working neither</p>
<pre><code>        setInterval(() =&gt; {
            WebSocketV2response.on("tick", async (response) =&gt; {
                console.log(response);
            });
        }, 3000); 
</code></pre>
<p dir="auto">nor</p>
<pre><code>        setTimeout(function () {
            WebSocketV2response.on("tick", async (response) =&gt; {
                console.log(response);
            });
        }, 3000);
</code></pre>
<p dir="auto">It's receving data continuosly after 3 sec in both the cases ?</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/post/15980</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/15980</guid><dc:creator><![CDATA[greatworld]]></dc:creator><pubDate>Tue, 26 Mar 2024 05:42:42 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocketV2 fetchData function response on Fri, 22 Mar 2024 14:00:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://smartapi.angelone.in/smartapi/forum/uid/22768">@Moderator_2</a> said in <a href="/post/15968">WebSocketV2 fetchData function response</a>:</p>
<blockquote>
<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://smartapi.angelone.in/smartapi/forum/uid/23803">@greatworld</a></p>
<p dir="auto">Action param on Websocket request represents zero to unsubscribe(feed stops) and one to subscribe(feed starts) the scripts.<br />
For some scripts, we may not notice any changes on the ticks since there wont be any trade occurring for it. We provide feeds continuously that is received from exchange end.<br />
If it is required to fetch data with latency time delay can be added. Kindly refer below<br />
Ref:<br />
<a href="https://masteringjs.io/tutorials/node/sleep" target="_blank" rel="noopener noreferrer nofollow ugc">https://masteringjs.io/tutorials/node/sleep</a></p>
<p dir="auto">Regards,<br />
SmartAPI team</p>
</blockquote>
<p dir="auto">THANK YOU TEAM FOR YOUR SUPPORT</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/post/15969</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/15969</guid><dc:creator><![CDATA[greatworld]]></dc:creator><pubDate>Fri, 22 Mar 2024 14:00:20 GMT</pubDate></item><item><title><![CDATA[Reply to WebSocketV2 fetchData function response on Fri, 22 Mar 2024 13:58:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://smartapi.angelone.in/smartapi/forum/uid/23803">@greatworld</a></p>
<p dir="auto">Action param on Websocket request represents zero to unsubscribe(feed stops) and one to subscribe(feed starts) the scripts.<br />
For some scripts, we may not notice any changes on the ticks since there wont be any trade occurring for it. We provide feeds continuously that is received from exchange end.<br />
If it is required to fetch data with latency time delay can be added. Kindly refer below<br />
Ref:<br />
<a href="https://masteringjs.io/tutorials/node/sleep" target="_blank" rel="noopener noreferrer nofollow ugc">https://masteringjs.io/tutorials/node/sleep</a></p>
<p dir="auto">Regards,<br />
SmartAPI team</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/post/15968</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/15968</guid><dc:creator><![CDATA[Moderator_2]]></dc:creator><pubDate>Fri, 22 Mar 2024 13:58:08 GMT</pubDate></item></channel></rss>