It looks like you're new here. If you want to get involved, click one of these buttons!
Node JS client
.Net API client
.Net / VBA / Excel (3rd party)
Algorithms and Strategies
Mobile and Desktop apps
Market data (WebSockets)
In this Discussion
edited November 2016
But then for some conditions, i want to remove it from the Kite basket order.
I could not find any documentation for it.
kite = new KiteConnect("drt13a4n12vorpac");
Now, I want to do something like
kite.remove (order xyz....) based on some other button click.??????
How can we do this ?????
edited November 2016
Then, i click on some other button for trade. Again, i add order, but i want to clear that first order from Kite object.
how to clear or reset kite object when dealing with dynamic order generation.
That is not the right way. You should remove it prior to adding into basket rather than removing it from basket.
Yes exactly thats what i want, before creating or placing another order, i want to remove all existing entries from the kite object. What is the function to do so ?
Here is the scenarios.
I have 2 scrips (ICICIBANK & AXISBANK)
There are 2 buttons next to each scrip. (Buy & Sell)
I reaslise i should not buy ICICBANK. I should go for Axisbank. So, i just close the order window without placing order.
When the order window opens up, i see both buy of cicibank and sell of axisbank, where as i only wanted sell of axisbank.
Hope, I made my query clear.
Awaiting your reply.
For your given scenario, you should not be using an order basket. You should be using individual scrip buy/sell buttons. So you just pass the scrip name to the parameter data-tradingsymbol. Please refer to
Purpose of basket is to create a fixed set of orders to send to Kite. From previous comments, I am guessing you are trying to build a shopping cart sort for stocks. In that case, you should just store the scrip selected by the user into a simple array (which can be added / removed easily) and do a one time Kite object initialization and add the final set of scrips user is selected to the basket. Hope this makes it clear.
edited December 2016
Yes you are correct. But thats how my requirement is. It cannot be solved with the help of individual buttons.
The page gets just too slow in loading when individual buttons are used.
removing should be feasible. its just matter of calling proper API method or exposing method in the API.
We will do it in near future. We cannot give you any timeline.
ohhhhh. No worries. As of now i have handled it using the finished callback method.But still in few cases, it has problem.
A simple api function like clear or reset should be sufficient.