I was issued a refund without any explanation on the payment made today morning and my api status is showing expired. Is there something I missed to do or just go ahead and pay up again?
Hi everyone, is there a way to get the margin required for a future or option lot independent of the current position/ orderbook? The reason for this requirement is that I have a running tally of margin I have used for a particular setup and the mar…
Thanks Sujith
BTW do you think it makes sense to convert the format for kite.order_margin() to a format similar to
kite.place_order(variety='regular', exchange='NFO', tradingsymbol='NIFTY22MARFUT'
transaction_type='BUY', quantity=100, product='MIS'…
Thanks for a prompt response.
upgraded to kiteconnect 4.0 but still gives the same error.
Also can you please tell me how to put in formatted code into my posts?
Hi Rakeshr,
I am getting a `TypeError: order_margins() got an unexpected keyword argument 'mode'` error when i use the mode='compact' argument. Code is as below
def order_margin():
order_param_single = [{
"exchange": "NFO",
"tra…
Thanks Srijan, noted!
Hi Sujith, thats what I am doing, but was hoping that even in that process there was a way to optimize. But thanks for a quick response.
Hi Sijuth, is there an option to retrieve data for more than one exchange in a single call, so instead of downloading the dump for say NSE and NFO separately, can I just give the argument as ["NSE, "NFO"]? I understand that I can also download the …
It is exactly as mentioned in the link! Well who can argue with the "regulator" they are the gods of random thoughts that only they can understand!! We mere mortals cannot begin to fathom the logic behind their rules!!
Hi Rakeshr, there is no fixed time to generate the access token, but to make you understand here is a scenario:
I login to kite.zerodha.com at lets say 9:20 am, post this when i generate the access token anytime after 9:20 am, be it 9:30 am, 10:30 …
Thanks Tony. The access token gets generated on AWS so cant use the same browser. But this is something that's just started happening since the past couple of days, earlier never faced this issue and I haven't made any changes to the setup.
hi tony, i understand that, but after I have logged in the morning, and then during the day anytime i run the api, and generate access token there, it logs me out of the website as well.
@sujith , is there a way to check if the token is valid after the command
kws = KiteTicker(api_key,user['access_token'])?
The reason I ask, is that I cannot manually refresh the token every 24 hours, and the only option is to then generate a token …