☰
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
15.1K
All Categories
0
Incidents
179
Node JS client
52
Go client
856
.Net API client
399
Kite Publisher
554
.Net / VBA / Excel (3rd party)
503
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
410
PHP client
4.3K
Python client
363
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.6K
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.