in the above image only highlighted order got placed wrongly,
placed a buy order with 550 qty
later placed a sell order with the same quantity, but it takes 500 qty.
had to place 50 qty manually because of that
if you see the above image out of…
hii @sujith i have Generated access token @2021-08-12 08:33:26 today still getting.
kiteconnect.exceptions.TokenException: Incorrect `api_key` or `access_token`.
@sujith yes issue was solved but partially, the issue is occurring with other kite calls.
like in fetching order history , orderbook,etc.
please do the needful.
there is a way to stay logged in for the day, save your access token in one file whenever you need to log in again just read that access token from that file and send this access token to kite
Actually. position book is not updating on the function call - kite.positions()
so even if I have any positions in my trading account so that is not reflecting in my position book when I call positions through API.
so the issue here is even if I ca…
thank you for your response, you were mentioned one formula to calculate pnl
pnl = (sellValue - buyValue) + (netQuantity * lastPrice * multiplier);
I was checking the last_price, sell value buy value, pnl.
we can calculate pnl from the above formu…
@sujith in this thread you have suggested at the last to check orderbook and retry for all non-400 write API responses how to check all non-400 write api response
Thanks, @Leena for raising the issue.
I also observed the same issue after the order is getting placed with the place_order() function but didn't return the order id.
yup @sujith that's correct but how can we check if the order gets placed or not…
https://api.kite.trade/margins/futures
https://api.kite.trade/margins/equity
https://api.kite.trade/margins/commodity
https://api.kite.trade/margins/currency
above links don't give margin for all scripts available in Zerodha, is there any alternati…