☰
Login
Signup
Home
›
.Net API client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.1K
All Categories
0
Incidents
157
Node JS client
41
Go client
797
.Net API client
385
Kite Publisher
537
.Net / VBA / Excel (3rd party)
463
Algorithms and Strategies
1K
Java client
1.1K
API clients
407
PHP client
4.1K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
March 2021
meziagroup
Need help in updating LTP
tasklive
February 2020
in
.Net API client
I seen your example project to update LTP
Dim ltp As Dictionary(Of String, LTP) = kite.GetLTP(InstrumentId:=New String() {"NSE:INFY"})
MessageBox.Show(Utils.JsonSerialize(ltp).ToString)
I am getting a reply and displaying on messagebox as
{"NFO:BANKNIFTY20MARFUT":{"InstrumentToken":10910722,"LastPrice":29091},"NFO:NIFTY20MARFUT":{"InstrumentToken":10910978,"LastPrice":11158},"NSE:INFY":{"InstrumentToken":408065,"LastPrice":731.7}}
But, how can I display lastPrice in messagebox / textbox for each stock as get the response? Example code will be appreciated.
meziagroup
March 2021
Dim ltps As Dictionary(Of String, LTP) = kite.GetLTP(InstrumentId:=New String() {"NSE:INFY", "NSE:ASHOKLEY"})
For Each item In ltps
MsgBox(item.Key.ToString & " = " & item.Value.LastPrice.ToString)
Next
Sign In
or
Register
to comment.
For Each item In ltps
MsgBox(item.Key.ToString & " = " & item.Value.LastPrice.ToString)
Next