@sandeepgupta
As per attached error log, cffi python package seems to be facing issue while installing with ERROR: Command errored out with exit status 1.
So, can you install cffi package externally using command here and then do fresh installation…
@babansfolio
'mode': 'quote'
As you have subscribed to Quote mode here, so it only shows 44 Bytes data excluding Last traded time stamp.You can check complete documentation here.
'mode': 'full'
Subscribtion to FULL mode shows all 184 bytes includin…
@sbdavra
We have thoroughly checked Quote call API LTT and time_stamp for few mcx contracts including Silver Dec fut(as stated above), all values are correct.
We will log this for few more trading sessions and re-check for the above mismatch.
Do le…
@subhash494
You seems to be entering wrong instrument_token for fetching historical data.You need to enter required instrument token for scrip available from this instrument_dump.
@Kartikey
403 Error states you are sending wrong API key or access_token.You can go through this thread.
If still facing the issue, please paste complete WebSocket code here.
@yj3867
Your above WebSocket code is correct. And the source from which you are using api_key and access_token is also correct. So, can you once recheck that you are passing both api_key and access_token as a string for error mentioned in the log a…
@Shashankba
i subscribed to 300 stocks but got tick for only 80-90 stocks. i start recording before market open till 9:16.
Some mistake with my code or understanding of API.
It can happen that not all 300 stocks trades/ticks at the same time/every …
@enliyo
We checked historical data for all the above-mentioned symbols.Yesterday's all 5 minutes candles are showing correctly.
For Relience - NSE-EQ
{'date': datetime.datetime(2019, 10, 3, 15, 20, tzinfo=tzoffset(None, 19800)), 'open': 1310.8, 'hi…
@heisenBerger
Also, related to this same issue, can I get OHLC data after some interval like first 5mins, 15mins, etc (i.e. Live in the current day only, not previous day)?
If you need OHLC data for the day till that time, you can use quote call AP…
@saurabhkhoria
Depending on the interval of your requirement for fetching last_price. For shorter period instead of continuous polling quote call for LTP, you may use Websocket Socket streaming.
@pritee9
Yeah, you can live feed for NIFTY 50 index(token-256265) using WebSocket.
We have checked the same at our end, WebSocket is streaming data(LTP, OHLC data) for Nifty 50 on WebSocket.
Can you let us know, which API calls(quote,etc) you are m…
@pratyushbgr
When are you generating access_token?
Access token are flushed every day around 7:40 AM.So, make sure you generate access token post 7:40 AM on the same trading day and it can be used throughout the day.
@infotrade
We checked on both Kite Web chart and Historical data APIs, values are matching for both as below.
["2019-09-25T09:15:00+0530",224.95,225.25,224,225,21012,0]
You may re-check the same.
@sachinstlko09
No, we don't have APIs for an indicator. We provide candle historical data, which you might use and calculate SMA,EMA, etc at your end accordingly.
@XG9131
For EQ category stocks, you need to send OrderType as 'CNC' not 'NRML'.'NRML' product type is for F&O scrips. Have a look here for complete params.
@npchoubey
No, there is no issue at our end for Kite Connect APIs.
Are you getting request timeout error for all API calls or it's random in between?
For all random time-out error in between, you may use below code:
try:
Your code logic here
e…
@XG9131
Can you let us know the complete order params, you are sending?
I am getting a successful feedback with an order number.
Yes, order_id will be available even for rejected orders.
@sachinstlko09
Trying to place an order by post back page after execution of first order.
Are you trying to place order by post back method call?
You can't place order using post back call.You need to use Order Placement APIs.
@razcads
We checked for the above three contracts and instrument_token for all are being shown in instrument file downloaded from here.
54789639,214022,SILVERM20FEBFUT,,0.0,2020-02-28,0.0,1.0,1,FUT,MCX,MCX
54789895,214023,SILVER20MARFUT,,0.0,2020-0…
@rajukumarpu9
1. In zerodha chart market depth high low show different figure and in chart no where matches the high low
You can go through this thread.
2. often found red candle shown as green and green candle shown as red in one min candle
Please…
@v_narang247
There was corporate action of name change from ZEETELE to ZEEL on 10-01-2007 and demerger on late 2006, check the details here.So, same corporate action rate has been adjusted here.
@aceBox
Connection error: 1006 - connection was closed uncleanly (None)
Above error comes, if on_tick method is blocked while receiving fresh tick or in case of internal error/errors in the called main method.Here,it can happen that, post 12 PM/abo…
@aceBox
As stated above, there is no dependency issue at our end. You need to make sure, main thread of on_ticks method is not blocked at your end because of heavy computation on same method.
@jkrise
https://api.kite.trade/instruments/historical/11381762/60minute?continuous=1&from=2019-08-30 09:00:00&to=2019-09-02
We don't provide continuous data for intraday/minute interval, it's only for day interval.
@varun12
Always fresh candle starts at AA:BB:00 and end's end AA:BB:59.So, you can choose a candle accordingly to which second's tick you are referring to.
@r2k1984
No, access_token doesn't expire after every API request. Once you have generated access_token, store it in variable and keep using it for other API calls throughout(until performing logout or fresh login).
@saurabh2708
As seen from the above video, you are using two different kite connect account(API key) for live and dev.
Can you go to developers login and check if redirect url is same for both apps?
@saurabh2708
Do you have debug log for the login session?
Can you paste complete log here for request_token and access_token generation?
Else, add debug log for python client as below and paste the response here:
import logging
logging.basicConfig(…
@arunpanjala
You can subscribe up to 3000 instruments per WebSocket connection(not just 500 as you said above) and can have upto 3 WebSocket connections per API key. Process remains the as you subscribe for 500 or 3000 instruments.
@VinayAkuthota
DB insertion cur.execute(new_insert_tick_statement,(datetime.now(),v_tick['instrument_token'],v_tick['last_price'])) seems to be blocking on_tick method call.Can you create a separate thread for db insertion and pass on the tick to t…
@pd95
We checked for the same contract(NIFTYAUG) and OHLCV data for Day period as well intraday period is showing correctly.
{'date': datetime.datetime(2019, 8, 19, 16, 18, tzinfo=tzoffset(None, 19800)), 'open': 11062, 'high': 11062, 'low': 11062,…
@sachinstlko09
Can you please confirm; by using the KITE API V3; only one order can be placed at a time or, multiple order can be placed one after another .
No, multiple order can be placed one after another until unless you are exceeding the order…
@rajagopal
Yeah, you can generate access_token once after the login flow, store it as variable and then keep using the same access_token for all further API requests.
@deepmangukiya
Are you looking for current holdings net P&L?
If yes, you can get individual holding p&L using holdings APIs and then you need to do a summation of all to get total P&L.
@cheko
Yeahinsert_ticks method call seems to be blocking on_tick method.Can you create separate thread for that and pass on the tick.You may check example here.
@cheko
Are you blocking on_tick method with any tick manipulation inside on_tick method?
If you are then,you need to pass it to another thread, check multi threading example here.
@deepmangukiya
The previous day close is last 30 minutes weighted average and the close value on last 1 min candle is last LTP so the difference.Go through this thread.
@navinshankaran
Yeah,you can get day candle data for an expired future contract using continous=1.
Eg.(Python)
kite.historical_data(instrument_token=54743047,from_date='2017-01-01', to_date='2019-01-01', interval="day",continuous=1)
@infotrade
Is there a way to get historical data for particular ticker for each price change event instead of time based?
No,we don't have separate APIs to segregate historical data as per price change but you can use time based historical data and…
@jeevansevar
There are no special API calls for exiting instruments from positions. The way to do it is to place an opposite BUY or SELL order depending on whether the position is a long or a short.Go through this documentation.
@njawahire
You will be able to see these placed orders same day on Order book.And next day on holdings.
You can get complete list of orders using retrive order's API, check the documentation here.
@ComT
The last tick which you fetched is its Last Traded Price(LTP). This is the price at which the last trade of the day took place in that counter.
And the end of the day, the close value of the chart is processed.
The closing price of the stock …
@Jinesh510
Can public token be used to obtain LTP quotes?
No,it's token for public session validation when you want requests to be exposed to the public.
You need to use API key and generate access_token to obtain LTP quote using Kite Connect APIs…
@ramatius
Currently, we don't have bulk order placement APIs, majorly due to order rate restrictions.
For now, to close all BO open legs, you need to either exit limit target or Stoploss order in loop from open orders.
@deepmangukiya
You can use same order placement APIs to place order for all exchanges, you need to modify param of exchange,order_type,etc as required.Refer documentation here.
@balajee
No, we don't have pre-defined API to access OHLCV and other details specifically for Nifty 50 scripts.But it will easy to create at your end, as Nifty 50 scrip list is pre-defined.
Defined Nifty 50 list and then keep on appending the neste…
@arunpanjala
Are streaming using Websocket Streaming feeds or Quote API?
Are you doing any calculation at your end post receiving feeds, which might be causing this delay?
@mehullala
{'date': datetime.datetime(2019, 7, 26, 9, 57, tzinfo=tzoffset(None, 19800)), 'open': 3886, 'high': 3886, 'low': 3886, 'close': 3886, 'volume': 0}
As, the volume is zero, you seems to request at the start of the candle, when OHLC remains…