There is a difference in 1 minute data close for the last candle for the day and 1day data close, I am guessing that the close of 1 day data is averaging for the last 30 minutes and it is not being done at minute level.
If that is what is being done…
@KartikShah I can provide the code for automated login , but the people from zerodha will delete it for sure as it is mandatory by the exchange to manually login at least once a day
This happened for basket margin Rakesh!!
Not for Instruments, I am sorry I wrote it as Seperate comments.
srinidhihebbar
srinidhihebbar 9:52AM Flag
Happened Again , it happened for margin API call
File "C:\Users\ramakrishna\Desktop\minandstra.py", line 655, in
straddle()
File "C:\Users\ramakrishna\Desktop\minandstra.py", line 517, in straddle
get_single_side_margin(instrument_buy=put_buy_strike, instrument_sell=put_strike_sell, qt…
@Tusar369 even kite takes time to save data to database and make candles so historical data is pretty much useless in live market for medium or low latency strategies , it is faster to do it on your end historical data is just useful for backtestin…
I do trade a medium latency code, and the candle formation time is pretty much the same. There is no harm in improving the code even though we are not a billion dollar HFT.
I am within the rate limits, The error sometimes occur in my AWS alog's as well, I have blocked all the applications out of firewall , it is either this error or error mentioned in this thread. https://kite.trade/forum/discussion/12473/unknown-conte…
I have told in the other thread as well, it is thrown whatever the first API call is, the current screenshot is for
Fno_Instruments=kite.instruments('NFO')).sort_values(by='expiry')
I don't think so that the server invalidated the Access Token, the same token worked after retry, The error is coming in whatever the first request is after login for me . It is working after retrying, there is no logic to where to use the retry as …
File "C:\Users\Achalah\miniconda3\lib\site-packages\spyder_kernels\customize\spyderpdb.py", line 881, in run
super(SpyderPdb, self).run(cmd, globals, locals)
File "C:\Users\Achalah\miniconda3\lib\bdb.py", line 597, in run
exec(cmd, global…
@rakeshr how is the margin required calculated ? Is it updated on realtime basis, communicating with API is delaying the order execution by a bit, is there anyway I can calculate it in the backend ?
It will take a lot of time, First you will need to learn python,then some aspects of libraries such as numpy and pandas,and then If you want to trade real time strategies you will have to learn SQL as well (to reduce the time difference in which zer…
I am fetching few times a day once in the morning and once after every order update i place close to 8 orders a day ,I am not polling margins multiple times a second