☰
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
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
347
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
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