@kaushalmalkan
ws.set_mode(ws.MODE_LTP,[tokens])
You are sending instrument token as Nested list(list of list). As you are already returning instrument list in tokenLookup function. So, you can just pass same list.
ws.set_mode(ws.MODE_LTP,tokens)
@gauravmane
{ws_on_connect:296}: Web socket connection established successfully
If re-connection has happen successfully,token should be re-subscribed too. Can you paste your Websocket code? We will take look at it.
@gauravmane
We tried re-producing, but re-connection is happening all fine.
count: 2. Next retry in around: 8 seconds
2020-07-08 17:31:56+0530 [-] will retry in 20 seconds
2020-07-08 17:31:56+0530 [-] Stopping factory
2020-07-08 17:32:17+0530 [-]…
@mlearner
Since we have to also serialize the JSON and then iterate over serialized object,
If you are using kiteconect python package, you don't have to serialize JSON. Response from kite.orders() is list of python dictionary, you can directly ite…
@pawan12
my question here is if its infinite loop and nothing after this will run than how any code will close seamlessly after its work is done
As it's continuos call back, so if you want to do any external calculation. Either you can use Queue in…
@ashishjindal89
You can use this package as per your requirement. Returns dict with all the values, you need. Currently, it has mis_status details(along with margin multiplier). By EOD will add for BO/CO multiplier as well.
@harshtock
socket.timeout: The read operation timed out
No, this is socket timeout, earlier one is requests Timeout. You can use something as below to handle socket timeout.
import socket
try:
....
except socket.timeout:
...
@ArthaKalpa
Sorry. I don't understand this ambiguity. There were a few postbacks that were lost on 26th June 2020. Right @Vivek?
Yeah, we accept the issue of 26th June. That was just an exception on 26th June ( issue limited to period 10 AM-11 AM).…
@zr7952
Yeah, you can use requests lib to make post/get calls to kite.trade endpoints but make sure to authenticate it with required auth header. You can check all the required param here.
@neji
After around 2 hours I started getting the quote mode data and hence my code crashed. I re-ran the code after an hour and it worked then. Why does it happen? Please explain
We haven't observed this happening, when we tried last time. Can you…
@harshtock
We checked the above Websocket code at our end, it's working fine with no connection closure.
"PUT /v4/spreadsheets/SPREADSHEET/....
As seen from the above log, PUT operation seems to cause the closure. Can you re-check on Sheet APIs PUT…
@ashishjindal89
i observed that co_upper is always lower than co_lower
No, not always. RMS does change this for few scrip like for example as below.
{"margin": 0, "co_lower": 5.95, "mis_multiplier": 10.0,
"tradingsymbol": "BOSCHLTD",
"co_upper":…
@ashishjindal89
if I have stoploss of 1% and co_upper &co_lower are almost always greater than 1%, then I would get a leverage of 1/co_lower ?
Yes, correct. CO Leverage multiplier explanation is same as mis_multiplier explanation as stated here…
@VarunAgw
This is what I am interested in (for all the stocks). I want to classify stocks by intraday, BTST only, and delivery-to-delivery.
Currently, we don't have a direct API endpoint for the same. As stocks defined under the above classificatio…
@m80l
We checked for last_price on both Web ticker and Connect Websocket Streaming. Values are matching fine. Are you adding any static delay in your Websocket code at your end? Any close connection or re-connection happening? Maybe paste Websocket…
https://kite.trade/forum/discussion/comment/20193/#Comment_20193
Answered on the above thread.
It seems that there is a time lag between the access_token expiry and the historic data access_token based access.
Didn't get you on this? Maybe can you e…
@milli
Access token flush does happen around 5:30 AM in normal circumstances. But, sometimes due to other process dependencies,it takes time to finish it completely, exceeding up till 7:30 AM a few times. So, in order to go away with such an error …
@AlgoTrader007
You login is successful but seems like your mentioned Redirect URL post successful auth is not reachable.You can re-check your Redirect URL mentioned in API developer console.
@ijigarpatel
Is there any way we can put filter in input url like status = 'OPEN'?
No, currently we don't have a specific endpoint for the same. As stated, you can create function at your end, that loop-in through all orders and fetch order with st…
@shubho
can somebody guide me on how to download the options continuos data from zerodha?
You can fetch it using continous data in Historical data APIs.
@VarunAgw
I am not sure why you suggested "equity margin calculator". It doesn't show either of these stocks.
You can see the MIS Multiplier column. It shows the scrip allowed on MIS. You will have to manually check/search that.
Regarding a flag, …
@VarunAgw
currently, we don't have an API end point for the same. You may have to use an equity margin calculator. Or you can have a boolean flag at your end, as explained here.
@gosaimansukhgar
kws = KiteTicker(api_secret,access_token)
kws instance assignment seems to be wrong. Instead of api_secret, it should be api_key. Check Websocket example here.
@Krish99
Once I place my order and try to cancel it through the same program after some time delay it throws the said error
If you handle above exception and retry with sufficient delay, it should work as desired.
Can you paste here the required C…
@Soutir
kiteconnect.exceptions.InputException: interval exceeds limit: 200 days
There are limitations for fetching historical data for the all candle intervals in single request. You can look to Historical data FAQ.
Kindly let me know, how to reso…
@Varadharajan
Instrument token used: 256265 (NIFTY 50)
Above symbol/token is of Nifty 50 index. Which doesn't trade as response says 'tradable': False. OI data is only available for F&O symbols. You may refer complete instrument dump for the re…
@krishnan1159
When we fetch market quotes and historical data, why we need access token?
An access token is used to authenticate all incoming requests to Kite trade APIs. Accessing Historical data. quote, any endpoint/data in kite connect is part o…
@amitchawla
Go through this thread to know about requesting quote call for multiple instruments.
Also placing multiple order at same time
Not allowed. For multiple order placement, you can loop-in through orders. Make sure, you add sufficient dela…
@VarunAgw
We just checked with trigger_values[0] being int and it's working fine. Can you paste complete log here along with requested data.
Response:
{'id': 7534317, 'user_id': 'XXXXX', 'parent_trigger': None, 'type': 'single',
'created_at': '202…
@WB8111
We have Nifty 50 index day candle from 2006-01-02.
at any point in the future does Zerodha intend to facilitate a historical analysis of price charts going back to 1995-1996 since Nifty initiation?
Currently, not in our list.
Alternativel…
@Ronit
You should use parent_order_id. On successful placement of an order, you will receive an order_id. This is the entry order_id. Once the first leg is executed, there will be two second leg orders placed by the system and those will have a par…
@sanket_one
You need to send two orders for OCO. Check the sample orders here. Also, few order fields are missing, you can check the complete order fields here.
@SudhakarC
We don't provide Renko/any chart type or any indicator. You might use historical data, to create the same at your end. The underlying formula for the Renko chart in the Kite web chart.
@rrjain
Say the Value in SP = BANKNIFTY20JUN21800PE, how can I pull ticker data for this saved in SP
You need to use an instrument token to fetch ticker data not trading symbol. You might write helper function at your end, which accepts trading sym…
@shivamkr_jaiswal
instrumenttoken = getInstrumentToken(symbol)
You are fetching BSE instrument_token of TCS and comparing it with TCS-NSE chart data.
Modify your getInstrumentToken method to return only NSE instrument for requested Symbol. Might ad…
@rrjain
def unsubscribe(self, inst_token):
"""
Unsubscribe the given list of instrument_tokens.
- `instrument_tokens` is list of instrument_tokens to unsubscribe.
"""
try:
self.ws.sendMessage(
six.b(json.dumps({"a": self._message_unsubscribe, "v": …
@vijoeyz
So can exchange field of holdings change multiple times between NSE and BSE during the day?
No, these are EOD based.
Therefore, in order to determine the exchange at run-time , do I need to fetch holdings just before placing the sell order…
@Rakesh508
No, we don't have direct endpoint/APIs for the option chain. Maybe, you can create the same at your end, using Websocket streaming/Quote APIs. Detailed flow, explained in this thread.
@shivamkr_jaiswal
while fetching daily ohlc, got wrong data. Same is happening for different timeframe. It is not matching
Can you let us know the reference data from which you are comparing to?
@vijoeyz
So, do I calculate my trading cost as per https://zerodha.com/charges#tab-equities ? There are no additional charges buying on one exchange and selling on another?
The exchange field shown for each holding is best to sell benefit scenario.…
@Dileep
There is no specific API to check whether circuit limit hit or not. Maybe you can fetch circuit limit values from full quote APIs and compare it with LTP.
However, the values still changes even after 55 seconds after closing the candle.
In short, historical data quality is poor.
As explained above Historical data APIs, weren't meant for live polling. DB write operation can take a few seconds sometimes…
@arundonni17
For the above compliance query, you can write to kiteconnect(at)zerodha.com . Explain the detailed reason behind the requirement of multi-user access.
@vikaa_dalavi
You can request funds and margin data before BOD process(12:30 - 5:30 AM) start and store them at your end. It won't change unless you made payin during the BOD.
@shashihv
As of now, we don't have a sandbox environment. You will have to subscribe to Kite Connect to use it.
Sandbox APIs is in pipeline. We will update here, accordingly.
@ameerk313
No, there is no specific APIs for MIS/BO/CO status, as of now. As you said, a possible way would be to have a flag for MIS/BO/CO, at your end. Have a function, at your end that places dummy order of MIS/CO/BO and accordingly assign the f…
@sristays
From the above screenshot, you seem to be using small(k) for relative import instead of capital(K) in import KiteConnect. Can you re-check that?
You can check the sample code here.
@neel2323
On your live feed i.e on kite.zerodha.com charts, this change is not seen and the prices are shown as Rs. 516
We found same adjusted value on web data as well for day and intra-day candle. May be can you give more information/screen-shot?…
@vijoeyz
Both tokens are for MUTHOOTFIN, but for different exchanges.
136549892 - BSE
6054401 - NSE
It can happen that, you would have placed an order for MUTHOOTFIN(BSE), so the order book is returning the same.
You can check the complete instrume…
@neel2323
On 14th June 2017, BIOCON (NSE) price in historical data as well as live feed on zerodha website shows closing of "Rs. 516" and opening on 15th June 2017 shows a drop of Rs. 170.
Yes, there was corporate action of Bonus issue 2:1 on 15/06…
Sys Date: 2020-06-15 10:45:00.012289 Fetching OHLC 5minute data: AXISBANK
2020-06-15 10:45:03.039695 AXISBANK
You seems to be requesting at wrong time to fetch latest formed 5 minute candle. You can go through this thread.
Historical data isn't mean…