☰
Login
Signup
Home
›
API clients
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
14K
All Categories
0
Incidents
157
Node JS client
40
Go client
794
.Net API client
383
Kite Publisher
537
.Net / VBA / Excel (3rd party)
462
Algorithms and Strategies
1K
Java client
1.1K
API clients
405
PHP client
4K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
September 2024
maxhiten
September 2024
sujith
Instrument API fetching 0.00 last price for all instruments
maxhiten
September 2024
in
API clients
for(i=0;i<instr.Count();i++)
{
if (instr[i].InstrumentType=="EQ")
{
try
{
SqlCommand cmd5 = new SqlCommand("INSERT INTO instr VALUES (
@name
,
@ltp)"
, con);
cmd5.Parameters.AddWithValue("
@name"
, instr[i].TradingSymbol);
cmd5.Parameters.AddWithValue("
@ltp"
, instr[i].LastPrice);
cmd5.ExecuteNonQuery();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Tagged:
#instrumentapierror
sujith
September 2024
You need to use Quote API to fetch live market. Instruments master dump is created early in the morning, it will not have live market data.
maxhiten
September 2024
I am not asking for live market data. Instrument is supposed to
give some ltp value
instead of giving 0.00 (which actually it was doing from the start). Why sudden change?
maxhiten
September 2024
Or if you have changed your ltp data to 0.00 for instrument then please confirm.
sujith
September 2024
We haven't changed anything, it has always been 0. We don't get values from upstream when this file is generated.
Sign In
or
Register
to comment.