Can you please elaborate what information should be provided? Do we have to provide the strategy? I just make a few API calls.
Also, last September I did write to them, but none got in touch. Hence I think there could have been some information miss…
@Ajax I agree with @AnastasiaSin That website has no information whatsoever. Who would go about registering without even knowing what we are registering for. And the Blog has only one post.
I do it by changing the orderType to Market order and then calling modifyOrder api.
orderParams.orderType = Constants.ORDER_TYPE_MARKET;
kiteConnect.modifyOrder(orderId, orderParams, Constants.VARIETY_REGULAR);
@sujith How many parallel apps can we run? I mean, in this case, there will be 1 mobile app, 1 trade tron, 1 KiteConnect API and finally 1 Kite Web session. Is so many sessions in parallel allowed or is there a limit?
Also, can you please clarify the following:
If order status "OPEN" will be sent mandatorily.
Also, please correct me if I'm wrong, these events are async and "OPEN" order can come after "UPDATE" or even after "COMPLETE" is it not?
And the interme…
From the logs, here is the sequence of events (order) that we get after an order is placed.
10:28:00.867 [TRACE] Enter onOrderUpdate with (order = {"exchange_order_id":"XXXXXXXXXXXXXXXX","disclosed_quantity":"0","validity":"DAY","tradingsymbol":"BA…
@rakeshr True, this happens due to session expiry and we will not be able to make any further API calls. But here the scenario is that session expiry happens at Websocket stage. I mean after kiteTicker = new KiteTicker(kiteConnect.getAccessToken(), …
@sujith I got this error too. It is generated from the following line of code. And I started the program at 08:48 as a cronjob.
kiteTicker.connect();
Since connect() doesn't throw any exception, we would be unable to catch it. I may be wrong.
@tahseen, @rakeshr, @tonystark and @sujith Where can I get the list of status codes for different errors?
For eg.
403 - Session Expired
429 - NetworkException - Maximum allowed order modifications exceeded.
Getting a class name is not hack.
The Kite Connect API is written in a generic way, the whole point of client libraries is to avoid using these raw values and consume API in the style of the language.
Ok. I was just going with the document. But then…
@tonystark
How would you like to use the raw string information? Is there a special use case?
No special use case as such. But it would be a generic approach instead of just giving the message.
As per the last code section you posted there is a 1:1…
++ @sujith
@rakeshr I got the TokenException which I want to handle. As per the documentation error_type is not set. Only code and message is set.
No doubt, I can check for the class throwing the exception. But then, it is going to be a work-around…