Managed to get the Exception message after casting it to InputException.
Its as follows
TOTP is mandatory to place orders on third-party apps. Learn how to set up TOTP for your account [here]
https://support.zerodha.com/category/your-zerodha-account…
The exception message, localizedmessage and cause are all null.
For better readability- here are the params
orderParams.tradingsymbol = NIFTY2290818100CE
orderParams.exchange = NFO
orderParams.price =0.0
orderParams.quantity = 50
orderParams.disclos…
Ignore this. This is from my local and I missed to put NSE: in symbol. But basically I tried it on local because, the getLTP in my server code deployed in amazon cloud was giving an issue.
Sure.
This is my code snippet that has been working fine for over a month now, and my subscription is active till 6th DEC.
And this is the debug info for line ltpMap = kiteConnect.getLTP(instrument);
There was no change in code, I got the access and public tokens this morning as usual and stored them in the DB. No changes from my side at all. The kiteConnect.getLTP and kiteConnect.getQuote have just stopped working. They just return an empty map…
Great. I though so too. Would like to confirm following code to exit all short positions.
Map> pos = kiteConnect.getPositions();
List positions=pos.get("day");
Position p=null;
for ( int i=0;iorderParams.quantity = p.sellQuantity;
…
Thanks Rakesh, but I need to SL to be 75%. SO what's the workaround ? One I could think of is- I can place a regular SHORT order and then, every x mins, keep checking the ltp, if the ltp is > the 75% SL, I exit the position. Wanted to verify fo…
Thanks Sujith. I checked that thread and I understand the intent of 'range'. But my question was : As long as there is required margin in my trading account, why should I be stopped from setting a 75% SL ? . And if that's the rule then is there a wo…
By Process, I mean some undertaking that I sign off stating that I understand what I am doing and willing to take that risk. As long as there is required margin in my trading account, why should I be stopped from setting a 75% SL ? I can anyway plac…
Thanks Sujith. Sorry for pestering you, but I still didn't understand this part of the documentation : "one has to send an exit order request" which I don't see any API in Java object kiteConnect for doing the following .
# Exit / cancel a bracket…
Hi Sujith,
Yes I had referred to that thread before putting this comment. What was not clear to me from that thread was, the meaning of "For bo, co positions, you need to loop through orderbook and find the pending orders with parent order id and s…
Somehow the code didn't paste properly. I wanted to know whether following code will work for exiting all open positions, that were taken with COs.
try {
Map> positions = kiteConnect.getPositions();
List posList=positions.get("day");
…