☰
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.2K
All Categories
0
Incidents
127
Node JS client
38
Go client
769
.Net API client
362
Kite Publisher
532
.Net / VBA / Excel (3rd party)
437
Algorithms and Strategies
966
Java client
1K
API clients
400
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
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