☰
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
9.2K
All Categories
9
Go client
538
.Net API client
230
Kite Publisher
473
.Net / VBA / Excel (3rd party)
288
Algorithms and Strategies
719
Java client
678
API clients
331
PHP client
2.3K
Python client
264
Mobile and Desktop apps
996
Market data (WebSockets)
2.3K
General
In this Discussion
March 27
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 27
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