<?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[USE OF ACTION]]></title><description><![CDATA[<p dir="auto">While fetching data using</p>
<p dir="auto">let json_req = {<br />
correlationID: "abcde12345",<br />
action: 0,<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">code what's the use of action (i.e. 0 and 1) ?</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/topic/4458/use-of-action</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:03:49 GMT</lastBuildDate><atom:link href="https://smartapi.angelone.in/smartapi/forum/topic/4458.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Mar 2024 06:05:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to USE OF ACTION on Fri, 22 Mar 2024 08:11:33 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 />
I mean 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 or few seconds later for what i have requested but while providing 1 it is giving me the same data continuously for what i have requested.</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 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/post/15959</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/15959</guid><dc:creator><![CDATA[greatworld]]></dc:creator><pubDate>Fri, 22 Mar 2024 08:11:33 GMT</pubDate></item><item><title><![CDATA[Reply to USE OF ACTION on Fri, 22 Mar 2024 06:48:02 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 and one to subscribe the scripts.</p>
<p dir="auto">Regards,<br />
SmartAPI team</p>
]]></description><link>https://smartapi.angelone.in/smartapi/forum/post/15958</link><guid isPermaLink="true">https://smartapi.angelone.in/smartapi/forum/post/15958</guid><dc:creator><![CDATA[Moderator_2]]></dc:creator><pubDate>Fri, 22 Mar 2024 06:48:02 GMT</pubDate></item></channel></rss>