I don't need to place any basket order. I just want to check the margins.
basket = [
{ "exchange": "NFO",
"tradingsymbol": "NIFTY2611325000PE",
"transaction_type": "BUY",
"variety": "regular",
"quantity": 65,
…
Thanks Salim. Code executed with NFO setting. However, the basket order is not listed on the page.
Any basket order created should be visible on the Zerodha page right?
Yes I could see that on Monday it is reflecting the price.
So on saturday and sunday, or any holiday, kite.quote and kite.historical_data API will give different results.
kite.quote(["NSE:NIFTY 50"])['NSE:NIFTY 50']['ohlc']['close'] - Now (as on 9/8/2025) shows the close price as 24596.15 which is close price on Thursday (7/8/2025)
However,
kite.historical_data(256265, datetime.datetime(2025, 8,8), datetime.datetime…
kite.historical_data (256265, datetime.datetime(2025, 7,16), datetime.datetime(2025, 7,16), 'day') - returns 25198.55 as the close price. Now this value when checked tomorrow will have a different value which will match the value returned by kite.qu…
Thanks for the update. But I see NIFTY and SENSEX too are having different values.
After market hours say at 4PM,
kite.quote - gives the previous day close price
kite.historical_data (291849, datetime.datetime(2025, 7,15), datetime.datetime(2025, 7…
There is a discrepancy in kite.quote and kite.historical_data apis
kite.quote(['NSEIX:GIFT NIFTY'])['NSEIX:GIFT NIFTY']['ohlc']['close'] - When I run this now gives a value 25174 which is previous day close price.
kite.historical_data(291849, date…
kite.quote(['NSEIX:GIFT NIFTY'])['NSEIX:GIFT NIFTY']['ohlc']['close'] - When I run this now gives a value 25158 which is previous day close price.
kite.historical_data(291849, datetime.datetime(2025, 6, 6, 9, 15), datetime.datetime(2025, 6, 7, 2, …
Hi,
kite.historical_data(291849, stTime, edTime, 'day') data does not match with that of kite.quote
date open high low close volume
0 2025-05-29 00:00:00+05:30 24762.5 24990.5 24658 24…
I see kite.quote giving the previous day close price.
kite.quote(['NSEIX:GIFT NIFTY'])['NSEIX:GIFT NIFTY']['ohlc']['close']
But why is kite.historical api (interval='day') data doesn't match with that of kite.quote
Rakesh, can you please suggest how to use the above steps.
I am using web socket callback events which uses calculations in on_ticks method. As mentioned in one of your response I have moved the calculation part into a separate thread(deamon thread …
@Sujith, @rakeshr
Can you provide any inputs in getting this supertrend signals? I just want to know if there is issue with my code or in general there is a discrepancy with the signals.
Thanks Sujith. Right now I am not using websocket programming. I am facing "ReactorNotRestartable" errors with websockets, so end up restarting kernel every time. Are we supposed to use web sockets?