☰
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.6K
All Categories
0
Incidents
143
Node JS client
38
Go client
784
.Net API client
375
Kite Publisher
537
.Net / VBA / Excel (3rd party)
452
Algorithms and Strategies
985
Java client
1.1K
API clients
402
PHP client
3.9K
Python client
344
Mobile and Desktop apps
1.3K
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