_WS.RunScript(sagr.feedToken, Client_code, script, TASK);
-
On the GitHub page at https://github.com/angel-one/smartapi-dotnet, what is the meaning of
mw
,sfi
anddp
inTASK: mw|sfi|dp
?TASK: mw|sfi|dp
appears under the section for ------Socket Sample Code to get stock quotes------ . This is the snippet in whichTASK: mw|sfi|dp
appears, in the inline conmment // :_WS.ConnectforStockQuote(sagr.feedToken, Client_code); if (_WS.IsConnected()) { string script = "", TASK=""; // SCRIPT: nse_cm|2885, mcx_fo|222900 TASK: mw|sfi|dp _WS.RunScript(sagr.feedToken, Client_code, script, TASK); _WS.MessageReceived += WriteResult; _WS.Close(true); to stop and close socket connection } exitEvent.WaitOne();
-
mw: This stands for market watch, where you can monitor multiple stocks at once, receiving real-time quotes for your selected stocks.
sfi: This refer to scrip feed information, which typically provides detailed stock-specific information such as the latest price, volume, and other metrics for individual instruments.
dp: This stand for depth, which refers to market depth data showing the order book’s bid and ask levels, giving you insight into the buy and sell quantities at various price points for a stock.