I am a Java & Python developer. I have experience in developing both trading systems and backtest systems including options, equities, futures, commodities, forex and crypto systems.
I am also offering my development services. I am open to partnerships as well.
PM me for development services / partnerships.
You can set your code to start execution at exactly 0915. as for the token generation, this can also be automated.
You can generate a token by firing the script at say 0600 and get a fresh token every day.
To extend it further, you can also set …
If I had been requesting data for overlapping dates, then there should've been instances of other dates repeated as well. For all candle timeframes, the data is being repeated only for this single date.
@rakeshr I am still seeing these entries. I downloaded the data for ADANITRANS and still the same result. Obviously, there is something wrong at my end now.
I am downloading the data for the last 5 years and dumping it in MYSQL. I checked and the…
@sujith Do you allow placing orders for ICICIBANK:NSE after market hours for testing? Would these get deleted automatically or do we have to delete them later after testing?
@sujith I do not know how it works. I just had a suggestion to make life easier and to make it even more user friendly. If that could be done, it can even give a realtime P&L of those trades that are bunched together.
Maybe if it cannot be tagg…
@sujith I think I did not express myself correctly. I am not asking for bunching of Holdings & Positions , but I am asking for bunching of positions in Positions / Holdings like [NIFTY 8th APR 14900 CE NFO & NIFTY 8th APR 14900 PE NFO] can b…
@sujith
The order_history is only used ones to read the orders placed.
Does this mean that I should check the "status" ? If yes, then what would be the value if the order has been placed, but full quantity not yet fully purchased / sold?
What …
Hi @neel2323 ,
Thanks for your help.
I am assuming that the status would be 'COMPLETE' if the position i.e. order is closed (sold / bought) or the pending_quantity is zero. Am I correct?
One more query:
Say I short BNF, I am using the code below…
You can 'start' trying to get the data at say 09:21:01 .
If you use Python & Pandas, you can check the length of the dataframe. If it is zero, then you will have to request the data again. To be doubly sure, you can also check the first and la…
@__name__ were you able to find a way to get the spot price?
@sujith could you suggest a way to get the spot price or even a way to construct one ?
Thanks a lot.
@rakeshr
Yes, I saw the javadocs and these are much more detailed compared to Python docs.
Since, we are here do you think that Kite for Java is more robust, easier to develop, faster and overall a better option that Kite for Python ?
Thanks
Hello,
As per the documentation, I can use order_history(order_id) to fetch history of order. Howerver, I am trying to get details of an order in the past (executed on Friday 20th Nov 2020) and it returns an error.
Similarly, kite.order_trades(or…
@sujith thanks, I will study and get back.
Meanwhile, as a quick hack and to get things up and running quickly ; would a 4% margin for currency derivatives be sufficient to cover the various parameters as mentioned by @rakeshr ? I am mainly interes…
@rakeshr is there a sample code that can give an outline on integrating
https://kite.trade/docs/connect/v3/margins/
with the python code? Any pointers would help.
Thanks a lot.
Is there a manual way to calculate the margin required for an instrument & order type combination? Say for example, if I placed an order for CDS:USDINR20DECFUT NRML type, to find the margin would there be a percentage like LTP x 1000 x percentag…
@sujith , I have not measured the exact delay as I have changed the strategy since then. However, I back in May the delay was several seconds (1 to 3 seconds) and I had to introduce a delay of 5 seconds to be sure that it appeared.
Hi,
This problem of positions reporting with a delay is not new. I had raised a similar query back in May (). There is, many times, a significant lag in the values displayed by positions() using API and that shown on the App / Website. Similarly, t…
Hi,
I am using Python. Did you mean quote() ? I did not find any function getQuote.
Secondly, if I only wanted to check the LTP, then would the function ltp() not be a better option ?
Thanks
@rakeshr The second point was due to the fact that I created a token and yet while downloading the Historic Data, it kept giving the error. So, my question is whether there is a time lag between creating a token and being actually able to use it for…
@rakeshr please see my comment https://kite.trade/forum/discussion/comment/20193/#Comment_20193
Also, you did not answer the second part of the question.
Thanks
Hi,
As per @rakeshr the access_token expires at 7:30 however, my token expired at around 05:30 and I created a token around the same time and kept using the same token all day. So, are you sure that the token expires at 0730 Hrs?
Thanks
I was able to get the data again. I still have one question - what is the exact time when the access_token expires each day? It seems that there is a time lag between the access_token expiry and the historic data access_token based access..