sometimes, if i buy/sell 100 shares using python kite api, it will buy as many part like 17, 7, 20, 56 ( totally 100 ),
but i am always use to buy with target and stoploss, but my target set on only one buy/sell ( as first example 17 ), all other trades are executed with stoploss value only,
so it wil make big loss to us, any one can help me to resolve it??
You are placing the order in such a way that you become the seller and buyer. Hence your order gets rejected. You need to have a significant difference in target and stop-loss values.
@dharmaraj81 You can increase square-off value to bit higher,as your pending buy order and squareoff/target price seem to be achieved at the same time making you buyer and seller at the same time/self trading.
I am getting frustrate about it, pls let me have a way to override this issue
This is my code
order_id = kite.place_order(tradingsymbol = ITC,
exchange=kite.EXCHANGE_NSE,
transaction_type=kite.TRANSACTION_TYPE_SELL,
quantity=100,
price = #Last Minute Close Price#,
order_type=kite.ORDER_TYPE_LIMIT,
product=kite.PRODUCT_BO,
squareoff = 0.3,
stoploss = 2.5,
variety = kite.VARIETY_BO
)
but above code buy the script like following split up
so i wanted to override it, 17 qty only place the buy order, all others hanging with trigger price or get rejected
Pls help me
Dharma
You can increase square-off value to bit higher,as your pending buy order and squareoff/target price seem to be achieved at the same time making you buyer and seller at the same time/self trading.
Thanks So much