☰
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
13.8K
All Categories
0
Incidents
153
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
September 20
maxhiten
September 20
sujith
Instrument API fetching 0.00 last price for all instruments
maxhiten
September 20
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 20
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 20
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 20
Or if you have changed your ltp data to 0.00 for instrument then please confirm.
sujith
September 20
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.