Also how the data is stored in your system, that is, Is it continuous data from 9:00 to 3:30 each day and all holidays excluded ?
We store minute wise on the trading day for the trading period. Rest other 5 minutes, 10 minutes, etc candles are form…
I want to get 5 minute candle data from 2020-04-01 10 :03 :04 (10 hrs , 3 mins 04 sec) to 2020-04-19 11:04:02 (11 hrs, 04 mins ,02 sec)..So will the start candle start from 10:03:04 or 10 :03:00 or 10:05 :00 . Also at what interval will it end on . …
@ravimeetra
Do we not have the option of interval for week and month candles.
No
How can we get the weekly and monthly candles with this API call?
You need to generate weekly or monthly candles at your end using day candle data. You can have the r…
@utkald
Are you sure split corporate action was done on MINDACORP on Jan 2015?
It seems to be a spin-off. We adjust only for split and bonus corporate action.
@Alek
atleast half the data(150-220 bars per symbol) is coming back as nobars/Zero Volume.
Are these intra day minute candle for the current trading day or historical dates( last 4-5 months)?
Can you give us the list of symbols, you are facing the …
@Prasanna895
You need to assign call back in the threaded section for on_tick(*args).
As below:
while True:
def on_ticks(ws,ticks):
dev(ticks)
def dev(single_company):
*****
calculation
*****
#Assign callback
…
@ramesh33
We just checked at our end and postback is working fine.
Postback_data b'{"placed_by":"XXXXXX","order_id":"XXXXXX","exchange_order_id":"","parent_order_id":"","status":"REJECTED","status_message":"XXXXXXXX","status_message_raw":"XXXXXX","…
@avidhamija
It seems to be some issue with your Anaconda environment. Websocket code is working fine in our Linux Anaconda environment on Jupyter Notebook.
Might be this open issue of twisted.
@Prasanna895
def on_ticks(ws, ticks):
dev(ticks)
You shouldn't call method inside on_ticks thread unless you are using queuing.
here I didn't use thread because I am using only one token
You can create another thread with one token as well.You can …
@Prasanna895
Are you placing order inside on_tick method?
If yes, you need to create another method for order_placement and call that asynchronically from on_tick thread.
You can go through this thread to know ways to use async method in main tick…
@sourabhs
It seems kiteconnect package is not in a directory where it can be accessed via CMD or you have multiple python version installed in your system.Maybe you can go through this thread.
@gkaranam @ravishastry
I am still getting these error and the connection is being broken..
Hi, This error is still not resolved for the current quote api. Any specific cause for this that we can fix from our end?
You need to handle the Timeout exc…
@pavvu_kk
order_id=200417002036102&variety=CO&parent_order_id=200417002036100
You seems to be sending variety as CO instead of co.You need to send variety=co
Check input params detail here.
@sree_73
I try to access the data using request.data it's showing none
There might be no postback response to the action you performed. You can go through this thread.
@raaghulr
No, we don't have APIs for calculation of option greek. You can create a method at your end to return greek values based on the formula stated here.
@prasadraju070
How to get only futures instruments from getInstrumentsForExchange("NFO") ?
You can get the whole NFO instrument as CSV from this link.
how to get the trading symbol by using the instrument token?
There is no direct API for this,you …
@mnabhishek
There are two ways to pass tick data from on_tick thread to perform any operation without blocking the main on_ticks thread.
1> You can push tick data to Queue(use celery,rq,etc) as task queue manager and have another method that rea…
@omkar89
Continuous data is available only for day candle. You need to send interval as day instead of minute.
kite.historical_data(instrument_token=14350850,from_date='2019-04-01', to_date='2019-04-30', interval="day",continuous=1)
@ranjan_barat
Historical data APIs have been working fine. Maintenance activity happens at midnight EOD.
Can you paste complete error traceback for us to debug?
Also, can you handle the above error exception and retry with adding some sleep time an…
@mnabhishek
Yes @rakeshr - Is this not correct? How should I go about it?
No, you shouldn't be putting any logic inside on_tick thread.You need to pass on the tick on another method asynchronically without blocking on_tick thread.You can look to th…
@Anuj2343
I wanted to know if the database contains 1 minute historical data of all ETF listed right now. Some of them are illiquid and not really studied so that is why I wanted to know if the data exists before I buy the subsricption.
Yeah, we do…
@CE7727
I will just check the time of day and my unsub list and call the unsubscribe function? So I am guessing I will have to keep an infinite loop running as well, otherwise how will the code check the time of day? The code will be something lik…
@tanmay
Absolutely working fine for us. It seems some issue with your setup.
Can you try fresh installing kiteconnect python client inside virtual env and then request historical data for OI?
@tanmay
Can you uninstall the previous version of kiteconnect using pip uninstall kiteconnect and install updated version using pip install kiteconnect --upgrade?
Updated version should resolve this.If still facing missing 'oi' field.
Paste complet…
@tanmay
Missing oi field fix has been merged.You can update kiteconnect using pip by below command and then check the historical data field:
pip install kiteconnect --upgrade
@CE7727
Yes,you can send subscribe or unsubscribe tokens from on_tick method but make sure that, you don't block the main on_tick thread by performing any logic inside,you can call new method to subscribe/unsubscribe token from on_tick thread async…
@prateek3211
Are you sure, above is the complete error traceback?
I wanted to know is there a way via which, I can catch any exception which occurs in socket streaming & then I can inside than exception handler method I can write my own logic/a…
@CE7727
I am trying to extract data from yesterday session and it is getting timed out.
Are you making historical data API request?
Can you paste the complete log here?
@BaiMaoLi
instrument_tokens[i]=parseInt(instrument_tokens[i]);
You might not be subscribing instrument_token in correct format.
Can you echo sent instrument_token and it's data type and paste the response here?
@CE7727
'float' object has no attribute 'replace'
As per error reason,you need to type convert float to string and then use string replace inside your insert_tick method.
Also, you shouldn't call insert _tick inside on_tick method, use multithreadi…
@prasad_n_k
do I have to place two different orders.. one for the buy market order of the stock and other for stop loss market order for the stock or both the request can be combined in one call ?
For intraday order, you can use BO or CO order, whi…
@yousuf
You are using the wrong instrument_token for GBPINR20MARFUT and GBPINR20APRFUT.
For GBPINR20MARFUT, it will be 279811 not 265159686.
And from GBPINR20APRFUT, it will be 311043 instead of 265455878.
@Swarochisha
You need to pass tick to a different thread for yes/no method return call, without blocking the main on_tick thread.
You can have look to this thread for a multi-threading example.
@ramatius
We stream ticks, as we receive it from the exchange. We haven't received the above-misaligned tick at our charting system.
Anyhow,we are logging all ticks for above contract USDINR20FEB71.5PE for today, to see if any discrepancy.
Do let u…
@sbdavra @ruchanavjyot1907
no, it was not worked well from 10:55 PM to 11:55 PM
All the ticks were coming correct for the above mentioned period on 20th and 21st,as checked from log.You can check tick details as below.
Ticks: [{'tradable': True, 'm…
@sriquant
You can refer here to get list of historical data intervals.
How can I get this data?
You need to form those candles at your end using an hr/60minute candle.
@sbdavra
Websocket-streaming was working fine throughout till the market close till 23:55.
i restarted our running application lot of times but every time i got same rate.
Can you paste a complete error log here?
@avijitkt
ValueError: Invalid header value b'token
Can you re-check, if you are assigning correct access_token and api_key ticket object?
May be post complete WebSocket code here.
@wtdmarketing
We didn't get your query clearly. Are you using Websocket streaming to generate a minute candle at your end?
We relay WebSocket data as we get from exchange.