It looks like you're new here. If you want to get involved, click one of these buttons!
<code>
ORDER= [
{
"exchange":"NSE",
"tradingsymbol": "SBIN",
"transaction_type": kite.TRANSACTION_TYPE_SELL,
"quantity": 1,
"order_type": "LIMIT",
"product": "CNC",
"price": 587
},
{
"exchange":"NSE",
"tradingsymbol": "SBIN",
"transaction_type": kite.TRANSACTION_TYPE_SELL,
"quantity": 1,
"order_type": "LIMIT",
"product": "CNC",
"price": 602
}]
trigger_id = kite.place_gtt(trigger_type=kite.GTT_TYPE_OCO,
tradingsymbol='NIFTY20OCTFUT', exchange='NFO', trigger_values=[587,602],
last_price=600,orders=ORDER)
@rakeshr i had a doubt regarding web socket
is it guaranteed that all order-updates will be passes through web socket ( in on_order_update ) given i dont block web socket on my end
is it safe to use for it as trigger for placing close order for the position( need al updates without fail for the same) ? or should create code around kite.order_history or explore post backs ?
... is there any difference in certainty of updates in all three ?
on which one should i rely upon ?
thanx in advance for your time