@SRIJAN "So,now to square off the open position,either you modify the sl(1002) order to a market order." this looks better option. So when you say we have to make sl order to market, how would that order look... give an example buddy, that would hel…
@SRIJAN can you give an example ? Lets say I have open buy order with order id 1001, shouldn't I be calling like below ?
kiteConnect.CancelOrder('1001');
This is what I was doing earlier for doing a square off of stock open position and thought fu…
I see following error generated for order cancellation. Could you please let me know the reason for the error ?
Exception Message >> Order cannot be cancelled as it is being processed. Try later.
@SRIJAN @sujith thanks, one more question related to f&o order placement... if I need to complete my order then I need to call something like below correct ? where order id is id of the first leg order... Also do I need to cancel the second leg…
Does this mean my first order would be market order and second leg order will be limit order with the required stop loss price... so if first order is buy order then the other one would be sell ? Wouldn't that also mean I will need double the margin…
@sujith @SRIJAN that helps, thanks... failed to understand though how the margin requirement is anyway related to cover order discontinuation.. You could still keep 100% margin requirement for putting futures cover order... It was easier to put one …
To be more specific, would the following code work for bank nifty future ? I had this code for stock and I just changed the
Exchange: AppConstants.EXCHANGE_NFO for future segment which was
Exchange: AppConstants.EXCHANGE_NSE for stock
…
@SRIJAN I thought we cannot place cover order for future segment. Am I wrong with this ? and if I can put cover order then would the code be same as what I do with cover order for any stock...except that the exchange would be NFO for future ?
@rakeshr as I mentioned, this code was working without any change before... I am just executing it after few days. Is there any change recently in last 1 month at Kite end which I should be aware of ?
@sujith thanks for the vwap explanation link but I went through that explanation earlier. I was wondering if there was easier way to calculate it instead of calculating all those columns and vwap value eventually... as Average Price in Kite ticker i…
In one of threads of forum, I saw Average Price being same as VWAP. If it is and if we receive it with the tick data, can I calculate VWAP for 5 minute time frame as Average of VWAP's received in ticks of 5 minute ? Please comment.
Just to add to above question, do I have to place two different orders.. one for the buy market order of the stock and other for stop loss market order for the stock or both the request can be combined in one call ?
Scenario is, lets say if the st…
Thanks Sujith for the reply. Unfortunately the examples given does not have example for ORDER_TYPE_SLM. Can you add the example in that code for SLM or give an example here so that I will have the information on which exact parameter should I pass f…
Hi Sujith, not the closing price itself ( which I can get it anyway by storing them in db for each of the day) but getting percent change for yesterday by any API method... anyway, I have got it working by storing closing price for each of the day a…
Hi sujith,
I did refer to the thread before posting this query. It does not satisfy my requirement. I need to get the percent change for yesterday for any of the stock. This information we can see in Kite UI if I refer to yesterday candle but is th…